/**
 * Customer Credit Module - Front CSS
 *
 * @author    Dynamiz
 * @copyright 2025
 */

/* Credit display in header navigation */
.customer-credit-nav {
    display: inline-flex;
    align-items: center;
    padding: 0 15px;
    color: #232323;
    font-weight: 600;
    font-size: 14px;
}

.customer-credit-nav .material-icons {
    font-size: 20px;
    margin-right: 5px;
    color: #28a745;
}

.customer-credit-nav .credit-label {
    color: #6c757d;
    margin-right: 5px;
    white-space: nowrap;
}

.customer-credit-nav .credit-amount {
    color: #28a745;
}

/* Old header style (kept for compatibility) */
.customer-credit-header {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.customer-credit-header .credit-label {
    color: #6c757d;
    margin-right: 5px;
}

.customer-credit-header .credit-amount {
    font-weight: bold;
    color: #28a745;
    font-size: 16px;
}

/* Payment info box */
.customercredit-payment-info {
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #28a745;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
}

.customercredit-payment-info p {
    margin-bottom: 10px;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

.customercredit-payment-info p:last-child {
    margin-bottom: 0;
}

.customercredit-payment-info strong {
    color: #333;
}

.customercredit-payment-info .text-muted,
.customercredit-payment-info small {
    font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .customer-credit-header {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}

/* Animation for credit update */
@keyframes creditUpdate {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.customer-credit-header.updated {
    animation: creditUpdate 0.5s ease;
}
