/* ========== DAILY HEADER STYLES ========== */

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --navbar-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --navbar-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    padding-top: 0;
}

/* ========== NAVBAR STYLES ========== */
.navbar {
    background: var(--navbar-gradient);
    box-shadow: var(--navbar-shadow);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.navbar-brand:hover {
    transform: translateY(-1px);
    color: white !important;
    filter: brightness(1.1);
}

.navbar-brand img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Reseller Info Badge */
.reseller-info-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.reseller-info-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.reseller-info-badge i {
    font-size: 1.2rem;
    color: #ffd700;
}

.reseller-info-badge strong {
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.reseller-info-badge small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 2px;
}

.reseller-info-badge small a {
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.reseller-info-badge small a:hover {
    color: #ffd700 !important;
    text-decoration: underline;
}

/* User Dropdown */
.navbar-nav {
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.navbar-nav .nav-link i {
    font-size: 1.1rem;
}

/* Menu separator */
.nav-separator {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
    align-self: center;
    flex-shrink: 0;
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    border-radius: 8px;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav .dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(4px);
}

.navbar-nav .dropdown-item i {
    width: 20px;
}

.navbar-nav .dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.2;
}

/* Navbar Toggler */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive Navbar - Desktop: layout ngang, Mobile: collapse menu */
@media (min-width: 992px) {
    /* Desktop - Layout ngang */
    .navbar-nav {
        flex-direction: row;
    }
    
    .nav-separator {
        display: block;
    }
}

@media (max-width: 991.98px) {
    /* Mobile/Tablet - Collapse menu */
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: 8px;
        justify-content: flex-start;
    }
    
    .nav-separator {
        display: none;
    }
    
    .balance-display {
        width: 100%;
        justify-content: flex-start;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-brand img {
        height: 38px;
    }
}

@media (max-width: 767.98px) {
    /* Small tablets */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        height: 36px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 0.625rem 1rem;
    }
    
    .balance-label {
        display: inline;
    }
}

@media (max-width: 575.98px) {
    /* Mobile phones */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.625rem 0.875rem;
    }
    
    .balance-amount {
        font-size: 1rem;
    }
}

/* ========== CARD STYLES ========== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.stat-card p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

/* ========== BUTTON STYLES ========== */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-google {
    background: white;
    color: #4285f4;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* ========== FILTER BUTTONS ========== */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ========== ALERT STYLES ========== */
.alert {
    border-radius: 8px;
    border: none;
}

/* ========== BALANCE DISPLAY ========== */
.balance-display {
    background: rgba(255, 215, 0, 0.15) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.balance-display:hover {
    background: rgba(255, 215, 0, 0.25) !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.balance-display i {
    color: #ffd700;
    font-size: 1.1rem;
}

.balance-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-right: 0.5rem;
}

.balance-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffd700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    transition: all 0.1s ease;
    display: inline-block;
}

.balance-amount.balance-animating {
    color: #fff700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5);
    animation: balancePulse 0.3s ease-in-out infinite alternate;
}

.balance-amount.balance-complete {
    animation: balanceFlash 0.5s ease-out;
}

@keyframes balancePulse {
    0% {
        color: #fff700;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5);
    }
    100% {
        color: #ffd700;
        text-shadow: 0 0 15px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 215, 0, 0.7);
    }
}

@keyframes balanceFlash {
    0% {
        color: #fff700;
        text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.8);
        transform: scale(1.15);
    }
    50% {
        color: #ffd700;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
        transform: scale(1.05);
    }
    100% {
        color: #ffd700;
        text-shadow: none;
        transform: scale(1);
    }
}

.balance-currency {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-left: 0.25rem;
}

/* Balance display responsive đã được di chuyển lên trên */
