/* ========================================
   PayBin User Panel - Main Styles
   ======================================== */

/* Dashboard.php CSS Start */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8fafc;
    color: #1e293b;
}

/* Enterprise Color Palette */
:root {
    --primary-color: #003366;
    --success-color: #28a745;
    --danger-color: #a72828;
    --warning-color: #ffc107;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
}

/* Enhanced DataTable Styles */
.dataTables_wrapper {
    padding-top: 1rem;
}

.dataTables_filter input {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-color: var(--primary-color);
}

.dataTables_filter input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
}

.dataTables_length select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
    border-color: var(--primary-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 51, 102, 0.05);
}

/* Filter Button Styles */
.filter-btn.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Modal Invoice Styles */
.invoice-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.company-info h3 {
    color: #3b82f6;
}

.invoice-number .badge {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.customer-details, .payment-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Print Styles */
@media print {
    .modal-header, .modal-footer {
        display: none !important;
    }
    
    .modal-dialog {
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .modal-content {
        border: none !important;
        box-shadow: none !important;
    }
}

/* Header styles moved to header.php CSS section */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.15);
    border-left-color: var(--success-color);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.card-header {
    background: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header::before {
    content: "\f17a"; /* bi-bar-chart-fill icon */
    font-family: "bootstrap-icons";
    margin-right: 8px;
    color: #003366;
}

.card-body {
    padding: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.pending {
    background: #fef3c7;
    color: #92400e;
}

.status.paid {
    background: #d1fae5;
    color: #065f46;
}

.status.expired {
    background: #fee2e2;
    color: #991b1b;
}

.btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

/* Navigation styles moved to header.php CSS section */

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.license-item {
    display: flex;
    flex-direction: column;
}

.license-item label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.license-value {
    background: #f8fafc;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.license-value-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.license-value {
    flex: 1;
}

.copy-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #218838;
}

.copy-btn:active {
    background: #1e7e34;
}
/* Dashboard.php CSS Stop */

/* ========================================
   Additional Styles for Other Pages
   ======================================== */

/* Merchant_Settings.php CSS Start */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.inputs-section {
    display: flex;
    flex-direction: column;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #003366;
}

.help-text {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-indicator.configured {
    background: #d4edda;
    color: #155724;
}

.status-indicator.configured::before {
    content: "\f26a"; /* bi-check-circle-fill icon */
    font-family: "bootstrap-icons";
    margin-right: 5px;
}

.status-indicator.not-configured {
    background: #fff3cd;
    color: #856404;
}

.status-indicator.not-configured::before {
    content: "\f33a"; /* bi-exclamation-triangle-fill icon */
    font-family: "bootstrap-icons";
    margin-right: 5px;
}

.qr-preview {
    margin-top: 15px;
    text-align: center;
}

.qr-preview img {
    max-width: 200px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.qr-preview p {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #155724;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* Merchant_Settings.php CSS Stop */

/* Auth.php CSS Start */
.auth-page {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        min-height: auto;
    }
    
    .auth-left {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .brand-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .feature-list {
        display: none;
    }
}

.auth-left {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.auth-left::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.brand-section {
    position: relative;
    z-index: 1;
}

.brand-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.brand-icon::before {
    content: "\f62e"; /* bi-bank icon */
    font-family: "bootstrap-icons";
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.brand-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "\f26a"; /* bi-check-circle-fill icon */
    font-family: "bootstrap-icons";
    margin-right: 12px;
    color: #28a745;
    font-size: 1.1rem;
}

.auth-right {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .auth-right {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .form-container {
        max-height: 60vh;
        overflow-y: auto;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #003366;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.mode-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
    margin: 20px auto;
    max-width: 200px;
}

.mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #64748b;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mode-btn.active {
    background: white;
    color: #003366;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mode-btn:hover:not(.active) {
    color: #003366;
}

.mode-btn::before {
    font-family: "bootstrap-icons";
    font-size: 0.9rem;
}

.mode-btn[onclick*="login"]::before {
    content: "\f4da"; /* bi-person-fill icon */
}

.mode-btn[onclick*="register"]::before {
    content: "\f4dc"; /* bi-person-plus-fill icon */
}

.form-container {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
    color: #374151;
}

.form-group input:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    transform: translateY(-1px);
}

.form-group input:invalid {
    border-color: #ef4444;
    animation: shake 0.3s ease-in-out;
}

.form-group input:valid {
    border-color: #10b981;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group.error input {
    border-color: #ef4444;
    animation: shake 0.3s ease-in-out;
}

.form-group.success input {
    border-color: #10b981;
}

.form-group .error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-group.error .error-message {
    opacity: 1;
    transform: translateY(0);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.submit-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.submit-btn::before {
    font-family: "bootstrap-icons";
    font-size: 1rem;
}

.submit-btn[type="submit"]::before {
    content: "\f4da"; /* bi-person-fill icon for login */
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading::before {
    content: "\f4f4"; /* bi-play-fill icon */
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message::before {
    font-family: "bootstrap-icons";
    font-size: 1rem;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.message.success::before {
    content: "\f26a"; /* bi-check-circle-fill icon */
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.message.error::before {
    content: "\f33a"; /* bi-exclamation-triangle-fill icon */
}

.demo-info {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #003366;
}

.demo-info strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    padding: 20px 0 0 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

.footer-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-link:hover {
    color: #003366;
}

.footer-link::before {
    content: "\f138"; /* bi-arrow-left icon */
    font-family: "bootstrap-icons";
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .auth-left {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .auth-right {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 10px;
    }
    
    .auth-left,
    .auth-right {
        padding: 20px 15px;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
}
/* Auth.php CSS Stop */

/* Header.php CSS Start */
.main-header {
    background: #003366;
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.header-logo i {
    font-size: 28px;
    color: #28a745;
}

.logo-text {
    background: linear-gradient(45deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: white;
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.nav-link i {
    font-size: 16px;
}

.header-profile {
    display: flex;
    align-items: center;
}

.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.profile-trigger:hover {
    background: rgba(255,255,255,0.1);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    background: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.profile-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.profile-role {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.2;
}

.profile-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.profile-dropdown.active .profile-arrow {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(0,0,0,0.1);
}

.profile-dropdown.active .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.profile-menu-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.profile-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-menu-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.profile-menu-info p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #666;
}

.profile-menu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0;
}

.profile-menu-items {
    padding: 8px 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.profile-menu-item:hover {
    background: #f8f9fa;
    color: #003366;
}

.profile-menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.profile-menu-footer {
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
}

.profile-menu-item.logout {
    color: #dc3545;
}

.profile-menu-item.logout:hover {
    background: #f8d7da;
    color: #721c24;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1002;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    background: #003366;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.mobile-nav-logo i {
    font-size: 24px;
    color: #28a745;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mobile-nav-close:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-nav-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    background: #f8f9fa;
    color: #003366;
    border-left-color: #28a745;
}

.mobile-nav-link.active {
    background: rgba(0, 51, 102, 0.1);
    color: #003366;
    border-left-color: #003366;
}

.mobile-nav-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.mobile-nav-footer {
    border-top: 1px solid #f0f0f0;
    padding: 20px;
}

.mobile-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.mobile-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-profile-details h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.mobile-profile-details p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #666;
}

.mobile-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #dc3545;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.mobile-logout:hover {
    background: #f8d7da;
    color: #721c24;
}

.mobile-logout i {
    font-size: 16px;
}

.main-content {
    min-height: calc(100vh - 70px);
    background: #f8f9fa;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .profile-info {
        display: none;
    }
    
    .profile-trigger {
        padding: 8px;
    }
    
    .content-container {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }
    
    .header-logo {
        font-size: 20px;
    }
    
    .header-logo i {
        font-size: 24px;
    }
    
    .mobile-nav {
        width: 100%;
    }
}

/* Dashboard Modal CSS Start */
.customer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-name {
    font-weight: 600;
    color: #003366;
}

.info-btn {
    background: none;
    border: none;
    color: #28a745;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.info-btn:hover {
    background: rgba(40, 167, 69, 0.1);
    transform: scale(1.1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: #003366;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #003366;
}

.modal-body {
    padding: 0 24px 24px 24px;
}

.details-section {
    margin-bottom: 32px;
}

.details-section h4 {
    color: #003366;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e9ecef;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.detail-item span {
    color: #003366;
    font-size: 0.9rem;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.stats-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.1);
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 0.9rem;
    color: #003366;
    font-weight: 600;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 20px 0 20px;
    }
    
    .modal-body {
        padding: 0 20px 20px 20px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-modal {
        grid-template-columns: 1fr;
    }
}
/* Dashboard Modal CSS Stop */
