/* Re-created Modern Admin Panel Styles */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #64748b;
    --accent: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --sidebar-w: 260px;
    --header-h: 64px;
    --radius: 12px;
}

.modern-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

/* Welcome Banner */
.dashboard-welcome-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    border-radius: 20px;
    padding: 2.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.dashboard-welcome-banner h1 { color: white; font-size: 2rem; margin-bottom: 0.5rem; }
.dashboard-welcome-banner p { color: rgba(255,255,255,0.9); font-size: 1.1rem; }

.banner-illustration {
    font-size: 8rem;
    opacity: 0.1;
    position: absolute;
    right: -20px;
    bottom: -20px;
    transform: rotate(-15deg);
}

.btn-white {
    background: white;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-glass {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon-wrapper.blue { background: #eff6ff; color: #3b82f6; }
.stat-icon-wrapper.purple { background: #f5f3ff; color: #8b5cf6; }
.stat-icon-wrapper.emerald { background: #ecfdf5; color: #10b981; }
.stat-icon-wrapper.red { background: #fef2f2; color: #ef4444; }
.stat-icon-wrapper.gray { background: #f8fafc; color: #64748b; }

.stat-title { font-size: 0.875rem; color: #64748b; font-weight: 500; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin-top: 0.25rem; }

/* Product Grid inside Dashboard */
.mini-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.mini-product-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}

.mini-product-card:hover { background: #f1f5f9; }

.mini-img {
    width: 60px; /* Standardized small size */
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: white;
}

.mini-name { font-size: 0.8rem; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-stock { font-size: 0.75rem; color: #64748b; }

/* Activity Feed */
.activity-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.activity-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.activity-icon-box.sale { background: #dcfce7; color: #166534; }
.activity-icon-box.purchase { background: #dbeafe; color: #1e40af; }
.activity-icon-box.cash { background: #fef3c7; color: #92400e; }
.activity-icon-box.inventory { background: #f3f4f6; color: #374151; }

.activity-msg { font-size: 0.9rem; color: #1e293b; font-weight: 500; }
.activity-time { font-size: 0.75rem; color: #94a3b8; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-welcome-banner { padding: 1.5rem; flex-direction: column; text-align: center; }
    .banner-illustration { display: none; }
    .kpi-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-card { padding: 1rem; flex-direction: column; text-align: center; }
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: radial-gradient(circle at top right, #f8fafc, #f1f5f9);
}

/* Base visibility rules (Desktop context) */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

.status-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Enhanced Sidebar Styles */
.admin-sidebar.enhanced {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-right: 1px solid #e2e8f0;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 40;
}

.sidebar-header.enhanced {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.sidebar-header.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

.sidebar-toggle.enhanced {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.sidebar-toggle.enhanced:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Enhanced Search */
.sidebar-search {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    color: #64748b;
    z-index: 1;
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: #f1f5f9;
    color: #374151;
}

/* Favorites and Recent Sections */
.sidebar-favorites, .sidebar-recent {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.favorites-header, .recent-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.favorites-list, .recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.favorite-item, .recent-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #374151;
    width: 100%;
    text-align: left;
}

.favorite-item:hover, .recent-item:hover {
    background: #f1f5f9;
    color: #667eea;
}

.favorite-item.active {
    background: #667eea;
    color: white;
}

/* Enhanced Navigation Items */
.nav-items.enhanced .nav-item {
    margin-bottom: 0.5rem;
    position: relative;
}

.nav-link.enhanced {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    color: #374151;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.nav-link.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #667eea;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item.active .nav-link.enhanced::before {
    transform: scaleY(1);
}

.nav-link.enhanced:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #667eea;
    transform: translateX(4px);
}

.nav-item.active .nav-link.enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-shortcut {
    font-size: 0.625rem;
    background: rgba(255, 255, 255, 0.2);
    color: #64748b;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: monospace;
}

.nav-item.active .nav-shortcut {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.nav-favorite {
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-favorite:hover {
    color: #fbbf24;
    transform: scale(1.2);
}

.nav-favorite.active {
    color: #fbbf24;
}

.nav-notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.125rem 0.25rem;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* Enhanced Header Styles */
.admin-header.enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.admin-header.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.header-navigation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.header-titles {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-top: 0.25rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.breadcrumb-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.breadcrumb-current {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.625rem;
}

/* Enhanced Quick Actions */
.quick-actions-enhanced {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quick-action-btn.enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
}

.quick-action-btn.enhanced:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.action-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.action-label {
    font-size: 0.75rem;
    font-weight: 600;
}

.action-shortcut {
    font-size: 0.625rem;
    opacity: 0.7;
    font-family: monospace;
}

/* Enhanced System Status */
.system-status.enhanced {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.status-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.status-text {
    font-size: 0.75rem;
    font-weight: 600;
}

.last-sync {
    font-size: 0.625rem;
    opacity: 0.8;
}

/* Enhanced Notification System */
.notification-badge.enhanced {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: notification-pulse 2s infinite;
}

@keyframes notification-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Enhanced Icon Buttons */
.icon-button.enhanced {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.icon-button.enhanced:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Enhanced Sidebar Footer */
.sidebar-footer.enhanced {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.sidebar-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 0.625rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}



.enhanced-form-group {
    margin-bottom: 1.5rem;
}

.enhanced-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.enhanced-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.enhanced-form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: var(--bg-primary);
    outline: none;
}

.enhanced-form-input:hover {
    border-color: var(--text-tertiary);
}

.enhanced-form-input.error {
    border-color: var(--error-color);
    background-color: rgba(239, 68, 68, 0.05);
}

.enhanced-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.enhanced-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.enhanced-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.25);
}

.enhanced-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.35);
}

.enhanced-btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.enhanced-btn-secondary:hover:not(:disabled) {
    background: var(--border-color);
    transform: translateY(-1px);
}

.enhanced-btn-danger {
    background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.25);
}

.enhanced-btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(239, 68, 68, 0.35);
}

/* Enhanced Modern Admin Styles */

:root {
    --header-height: 70px;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    --bg-body: #f3f4f6;
}

body {
    background-color: var(--bg-body);
}

/* Modern Layout Structure */
.admin-layout.modern-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-body);
}

.admin-wrapper {
    display: flex;
    flex: 1;
    margin-top: var(--header-height);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-main-content {
    flex: 1;
    padding: 2rem;
    overflow-x: hidden;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-collapsed .admin-main-content {
    margin-left: var(--sidebar-collapsed-width);
}

@media (max-width: 1024px) {
    .admin-main-content {
        margin-left: 0;
        padding: 1rem;
        padding-bottom: 80px; /* Space for bottom nav */
    }
}

/* Glass Header */
.admin-header.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 50;
    transition: all 0.3s ease;
}

.admin-header-left, .admin-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Header Buttons */
.header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-icon-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.sidebar-toggle-btn {
    margin-right: 0.5rem;
}

/* Header Badges */
.header-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0 4px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* System Status Pill */
.system-status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.system-status-pill.online {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

.system-status-pill.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
    animation: pulse 2s infinite;
}

/* User Profile Trigger */
.header-separator {
    width: 1px;
    height: 32px;
    background: #e5e7eb;
    margin: 0 0.5rem;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.user-profile-trigger:hover {
    background: rgba(0,0,0,0.03);
}

.user-avatar-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 2px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

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

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

.user-name-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    line-height: 1.2;
}

.user-role-text {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: capitalize;
}

.user-chevron {
    color: #94a3b8;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.user-chevron.open {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.15);
    border: 1px solid #f3f4f6;
    padding: 0.5rem;
    z-index: 100;
    transform-origin: top right;
    animation: dropdownSlideIn 0.2s ease-out;
}

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

.dropdown-header {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.dropdown-user-name {
    font-weight: 700;
    color: #1e293b;
}

.dropdown-user-email {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.dropdown-item.danger {
    color: #ef4444;
}

.dropdown-item.danger:hover {
    background: #fef2f2;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0.5rem 0;
}

/* Sidebar Modifications */
.admin-sidebar.enhanced {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    padding-bottom: 2rem;
    box-shadow: none;
}

.sidebar-collapsed .admin-sidebar.enhanced {
    width: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .admin-sidebar.enhanced .nav-label,
.sidebar-collapsed .admin-sidebar.enhanced .nav-meta,
.sidebar-collapsed .admin-sidebar.enhanced .sidebar-brand .brand-info,
.sidebar-collapsed .admin-sidebar.enhanced .nav-section-title span,
.sidebar-collapsed .admin-sidebar.enhanced .sidebar-search,
.sidebar-collapsed .admin-sidebar.enhanced .sidebar-user .user-info-small,
.sidebar-collapsed .admin-sidebar.enhanced .sidebar-toggle,
.sidebar-collapsed .admin-sidebar.enhanced .sidebar-stats {
    display: none;
}

.sidebar-collapsed .admin-sidebar.enhanced .nav-link.enhanced {
    justify-content: center;
    padding: 0.875rem 0;
}

.sidebar-collapsed .admin-sidebar.enhanced .nav-icon {
    margin: 0;
    font-size: 1.2rem;
}

.sidebar-collapsed .admin-sidebar.enhanced .sidebar-header.enhanced {
    padding: 1.5rem 0.5rem;
    justify-content: center;
}

.sidebar-collapsed .admin-sidebar.enhanced .sidebar-brand {
    justify-content: center;
}

/* Breadcrumbs */
.breadcrumb-nav {
    margin-left: 0.5rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.breadcrumb-link {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    font-size: 0.6rem;
    color: #94a3b8;
}

.breadcrumb-current {
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Content Area Polish */
.content-section {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border: none;
    border-radius: 0;
}

.dashboard-grid.enhanced {
    gap: 1.5rem;
}

.health-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.health-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.health-card.healthy .health-card-icon { color: #10b981; background: #ecfdf5; }
.health-card.good .health-card-icon { color: #3b82f6; background: #eff6ff; }

.health-card-label { font-size: 0.75rem; color: #64748b; font-weight: 500; }
.health-card-value { font-size: 0.9rem; font-weight: 700; color: #1e293b; }

.metric-card.enhanced {
    background: white;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card.enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .admin-header.glass-header {
        padding: 0 1rem;
    }
    
    .admin-main-content {
        padding: 1rem;
    }
    
    .breadcrumb-nav {
        display: none; /* Hide breadcrumbs on mobile */
    }
}