/* =========================================================================
   SkillSync Design System & Global Styles
   Modern Dark Theme with vibrant gradients and glassmorphism.
   ========================================================================= */

:root {
    /* Color Palette - Dark Theme (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #14141d;
    --bg-tertiary: #1f1f2e;
    
    /* Accents & Gradients */
    --accent-primary: #6366f1; /* Indigo */
    --accent-secondary: #a855f7; /* Purple */
    --accent-tertiary: #ec4899; /* Pink */
    
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-glow: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Success/Warning/Error */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Glassmorphism */
    --glass-bg: rgba(30, 30, 46, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --nav-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.26, 1.55);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* =========================================================================
   Reset & Base Styles
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
    background: transparent;
}

/* =========================================================================
   Utility Classes & Components
   ========================================================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-center { text-align: center; }
.text-primary { color: var(--accent-primary); }
.text-secondary { color: var(--text-secondary); }
.text-gray { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.pb-2 { padding-bottom: 0.5rem; }

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

.border-bottom {
    border-bottom: 1px solid var(--glass-border);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    font-size: 1rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.btn-accept {
    color: var(--success);
}
.btn-accept:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    transform: scale(1.1);
}

.btn-decline {
    color: var(--danger);
}
.btn-decline:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    transform: scale(1.1);
}


/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--accent-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary);
    animation: pulseGlow 2s infinite;
}

/* =========================================================================
   Navigation
   ========================================================================= */
.navbar {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* =========================================================================
   View Management
   ========================================================================= */
main {
    margin-top: var(--nav-height);
    flex: 1;
    position: relative;
}

.view {
    display: none;
    animation: fadeIn var(--transition-normal);
}

.view.active-view {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   Landing Page (View 1)
   ========================================================================= */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: 4rem 0;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(10, 10, 15, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    width: 100%;
}

.stat-item h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Abstract Matching Visualization */
.matching-visualization {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 500px;
    margin: 0 auto;
}

.node {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: var(--transition-bounce);
    cursor: pointer;
    z-index: 10;
}

.node:hover {
    transform: scale(1.1);
}

/* Tooltip */
.node::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: var(--font-body);
}

.node:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.node-center {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid var(--accent-primary);
    overflow: hidden;
    background: var(--bg-tertiary);
}
.node-center:hover { transform: translate(-50%, -50%) scale(1.05); }

.node-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.node-1 { width: 70px; height: 70px; top: 10%; left: 10%; background: var(--bg-tertiary); border: 2px solid var(--success); color: #61dafb; font-size: 1.5rem; }
.node-2 { width: 60px; height: 60px; top: 20%; left: 80%; background: var(--bg-tertiary); border: 2px solid var(--success); color: #f59e0b; font-size: 1.2rem; }
.node-3 { width: 50px; height: 50px; top: 80%; left: 40%; background: var(--bg-tertiary); border: 2px solid var(--warning); color: #2496ed; font-size: 1rem; }

/* SVG Connections */
.connections {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.line-high {
    stroke: var(--success);
    stroke-width: 2;
    stroke-dasharray: 6;
    animation: dash 20s linear infinite;
    opacity: 0.6;
}

.line-medium {
    stroke: var(--warning);
    stroke-width: 1.5;
    stroke-dasharray: 4;
    animation: dash 15s linear infinite reverse;
    opacity: 0.4;
}

@keyframes dash {
    to { stroke-dashoffset: 1000; }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Features */
.features {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}


/* =========================================================================
   Dashboard & Skill Tree (View 2)
   ========================================================================= */
.dashboard-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

/* Profile Sidebar */
.profile-card {
    text-align: center;
}

.profile-header {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg-tertiary);
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.level-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    border: 2px solid var(--bg-secondary);
}

.profile-name {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.profile-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.p-stat {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Invites */
.invite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.invite-item:hover {
    border-color: var(--glass-border);
    transform: translateX(5px);
}

.invite-info {
    display: flex;
    flex-direction: column;
}

.invite-info strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.invite-sender {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.invite-role {
    font-size: 0.75rem;
    color: var(--accent-secondary);
    margin-top: 0.2rem;
}

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

/* RPG Skill Tree */
.skill-tree-panel {
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.3rem;
}

.dot-mastered { background: var(--success); box-shadow: 0 0 8px var(--success); }
.dot-mastering { background: var(--warning); box-shadow: 0 0 8px var(--warning); }
.dot-learning { background: var(--accent-primary); box-shadow: 0 0 8px var(--accent-primary); }
.dot-locked { background: var(--text-muted); }

.legend-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
}

/* Tree Structure */
.skill-tree-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Bottom up approach */
    padding: 2rem;
    background: linear-gradient(135deg, #0B0F19 0%, #1A1025 100%);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(168, 85, 247, 0.2);
    position: relative;
    overflow: hidden;
}

.skill-tree-container .st-label {
    color: #E2E8F0 !important; /* Force readable text against the dark cosmic background */
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.st-level {
    display: flex;
    gap: 4rem;
    z-index: 2;
}

.st-connector-row {
    height: 50px;
    display: flex;
    justify-content: space-around;
    width: 100%;
    z-index: 1;
}

.st-line {
    width: 2px;
    background: var(--text-muted);
    opacity: 0.3;
}

.st-line.active {
    background: var(--accent-primary);
    opacity: 0.8;
    box-shadow: 0 0 10px var(--accent-primary);
}

.st-line.fork {
    width: 200px;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-bottom: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background: transparent;
    box-shadow: inset 0 10px 10px -10px var(--accent-primary);
    position: relative;
}
.st-line.fork::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 2px; height: 100%; background: var(--accent-primary); box-shadow: 0 0 10px var(--accent-primary); transform: translateX(-50%);
}

.st-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.st-node:hover {
    transform: scale(1.1) translateY(-5px);
}

.st-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* XP Bar inside icon */
.st-icon::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: attr(data-xp); /* Requires JS to set height visually or inline styles, handled in CSS below via classes */
    background: rgba(255,255,255,0.1);
    z-index: -1;
}

.st-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Node States */
.st-node.mastered .st-icon {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.st-node.mastering .st-icon {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.st-node.learning .st-icon {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.st-node.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.st-node.locked .st-icon {
    border-color: var(--glass-border);
    color: var(--text-muted);
}

/* =========================================================================
   Events Discovery (View 3)
   ========================================================================= */
.search-bar {
    position: relative;
    width: 300px;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
}

.search-bar input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-banner {
    height: 140px;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    background-size: cover;
    background-position: center;
    position: relative;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.event-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
}

.event-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.event-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}

.match-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.match-score {
    font-weight: 700;
    font-family: var(--font-heading);
}

/* =========================================================================
   Teammate Profile Cards (View 4)
   ========================================================================= */
.teammate-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.teammate-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.teammate-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.teammate-stat-row {
    display: flex;
    width: 100%;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* =========================================================================
   Footer
   ========================================================================= */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { align-items: center; }
    .hero-subtitle { margin: 0 auto; }
    .hero-stats { justify-content: center; }
    
    .features-grid { grid-template-columns: 1fr; }
    
    .dashboard-layout { grid-template-columns: 1fr; }
    
    .nav-links { display: none; } /* Simple hiding for prototype */
}

/* =========================================================================
   Authentication Modals
   ========================================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: var(--transition-normal);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    width: 100%;
    max-width: 450px;
    padding: 3rem 2.5rem;
    position: relative;
    transform: translateY(0) scale(1);
    transition: var(--transition-bounce);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.hidden .modal-content {
    transform: translateY(30px) scale(0.95);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--danger);
    transform: scale(1.1) rotate(90deg);
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
}

.auth-tab:hover {
    color: var(--text-primary);
}

.auth-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-primary);
}

.auth-form.hidden {
    display: none;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* =========================================================================
   Admin Dashboard Tables
   ========================================================================= */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    color: var(--text-secondary);
}

.admin-table th {
    padding: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: var(--transition-fast);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.btn-danger-sm {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-danger-sm:hover {
    background: var(--danger);
    color: white;
}
