﻿/* ===========================================
   COMMON CSS FOR ALL PAGES (Home, Pending, InTransit)
=========================================== */

/* 1. RESET AND BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 2. ANIMATIONS (Shared across all pages) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes balancePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

/* 3. MESSAGE STYLES (Error/Success - Same in all pages) */
.error-message {
    background-color: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 8px 12px;
    text-align: center;
    border: 1px solid #ffeaa7;
    font-size: 12px;
    flex-shrink: 0;
    animation: fadeIn 0.5s ease;
}

.success-message {
    background-color: #d1edff;
    color: #0c5460;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 8px 12px;
    text-align: center;
    border: 1px solid #bee5eb;
    font-size: 12px;
    flex-shrink: 0;
    animation: fadeIn 0.5s ease;
}

/* 4. HOME CONTAINER & CARD (Same structure in all pages) */
.home-container {
    background-color: rgb(66,125,240);
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.home-card {
    background: rgb(66,125,240);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.5s ease-out;
    margin: 0;
}

/* 5. HEADER SECTION (Same in Pending and InTransit) */
.header-section {
    padding: 8px 15px;
    padding-top: max(8px, calc(8px + env(safe-area-inset-top)));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
    gap: 12px;
    min-height: 60px;
}

/* Enhanced Back Arrow (Same in Pending and InTransit) */
.back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255,255,255,0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

    .back-arrow::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .back-arrow:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255,255,255,0.9);
        background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    }

        .back-arrow:hover::before {
            opacity: 1;
        }

    .back-arrow:active {
        transform: translateY(-1px) scale(0.98);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255,255,255,0.8);
    }

    .back-arrow svg {
        width: 24px;
        height: 24px;
        filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
        position: relative;
        z-index: 1;
    }

/* Header Title (Same in Pending and InTransit) */
.header-title {
    color: white;
    text-align: center;
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.2px;
}

/* Enhanced Three Dots Menu (Same in Pending and InTransit) */
.three-dots-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    width: 50px;
    height: 50px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255,255,255,0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

    .menu-dots::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-dots:hover {
        background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255,255,255,0.9);
    }

        .menu-dots:hover::before {
            opacity: 1;
        }

        .menu-dots:hover .dot {
            transform: scale(1.2);
        }

    .menu-dots:active {
        transform: translateY(-1px) scale(0.98);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255,255,255,0.8);
    }

.dot {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

/* 6. MAIN CONTENT AREA (Same structure in all pages) */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: rgb(66,125,240);
    overflow: hidden;
    min-height: 0;
}

.scrollable-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

    .scrollable-content::-webkit-scrollbar {
        width: 4px;
    }

    .scrollable-content::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.1);
        border-radius: 2px;
    }

    .scrollable-content::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 2px;
    }

        .scrollable-content::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,0.5);
        }

/* 7. NAVIGATION TABS (Same in all pages) */
.nav-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 4px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}

.nav-tab {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 4px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    text-decoration: none;
    flex-shrink: 0;
}

    .nav-tab.active {
        background: white;
        color: rgb(66,125,240) !important;
    }

.nav-icon {
    font-size: 1rem;
    margin-bottom: 3px;
    color: inherit;
}

.nav-count {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1px;
    color: inherit;
}

/* ACCOUNT BALANCE STYLES (Same in all pages) */
.account-amount {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 2px;
    color: inherit;
}
    .account-amount.negative-balance::before {
        margin-right: 4px;
        content: "Rs Cr";
    }

    .account-amount.positive-balance::before {
        margin-right: 4px;
        content: "Rs Dr";
    }

    .account-amount.zero-balance::before {
        content: "Rs ";
    }

    /* Balance colors - EXACTLY SAME IN ALL PAGES */
    .account-amount.negative-balance {
        color: #ffffff !important;
        background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.3);
        box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
    }

    .account-amount.positive-balance {
        color: #ffffff !important;
        background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.3);
        box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
    }

    .account-amount:not(.negative-balance):not(.positive-balance) {
        color: #ffffff !important;
        background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.3);
        box-shadow: 0 3px 10px rgba(108, 117, 125, 0.3);
    }

    .account-amount.updated {
        animation: balancePulse 0.4s ease;
    }

/* 8. CUSTOMER INFO SECTION (Same in all pages) */
.customer-info {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.customer-details {
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.customer-name {
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0;
}

.customer-code {
    font-size: 0.75rem;
    opacity: 0.9;
    margin: 0;
    padding: 3px 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

/* 9. MODAL STYLES (Same in Pending and InTransit) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(5px);
    -webkit-overflow-scrolling: touch;
    overflow: auto;
}

    .modal-overlay.active {
        display: flex;
    }

.modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
}

/* Mobile-specific styles for full-screen modal */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        align-items: stretch; /* Stretch to fill screen */
    }

    .modal-container {
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        width: 100vw;
        border-radius: 0;
        margin: 0;
    }

    /* Optional bottom close button for mobile */
    .modal-close-bottom {
        display: block;
        width: 100%;
        padding: 16px;
        background: rgb(66,125,240);
        color: white;
        border: none;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        text-align: center;
        margin-top: auto;
        border-top: 1px solid rgba(255,255,255,0.2);
        flex-shrink: 0;
    }
}

/* For very small devices */
@media (max-width: 480px) {
    .modal-header {
        padding: 12px 16px;
    }

    .modal-body {
        padding: 12px;
    }

    .details-grid,
    .items-table {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 0.95rem;
    }
}

.modal-header {
    background: rgb(66,125,240);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

    .modal-close:hover {
        background: rgba(255,255,255,0.2);
    }

.modal-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0;
    min-height: 0;
}

.modal-body {
    padding: 20px;
    color: #333;
    max-height: none;
    overflow-y: visible;
}

.details-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgb(66,125,240);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.details-grid {
    display: grid;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-label {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 600;
    color: #333;
    text-align: right;
    font-size: 0.9rem;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .items-table th {
        background: #f8f9fa;
        padding: 10px;
        text-align: left;
        font-weight: 600;
        font-size: 0.8rem;
        color: #495057;
        border-bottom: 2px solid #dee2e6;
    }

    .items-table td {
        padding: 10px;
        border-bottom: 1px solid #dee2e6;
        font-size: 0.8rem;
    }

    .items-table tr:last-child td {
        border-bottom: none;
    }

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.summary-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.summary-total {
    border-top: 2px solid #dee2e6;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: 700;
    color: #28a745;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #666;
}

.spinner {
    animation: spin 1s linear infinite;
}

/* 10. ORDER CARD BASE STYLES (Same structure in Pending and InTransit) */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 30px !important;
}

.order-card {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.order-number {
    font-weight: 600;
    font-size: 0.85rem;
}

.order-date {
    font-size: 0.7rem;
    opacity: 0.8;
}

.order-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-amount {
    font-weight: 700;
    font-size: 0.9rem;
    color: #90EE90;
}

/* 11. BUTTON STYLES (Common in all pages) */
.view-details-btn,
.action-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

    .view-details-btn:hover,
    .action-btn:hover {
        background: rgba(255,255,255,0.1);
    }

    .action-btn.primary {
        background: rgba(255,255,255,0.2);
        border-color: rgba(255,255,255,0.4);
    }

/* 12. NO ORDERS MESSAGE (Same in Pending and InTransit) */
.no-orders {
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.no-orders-icon {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 16px;
}

.no-orders-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 16px;
}

/* 13. SAFE AREA SUPPORT (Same in all pages) */
@supports (padding: max(0px)) {
    .home-container {
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .header-section {
        padding-top: max(12px, calc(12px + env(safe-area-inset-top)));
    }
}

/* 14. RESPONSIVE MEDIA QUERIES - MOBILE (Same in all pages) */
@media (max-width: 767px) {
    .home-container {
        padding: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
    }

    .home-card {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }

    .header-section {
        padding: 12px 15px;
        padding-top: max(12px, calc(12px + env(safe-area-inset-top)));
    }

    .header-title {
        font-size: 1.1rem !important;
        font-weight: 700;
    }

    .main-content {
        padding: 12px;
        height: auto !important;
    }

    .nav-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr 1fr !important;
        gap: 4px;
        margin-bottom: 12px;
    }

    .nav-tab {
        padding: 8px 4px !important;
        min-height: 45px !important;
        font-size: 0.65rem !important;
    }

        .nav-tab span:not(.nav-count):not(.account-amount) {
            font-size: 0.65rem !important;
        }

    .nav-icon {
        font-size: 1rem !important;
        margin-bottom: 3px;
    }

    .nav-count {
        font-size: 0.75rem !important;
    }

    .account-amount {
        font-size: 0.7rem !important;
    }

    .customer-info {
        padding: 8px 12px;
        margin-bottom: 12px;
    }

    .customer-name {
        font-size: 0.85rem !important;
    }

    .customer-code {
        font-size: 0.75rem !important;
        padding: 3px 6px;
    }
}

/* 15. RESPONSIVE MEDIA QUERIES - DESKTOP (Same in all pages) */
@media (min-width: 768px) {
    .home-container {
        background-color: rgb(66,125,240) !important;
        width: 100vw !important;
        height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }

    .home-card {
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        background-color: rgb(66,125,240) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .header-section {
        padding: 15px 20px !important;
        min-height: 70px !important;
    }

    .header-title {
        font-size: 1.2rem !important;
        color: white !important;
    }

    .back-arrow,
    .menu-dots {
        width: 45px !important;
        height: 45px !important;
        border-radius: 10px !important;
    }

        .back-arrow svg {
            width: 20px !important;
            height: 20px !important;
        }

    .main-content {
        padding: 15px 20px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        min-height: 0 !important;
        height: calc(100vh - 140px) !important;
    }

    .nav-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr 1fr !important;
        gap: 6px !important;
        margin-bottom: 15px !important;
        background: rgba(255,255,255,0.08) !important;
        border-radius: 10px !important;
        padding: 6px !important;
        flex-shrink: 0 !important;
    }

    .nav-tab {
        background: transparent !important;
        border: none !important;
        color: white !important;
        padding: 10px 6px !important;
        border-radius: 8px !important;
        font-size: 1.2rem !important;
        font-weight: 500 !important;
        text-align: center !important;
        cursor: pointer !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 55px !important;
        text-decoration: none !important;
    }

        .nav-tab.active {
            background: white !important;
            color: rgb(66,125,240) !important;
        }

            .nav-tab.active span:not(.nav-count):not(.account-amount) {
                color: rgb(66,125,240) !important;
                font-size: 1.1rem !important;
            }

            .nav-tab.active .nav-icon {
                color: rgb(66,125,240) !important;
                font-size: 1.5rem !important;
            }

            .nav-tab.active .nav-count {
                background: rgba(66,125,240,0.15) !important;
                color: rgb(66,125,240) !important;
                font-size: 1.1rem !important;
                padding: 2px 6px !important;
            }

    .nav-icon {
        font-size: 1.2rem !important;
        margin-bottom: 4px !important;
        color: inherit !important;
    }

    .nav-count {
        font-weight: 800 !important;
        font-size: 1.1rem !important;
        margin-top: 3px !important;
        color: inherit !important;
        background: rgba(255,255,255,0.2) !important;
        padding: 2px 6px !important;
        border-radius: 8px !important;
        min-width: 22px !important;
        display: inline-block !important;
        text-align: center !important;
    }

    .account-amount {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        margin-top: 4px !important;
        padding: 4px 8px !important;
        border-radius: 10px !important;
        min-width: 70px !important;
        text-align: center !important;
        border: 2px solid transparent !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
    }

    .customer-info {
        padding: 10px 15px !important;
        margin-bottom: 15px !important;
        border-radius: 10px !important;
        background: rgba(255,255,255,0.08) !important;
        flex-shrink: 0 !important;
    }

    .customer-details {
        color: white !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .customer-name {
        font-weight: 600 !important;
        font-size: 1.1rem !important;
        margin: 0 !important;
        color: white !important;
    }

    .customer-code {
        font-size: 1.1rem !important;
        margin: 0 !important;
        padding: 4px 8px !important;
        background: rgba(255,255,255,0.2) !important;
        border-radius: 6px !important;
        color: white !important;
    }

    .scrollable-content {
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-right: 8px !important;
        min-height: 0 !important;
        height: calc(100vh - 240px) !important;
    }
}



 

/* Profile Modal Styles */
.profile-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

    .profile-field:last-child {
        border-bottom: none;
    }

    .profile-field label {
        font-weight: 600;
        color: #555;
        min-width: 140px;
    }

.profile-value {
    color: #333;
    font-weight: 500;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

/* Help Modal Styles */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 12px 15px;
    background: #f8f9fa;
    font-weight: 600;
    color: #2a5fcc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .faq-question::after {
        content: "▼";
        font-size: 0.8rem;
        transition: transform 0.3s;
    }

    .faq-question.active::after {
        transform: rotate(180deg);
    }

.faq-answer {
    padding: 15px;
    background: white;
    color: #666;
    line-height: 1.5;
    display: none;
}

    .faq-answer.show {
        display: block;
    }

.contact-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

    .contact-info p {
        margin: 8px 0;
        display: flex;
        align-items: center;
        gap: 10px;
        color: #555;
    }

.help-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

/* Single Button Style */
.modal-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #2a5fcc 0%, #1a4bb8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

    .modal-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(42, 95, 204, 0.3);
    }

/* Text colors */
.text-danger {
    color: #e74c3c !important;
}

.text-success {
    color: #27ae60 !important;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .modal-container {
        max-width: 95%;
        border-radius: 15px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .profile-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .modal-btn {
        padding: 12px 24px;
        width: 100%;
    }
}

/* Add FAQ toggle functionality */
.faq-question {
    cursor: pointer;
    user-select: none;
}
