:root {
    --primary: var(--primary-color);
    --primary-light: #e0e7ff;
    --primary-dark: #3a56d4;
    --secondary: var(--secondary-color);
    --secondary-light: #f1f5f9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: #f8fafc;
    
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

.dashboard-container {
    padding: var(--spacing-xl);
    background: var(--bg-body);
    min-height: 100vh;
}

.dashboard-header {
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.dashboard-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.notification-badge {
    position: relative;
    font-size: 1.25rem;
    color: var(--secondary);
    cursor: pointer;
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-sidebar {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.user-profile-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.avatar {
    font-size: 3rem;
    color: var(--primary);
}

.user-info h6 {
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-nav .nav-link {
    color: var(--secondary);
    padding: var(--spacing-sm) 0;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-xs);
    transition: all 0.3s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: var(--secondary-light);
    color: var(--primary);
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.stat-info h5 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.dashboard-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: none;
}

.dashboard-card .card-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.status-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-delivered { background: #dcfce7; color: #166534; }
.status-processing { background: #fef3c7; color: #92400e; }
.status-pending { background: var(--primary-light); color: var(--primary-dark); }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-shipped { background: #dbeafe; color: #1e40af; }

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-secondary {
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-outline-secondary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.table-hover tbody tr:hover {
    background-color: var(--bg-hover);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-color {
    border-color: var(--border-color) !important;
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: var(--spacing-md);
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: var(--spacing-md);
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .dashboard-sidebar {
        padding: var(--spacing-md);
    }
}


.profile-image-container {
    width: 150px;
    height: 150px;
}

.profile-image-preview,
.profile-image-placeholder {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #e0e7ff;
}

.profile-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.profile-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    border-radius: 0 0 50% 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image-container:hover .profile-image-overlay {
    opacity: 1;
}

.profile-image-overlay .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.toggle-password {
    cursor: pointer;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.toggle-password:hover {
    background: #e9ecef;
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.alert-success {
    background-color: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}

hr {
    border-color: #e5e7eb;
    opacity: 0.5;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

.btn-primary {
    background-color: #4361ee;
    border-color: #4361ee;
    padding: 0.5rem 2rem;
}

.btn-primary:hover {
    background-color: #3a56d4;
    border-color: #3a56d4;
}

.btn-outline-secondary {
    padding: 0.5rem 2rem;
}