/* DEDICATED CUSTOMER DASHBOARD STYLING */
body.customer-body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: inherit;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.customer-layout-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* SIDEBAR BACKDROP FOR MOBILE */
.customer-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1040;
    transition: opacity 0.3s ease;
}

.customer-sidebar-backdrop.active {
    display: block;
}

/* SIDEBAR STYLING */
.customer-sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-gold);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
}

.customer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-dark);
}

.customer-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--input-bg);
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--border-blue);
    margin-bottom: 2rem;
}

.customer-user-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
    flex-shrink: 0;
}

.customer-user-card h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin: 0 0 2px 0;
    word-break: break-word;
}

.customer-user-card span {
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 600;
}

.customer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.customer-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
}

.customer-menu a:hover,
.customer-menu a.active {
    background: var(--royal-blue);
    color: var(--gold);
    border-left: 3px solid var(--gold);
}

.customer-sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* MAIN CONTENT CONTAINER */
.customer-main-content {
    margin-left: 280px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - 280px);
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* TOP HEADER */
.customer-top-header {
    min-height: 76px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-dark);
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
    gap: 1rem;
}

.customer-menu-toggle-btn {
    display: none;
    background: var(--bg-card);
    border: 1.5px solid var(--border-gold);
    color: var(--gold);
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.customer-menu-toggle-btn:hover {
    background: var(--gold);
    color: #000;
}

.customer-header-title h2 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin: 0;
}

.customer-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.customer-body-padding {
    padding: 2.5rem;
    flex-grow: 1;
    max-width: 1400px;
}

/* DASHBOARD STATS GRID */
.customer-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.c-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    padding: 1.6rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.c-stat-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
}

.c-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--royal-blue);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.c-stat-info h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin: 0 0 2px 0;
}

.c-stat-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* DASHBOARD TABLES & CARDS */
.c-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.c-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.c-card-header h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

.c-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 650px;
}

.c-table th {
    padding: 12px 16px;
    font-size: 0.82rem;
    color: var(--gold);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-dark);
}

.c-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-dark);
}

.c-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
}

.c-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.c-badge.delivered {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.c-badge.processing,
.c-badge.pending {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.c-badge.shipped {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.c-badge.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* TWO COLUMN GRID HELPER */
.c-two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1200px) {
    .customer-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .c-two-column-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .customer-sidebar {
        transform: translateX(-100%);
        left: 0;
        width: 280px;
    }

    .customer-sidebar.active {
        transform: translateX(0);
    }

    .customer-main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .customer-menu-toggle-btn {
        display: inline-flex;
    }

    .customer-top-header {
        padding: 0.8rem 1.5rem;
    }

    .customer-body-padding {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .customer-top-header {
        flex-direction: row;
        align-items: center;
        padding: 0.8rem 1rem;
    }

    .customer-header-title h2 {
        font-size: 1.1rem;
    }

    .customer-header-actions {
        gap: 0.5rem;
    }

    .customer-header-actions .btn-gold,
    .customer-header-actions .btn-outline {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
    }

    .customer-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .c-stat-card {
        padding: 1.2rem;
    }

    .c-card {
        padding: 1.2rem;
        border-radius: 16px;
    }
}

@media (max-width: 576px) {
    .customer-stats-grid {
        grid-template-columns: 1fr;
    }

    .customer-top-header {
        gap: 0.5rem;
    }

    .customer-header-title h2 {
        font-size: 0.95rem;
    }

    .customer-body-padding {
        padding: 1rem 0.8rem;
    }

    .c-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}
