/* SMTP API Dashboard - Premium Apple-inspired Design */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
    /* Apple-inspired Color Palette - Dark Theme */
    --primary-gradient-start: #1d1d1f;
    --primary-gradient-end: #2c2c2e;
    --accent-blue: #007aff;
    --accent-purple: #5856d6;
    --accent-green: #34c759;
    --accent-orange: #ff9500;
    --accent-red: #ff3b30;
    --success-color: #34c759;
    --danger-color: #ff3b30;
    --warning-color: #ff9500;
    --info-color: #007aff;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --card-bg: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border-color: rgba(0, 0, 0, 0.08);
    --body-bg: linear-gradient(180deg, #f5f5f7 0%, #e8e8ed 100%);
}

/* Light Theme Variables */
[data-theme="light"] {
    --primary-gradient-start: #ffffff;
    --primary-gradient-end: #f5f5f7;
    --card-bg: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border-color: rgba(0, 0, 0, 0.08);
    --body-bg: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    --sidebar-bg: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    --sidebar-text: #1d1d1f;
    --sidebar-text-muted: #86868b;
    --sidebar-hover: rgba(0, 0, 0, 0.05);
    --sidebar-active: rgba(0, 122, 255, 0.1);
    --sidebar-border: rgba(0, 0, 0, 0.1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-gradient-start: #1d1d1f;
    --primary-gradient-end: #2c2c2e;
    --card-bg: #2c2c2e;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --border-color: rgba(255, 255, 255, 0.1);
    --body-bg: linear-gradient(180deg, #000000 0%, #1d1d1f 100%);
    --sidebar-bg: linear-gradient(180deg, #1d1d1f 0%, #2c2c2e 100%);
    --sidebar-text: rgba(255, 255, 255, 0.85);
    --sidebar-text-muted: rgba(255, 255, 255, 0.5);
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active: rgba(255, 255, 255, 0.15);
    --sidebar-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--body-bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Sidebar Styles - Apple Dark Theme with Collapse */
.sidebar {
    min-height: 100vh;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

/* Hide text when collapsed */
.sidebar.collapsed .logo-text,
.sidebar.collapsed .logo-subtitle,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .user-info,
.sidebar.collapsed .badge-text,
.sidebar.collapsed .footer-text,
.sidebar.collapsed .sidebar-footer span {
    opacity: 0;
    display: none;
}

.sidebar.collapsed .user-avatar {
    margin-right: 0;
}

.sidebar.collapsed .user-badge-container {
    display: none;
}

/* Logo Section */
.logo-section {
    border-bottom: 1px solid var(--sidebar-border);
    transition: all 0.3s ease;
    padding-bottom: 1rem;
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: font-size 0.3s ease;
}

.sidebar.collapsed .logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    letter-spacing: -0.02em;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    color: var(--sidebar-text);
}

.logo-subtitle {
    font-size: 0.75rem;
    transition: all 0.3s ease;
    color: var(--sidebar-text-muted);
}

.sidebar .position-sticky {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hide scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* User Profile Card */
.user-profile {
    background: var(--sidebar-hover);
    border-radius: 0.75rem;
    padding: 0.875rem;
    border: 1px solid var(--sidebar-border);
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: var(--sidebar-active);
}

.user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-right: 0.625rem;
    transition: all 0.3s ease;
}

.sidebar.collapsed .user-avatar {
    margin-right: 0;
    width: 40px;
    height: 40px;
}

.user-info {
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.user-name {
    font-size: 0.875rem;
    color: var(--sidebar-text);
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.user-username {
    font-size: 0.75rem;
    color: var(--sidebar-text-muted);
}

.user-badge-container {
    transition: all 0.3s ease;
}

.user-badge {
    background: linear-gradient(135deg, var(--accent-orange), #ffb340);
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    border: none;
    display: inline-flex;
    align-items: center;
}

.user-badge i {
    font-size: 0.75rem;
}

.user-badge.viewer-badge {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
}

/* Navigation Links */
.nav-link {
    color: var(--sidebar-text);
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    margin: 0.125rem 0.75rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-link i {
    font-size: 1.125rem;
    width: 22px;
    min-width: 22px;
    transition: transform 0.2s ease;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 0.75rem;
    margin: 0.125rem 0.5rem;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0 !important;
}

.nav-text {
    transition: opacity 0.3s ease;
    white-space: nowrap;
    margin-left: 0.625rem;
}

.nav-link:hover {
    background-color: var(--sidebar-hover);
    color: var(--sidebar-text);
    transform: translateX(2px);
}

.sidebar.collapsed .nav-link:hover {
    transform: translateX(0) scale(1.05);
}

.nav-link:hover i {
    transform: scale(1.08);
}

.nav-link.active {
    background-color: var(--sidebar-active);
    color: var(--accent-blue);
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.logout-link {
    color: var(--accent-red) !important;
}

.logout-link:hover {
    background-color: rgba(255, 59, 48, 0.08) !important;
}

/* Sidebar Divider */
.sidebar-divider {
    border-color: var(--sidebar-border);
    margin: 1rem 0.75rem;
    opacity: 0.5;
}

/* Sidebar Footer */
.sidebar-footer {
    border-top: 1px solid var(--sidebar-border);
    transition: all 0.3s ease;
}

.sidebar-footer small {
    font-size: 0.75rem;
    color: var(--sidebar-text-muted);
}

/* Sidebar Toggle Button - More Visible */
.sidebar-toggle {
    position: fixed;
    left: calc(var(--sidebar-width) - 18px);
    top: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
}

[data-theme="dark"] .sidebar-toggle {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* When sidebar is collapsed, move toggle button */
body:has(.sidebar.collapsed) .sidebar-toggle {
    left: calc(var(--sidebar-collapsed-width) - 18px);
}

.sidebar-toggle:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.sidebar-toggle:active {
    transform: scale(1.0);
}

.sidebar-toggle i {
    font-size: 1rem;
    transition: transform 0.3s ease;
    font-weight: bold;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    flex: 1;
    overflow-x: hidden;
}

/* When sidebar is collapsed, expand main content */
body:has(.sidebar.collapsed) .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Card Styles - Apple Premium Design with Theme Support */
.card {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

[data-theme="dark"] .card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Card hover with specific border colors */
.card.border-primary:hover {
    border-color: #007AFF;
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.15), 0 4px 12px rgba(0, 122, 255, 0.1);
}

.card.border-success:hover {
    border-color: #34C759;
    box-shadow: 0 12px 32px rgba(52, 199, 89, 0.15), 0 4px 12px rgba(52, 199, 89, 0.1);
}

.card.border-danger:hover {
    border-color: #FF3B30;
    box-shadow: 0 12px 32px rgba(255, 59, 48, 0.15), 0 4px 12px rgba(255, 59, 48, 0.1);
}

.card.border-warning:hover {
    border-color: #FF9500;
    box-shadow: 0 12px 32px rgba(255, 149, 0, 0.15), 0 4px 12px rgba(255, 149, 0, 0.1);
}

.card.border-info:hover {
    border-color: #5AC8FA;
    box-shadow: 0 12px 32px rgba(90, 200, 250, 0.15), 0 4px 12px rgba(90, 200, 250, 0.1);
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Dark mode card hover with specific colors */
[data-theme="dark"] .card.border-primary:hover {
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.3), 0 4px 12px rgba(0, 122, 255, 0.2);
}

[data-theme="dark"] .card.border-success:hover {
    box-shadow: 0 12px 32px rgba(52, 199, 89, 0.3), 0 4px 12px rgba(52, 199, 89, 0.2);
}

[data-theme="dark"] .card.border-danger:hover {
    box-shadow: 0 12px 32px rgba(255, 59, 48, 0.3), 0 4px 12px rgba(255, 59, 48, 0.2);
}

[data-theme="dark"] .card.border-warning:hover {
    box-shadow: 0 12px 32px rgba(255, 149, 0, 0.3), 0 4px 12px rgba(255, 149, 0, 0.2);
}

[data-theme="dark"] .card.border-info:hover {
    box-shadow: 0 12px 32px rgba(90, 200, 250, 0.3), 0 4px 12px rgba(90, 200, 250, 0.2);
}

.card-header {
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--card-bg) 100%);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    font-size: 1.0625rem;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
    color: var(--text-primary);
}

/* Card Label and Sublabel for better dark mode readability */
.card-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-sublabel {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    opacity: 0.9;
}

[data-theme="dark"] .card-label,
[data-theme="dark"] .card-sublabel {
    color: rgba(255, 255, 255, 0.7);
}

.card-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

[data-theme="dark"] .card-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Stat Cards - Apple Style */
.stat-card {
    position: relative;
    overflow: hidden;
    border-left: none !important;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

/* Different colors for each stat card type */
.stat-card.primary::before {
    background: linear-gradient(90deg, #007AFF, #5856D6);
}

.stat-card.success::before {
    background: linear-gradient(90deg, #34C759, #30d158);
}

.stat-card.warning::before {
    background: linear-gradient(90deg, #FF9500, #ffb340);
}

.stat-card.danger::before {
    background: linear-gradient(90deg, #FF3B30, #ff453a);
}

.stat-card .icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: transform 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card:hover .icon-box {
    transform: scale(1.05);
}

/* Stat card hover with color-specific shadows */
.stat-card.primary:hover {
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.2), 0 4px 12px rgba(88, 86, 214, 0.15);
}

.stat-card.success:hover {
    box-shadow: 0 12px 32px rgba(52, 199, 89, 0.2), 0 4px 12px rgba(48, 209, 88, 0.15);
}

.stat-card.warning:hover {
    box-shadow: 0 12px 32px rgba(255, 149, 0, 0.2), 0 4px 12px rgba(255, 179, 64, 0.15);
}

.stat-card.danger:hover {
    box-shadow: 0 12px 32px rgba(255, 59, 48, 0.2), 0 4px 12px rgba(255, 69, 58, 0.15);
}

[data-theme="dark"] .stat-card.primary:hover {
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.35), 0 4px 12px rgba(88, 86, 214, 0.25);
}

[data-theme="dark"] .stat-card.success:hover {
    box-shadow: 0 12px 32px rgba(52, 199, 89, 0.35), 0 4px 12px rgba(48, 209, 88, 0.25);
}

[data-theme="dark"] .stat-card.warning:hover {
    box-shadow: 0 12px 32px rgba(255, 149, 0, 0.35), 0 4px 12px rgba(255, 179, 64, 0.25);
}

[data-theme="dark"] .stat-card.danger:hover {
    box-shadow: 0 12px 32px rgba(255, 59, 48, 0.35), 0 4px 12px rgba(255, 69, 58, 0.25);
}

.stat-card.primary .icon-box {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
}

.stat-card.success .icon-box {
    background: linear-gradient(135deg, var(--accent-green) 0%, #30d158 100%);
}

.stat-card.danger .icon-box {
    background: linear-gradient(135deg, var(--accent-red) 0%, #ff453a 100%);
}

.stat-card.warning .icon-box {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ffb340 100%);
}

.stat-card h6 {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card h3 {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

/* Table Styles - Apple Clean Design with Theme Support */
.table {
    font-size: 0.9375rem;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.table thead th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
    background: var(--card-bg);
}

.table tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    background: var(--card-bg);
}

.table-hover tbody tr {
    transition: all 0.2s ease;
    background: var(--card-bg);
}

.table-hover tbody tr:hover {
    background: var(--sidebar-hover) !important;
    transform: scale(1.001);
}

[data-theme="dark"] .table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .table tbody td {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .table thead th {
    border-bottom-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

/* Badge Styles - Apple Design */
.badge {
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge i {
    font-size: 0.875rem;
}

/* Button Styles - Apple Premium */
.btn {
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0063d1 0%, #4a46c2 100%);
}

.btn-success {
    background: var(--accent-green);
}

.btn-outline-primary {
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent-blue);
    color: white;
}

/* Alert Styles */
.alert {
    border-radius: 0.75rem;
    border: none;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-gradient-start);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Modal Styles */
.modal-content {
    border-radius: 0.75rem;
    border: none;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Loading Spinner */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2rem;
}

/* Status Indicators */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-dot.success {
    background-color: var(--success-color);
}

.status-dot.danger {
    background-color: var(--danger-color);
}

.status-dot.warning {
    background-color: var(--warning-color);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        width: 280px;
        z-index: 1050;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .sidebar-toggle {
        left: 10px;
        top: 10px;
        z-index: 1051;
    }
    
    .sidebar.show ~ .sidebar-toggle {
        left: calc(280px - 18px);
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 1rem;
        flex: 1;
    }
    
    body:has(.sidebar.collapsed) .main-content,
    body:has(.sidebar.show) .main-content {
        margin-left: 0 !important;
    }
    
    /* Mobile overlay */
    .sidebar.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
        --sidebar-collapsed-width: 70px;
    }
    
    .main-content {
        padding: 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient-start);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gradient-end);
}

/* Login Page - Apple Premium Style */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 5rem;
    opacity: 0.2;
    margin-bottom: 1rem;
}

/* Progress Bar - Apple Style */
.progress {
    height: 8px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.progress-bar {
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* User Profile Card in Sidebar */
.sidebar .user-profile {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.875rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.sidebar .user-profile:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism effect for special cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Apple-style focus states */
.form-control:focus,
.form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    outline: none;
}

/* Smooth transitions for all interactive elements */
* {
    -webkit-tap-highlight-color: transparent;
}

a, button, .nav-link, .btn, .card {
    -webkit-touch-callout: none;
    user-select: none;
}
