* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
}

body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .header {
    background: #242424;
    border-bottom: 1px solid #333;
}

body.dark-mode .logo { color: #e0e0e0; }
body.dark-mode .nav a { color: #a0a0a0; }
body.dark-mode .nav a:hover, body.dark-mode .nav a.active { color: #e0e0e0; }
body.dark-mode .footer { background: #242424; border-top: 1px solid #333; }
body.dark-mode .footer p, body.dark-mode .footer a { color: #a0a0a0; }
body.dark-mode .footer a:hover { color: #e0e0e0; }
body.dark-mode .theme-toggle { background: #333; color: #e0e0e0; }
body.dark-mode .theme-toggle:hover { background: #444; }
body.dark-mode .icon-light { display: inline; }
body.dark-mode .icon-dark { display: none; }
body.dark-mode .dashboard-hero { background: linear-gradient(135deg, #242424 0%, #2a2a2a 100%); border: 1px solid #333; }
body.dark-mode .hero-email { color: #a0a0a0; }
body.dark-mode .badge { background: #333; color: #e0e0e0; }
body.dark-mode .btn-primary { background: #e0e0e0; color: #1a1a1a; }
body.dark-mode .btn-primary:hover { background: #f0f0f0; }
body.dark-mode .btn-outline { background: transparent; color: #e0e0e0; border: 1px solid #444; }
body.dark-mode .btn-outline:hover { background: #333; }
body.dark-mode .stat-card { background: #242424; border: 1px solid #333; }
body.dark-mode .stat-label { color: #a0a0a0; }
body.dark-mode .info-card { background: #242424; border: 1px solid #333; }
body.dark-mode .info-card h2 { color: #e0e0e0; }
body.dark-mode .info-key { color: #a0a0a0; }
body.dark-mode .info-val { color: #e0e0e0; }
body.dark-mode .info-item { border-bottom: 1px solid #333; }
body.dark-mode .quick-action-btn { background: #2a2a2a; border: 1px solid #333; color: #e0e0e0; }
body.dark-mode .quick-action-btn:hover { background: #333; border-color: #444; }
body.dark-mode .avatar-initial { background: #333; color: #e0e0e0; }

body.light-mode {
    background: #f8f9fa;
    color: #2c3e50;
}

body.light-mode .header { background: #fff; border-bottom: 1px solid #e1e8ed; }
body.light-mode .logo { color: #2c3e50; }
body.light-mode .nav a { color: #5a6c7d; }
body.light-mode .nav a:hover, body.light-mode .nav a.active { color: #2c3e50; }
body.light-mode .footer { background: #fff; border-top: 1px solid #e1e8ed; }
body.light-mode .footer p, body.light-mode .footer a { color: #5a6c7d; }
body.light-mode .footer a:hover { color: #2c3e50; }
body.light-mode .theme-toggle { background: #e1e8ed; color: #2c3e50; }
body.light-mode .theme-toggle:hover { background: #d1d8dd; }
body.light-mode .icon-light { display: none; }
body.light-mode .icon-dark { display: inline; }
body.light-mode .dashboard-hero { background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%); border: 1px solid #e1e8ed; }
body.light-mode .hero-email { color: #5a6c7d; }
body.light-mode .badge { background: #e1e8ed; color: #2c3e50; }
body.light-mode .btn-primary { background: #2c3e50; color: #fff; }
body.light-mode .btn-primary:hover { background: #1a252f; }
body.light-mode .btn-outline { background: transparent; color: #2c3e50; border: 1px solid #e1e8ed; }
body.light-mode .btn-outline:hover { background: #f8f9fa; }
body.light-mode .stat-card { background: #fff; border: 1px solid #e1e8ed; }
body.light-mode .stat-label { color: #5a6c7d; }
body.light-mode .info-card { background: #fff; border: 1px solid #e1e8ed; }
body.light-mode .info-card h2 { color: #2c3e50; }
body.light-mode .info-key { color: #5a6c7d; }
body.light-mode .info-val { color: #2c3e50; }
body.light-mode .info-item { border-bottom: 1px solid #e1e8ed; }
body.light-mode .quick-action-btn { background: #f8f9fa; border: 1px solid #e1e8ed; color: #2c3e50; }
body.light-mode .quick-action-btn:hover { background: #e8ecef; border-color: #d1d8dd; }
body.light-mode .avatar-initial { background: #e1e8ed; color: #2c3e50; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.header { border-bottom: 1px solid; z-index: 100; transition: background-color 0.3s, border-color 0.3s; }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { font-size: 1.5rem; font-weight: 700; transition: color 0.3s; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; transition: color 0.2s; }
.theme-toggle { border: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 1.2rem; transition: all 0.2s; margin-left: 8px; }
.theme-toggle:hover { transform: scale(1.05); }
.main { flex: 1; padding: 32px 20px; }
.loading { text-align: center; padding: 100px 20px; }
.loader { width: 50px; height: 50px; border: 4px solid; border-color: #333 transparent #333 transparent; border-radius: 50%; animation: spin 1.2s linear infinite; margin: 0 auto 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.dashboard-hero { border-radius: 16px; padding: 40px; margin-bottom: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.hero-content { display: flex; align-items: center; gap: 24px; }
.user-avatar-large { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.user-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initial { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 700; border-radius: 50%; }
.hero-text h1 { font-size: 2rem; margin-bottom: 8px; }
.hero-email { font-size: 1.1rem; margin-bottom: 12px; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.2s; cursor: pointer; font-size: 1rem; border: none; }
.stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { padding: 24px; border-radius: 12px; display: flex; align-items: center; gap: 16px; transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-icon { font-size: 2.5rem; }
.stat-info { display: flex; flex-direction: column; }
.stat-value { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: 0.9rem; margin-top: 4px; }
.dashboard-content { margin-top: 32px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.info-card { padding: 28px; border-radius: 12px; transition: all 0.3s; }
.info-card h2 { font-size: 1.4rem; margin-bottom: 24px; }
.info-list { display: flex; flex-direction: column; }
.info-item { display: flex; justify-content: space-between; padding: 16px 0; }
.info-item:last-child { border-bottom: none !important; }
.info-key { font-weight: 500; font-size: 0.95rem; }
.info-val { font-weight: 600; text-align: right; }
.mono { font-family: 'Courier New', monospace; font-size: 0.85rem; }
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-action-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; border-radius: 10px; text-decoration: none; transition: all 0.2s; gap: 8px; }
.qa-icon { font-size: 2rem; }
.qa-text { font-size: 0.9rem; font-weight: 600; text-align: center; }
.footer { padding: 20px 0; text-align: center; transition: background-color 0.3s, border-color 0.3s; }
.footer p { font-size: 0.9rem; transition: color 0.3s; }
.footer a { text-decoration: none; transition: color 0.3s; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .nav-wrapper { flex-direction: column; gap: 12px; }
    .nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .dashboard-hero { padding: 24px; flex-direction: column; align-items: flex-start; }
    .hero-content { flex-direction: column; align-items: flex-start; }
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1; }
    .stats-container { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
}