/* Customer Dashboard Styles - Matched to Admin Design */
:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #ff6b35;
    --text-light: #ffffff;
    --text-color: #ffffff;
    --gray-color: #999999;
    --light-gray: #444444;
    --bg-color: #000000;
    --border-color: #333333;
    --overlay-color: rgba(0, 0, 0, 0.7);
    --admin-bg: #0a0a0a;
    --admin-card-bg: rgba(255, 255, 255, 0.02);
    --admin-card-border: rgba(255, 255, 255, 0.1);
    --admin-text: #ffffff;
    --admin-text-light: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--admin-text);
    background-color: var(--admin-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.customer-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.customer-sidebar {
    width: 250px;
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--admin-card-border);
}

.customer-main {
    flex: 1;
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
    background-color: var(--admin-bg);
}

.customer-header {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--admin-card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 99;
}

.customer-content {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--admin-card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--admin-card-border);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
    color: white;
}

.stat-icon.orders {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-icon.shipping {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-icon.completed {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-info h3 {
    font-size: 14px;
    color: var(--admin-text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--admin-text);
}

.recent-orders {
    background: var(--admin-card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--admin-card-border);
    transition: all 0.3s ease;
}

.recent-orders:hover {
    border-color: var(--accent-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 18px;
    color: var(--admin-text);
    position: relative;
    padding-bottom: 10px;
}

.section-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.table-responsive {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--admin-text-light);
    border-bottom: 2px solid var(--admin-card-border);
}

.orders-table td {
    padding: 12px;
    border-bottom: 1px solid var(--admin-card-border);
    color: var(--admin-text-light);
}

.orders-table tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.order-number {
    font-weight: 600;
    color: var(--admin-text);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.status-pending {
    background-color: #f59e0b;
}

.status-processing {
    background-color: #3b82f6;
}

.status-shipped {
    background-color: #10b981;
}

.status-delivered, .status-completed {
    background-color: #8b5cf6;
}

.status-cancelled {
    background-color: #ef4444;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--admin-card-border);
    color: var(--admin-text);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--admin-text);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.text-center {
    text-align: center;
    padding: 40px 20px;
    color: var(--admin-text-light);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 48px;
    color: var(--admin-text-light);
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--admin-text);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--admin-text-light);
    margin-bottom: 20px;
}

/* Sidebar styles */
.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--admin-card-border);
}

.sidebar-header img {
    max-width: 60%;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.sidebar-header h3 {
    color: var(--admin-text);
    margin: 0;
    font-size: 1.1rem;
}

.sidebar-nav {
    padding: 15px 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--admin-text-light);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--admin-text);
}

.sidebar-nav li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-nav li.active a {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--admin-text);
    border-left: 3px solid var(--accent-color);
}

.sidebar-footer {
    padding: 15px;
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid var(--admin-card-border);
}

.sidebar-footer .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
    padding: 10px 15px;
    border-radius: 4px;
    color: var(--admin-text);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-footer .btn-outline {
    background-color: transparent;
    border: 1px solid var(--admin-card-border);
}

.sidebar-footer .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.sidebar-footer .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-footer .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar-footer .btn i {
    margin-right: 8px;
}

/* Customer profile */
.customer-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-text {
    color: var(--admin-text-light);
    font-size: 14px;
    margin: 0;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--admin-text);
    display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .customer-sidebar {
        left: -250px;
        transition: left 0.3s ease;
    }
    
    .customer-sidebar.open {
        left: 0;
    }
    
    .customer-main {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .customer-content {
        padding: 20px;
    }
    
    .customer-header {
        padding: 15px 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .recent-orders {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .header-left h2 {
        font-size: 1.2rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-right: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .orders-table th, .orders-table td {
        padding: 8px;
        font-size: 12px;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Loading states */
.loading-spinner {
    animation: spin 1s linear infinite;
}

.stat-card.loading {
    background-color: rgba(255, 255, 255, 0.05);
}

.stat-card.error {
    background-color: rgba(255, 0, 0, 0.1);
}

/* Notification system */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    max-width: 400px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: rgba(16, 185, 129, 0.9);
}

.notification.error {
    background-color: rgba(239, 68, 68, 0.9);
}

.notification.warning {
    background-color: rgba(245, 158, 11, 0.9);
}

.notification.info {
    background-color: rgba(59, 130, 246, 0.9);
}