.dashboard-section {
    min-height: 100vh;
    background: var(--gray-50);
}

.dashboard-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.75rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user #user-name {
    font-weight: 500;
    color: var(--gray-700);
}

.role-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background: linear-gradient(135deg, var(--warning-color), #EA580C);
}

.dashboard-content {
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-header h1 i {
    color: var(--primary-color);
}

.dashboard-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

/* Admin Dashboard Styles */
.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-header h1 i {
    color: var(--warning-color);
}

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

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card:nth-child(2) {
    border-left-color: var(--success-color);
}

.stat-card:nth-child(3) {
    border-left-color: var(--warning-color);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
    min-width: 3.5rem;
    text-align: center;
}

.stat-card:nth-child(2) i {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.stat-card:nth-child(3) i {
    color: var(--warning-color);
    background: rgba(245, 158, 11, 0.1);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--gray-600);
    font-weight: 500;
}

.admin-actions {
    margin-bottom: 2rem;
}

.admin-actions .btn {
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
}

/* Products Table */
.products-table-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.products-table thead {
    background: var(--gray-50);
}

.products-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.products-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.products-table tr:hover {
    background: var(--gray-50);
}

.product-image {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.product-name {
    font-weight: 600;
    color: var(--gray-800);
}

.product-price {
    font-weight: 600;
    color: var(--success-color);
    font-size: 1.1rem;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.available {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.unavailable {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-actions .btn {
    padding: 0.5rem;
    min-width: auto;
    border-radius: 8px;
}

.table-actions .btn i {
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

.empty-state p {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .dashboard-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard-nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        position: static;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .nav-user {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .dashboard-header h1,
    .admin-header h1 {
        font-size: 2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .products-table-container {
        overflow-x: auto;
    }
    
    .products-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1,
    .admin-header h1 {
        font-size: 1.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card i {
        font-size: 1.5rem;
        padding: 0.5rem;
        min-width: 3rem;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
    
    .products-table th,
    .products-table td {
        padding: 0.75rem 1rem;
    }
    
    .table-actions {
        flex-direction: column;
    }
}