/* Base Resets and Variables */
:root {
    /* Color Palette - Cyber & Neon Vibes */
    --bg-dark: #090a0f;
    --bg-panel: rgba(18, 20, 28, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);

    --primary-color: #8a2be2;
    --primary-glow: rgba(138, 43, 226, 0.5);
    
    --accent-blue: #00d2ff;
    --accent-pink: #f820b0;
    --accent-green: #00ff88;
    
    --text-main: #ffffff;
    --text-muted: #a0a5b8;
    --text-inverse: #090a0f;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #8a2be2, #4a00e0);
    --grad-edu: linear-gradient(135deg, #00d2ff, #3a7bd5);
    --grad-prod: linear-gradient(135deg, #f820b0, #fa709a);
    --grad-create: linear-gradient(135deg, #f6d365, #fda085);
    --grad-visual: linear-gradient(135deg, #00ff88, #00cf70);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Spacing & Layout */
    --sidebar-width: 280px;
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    /* Subtle background glow effect */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 210, 255, 0.1) 0%, transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Utilities */
.glassmorphism {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.text-success { color: var(--accent-green); }
.text-muted { color: var(--text-muted); }
.mt-auto { margin-top: auto; }
.mt-lg { margin-top: 2rem; }
.w-100 { width: 100%; }
.text-xs { font-size: 0.75rem; }

/* Gradients for icons */
.gradient-edu { background: var(--grad-edu); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.gradient-prod { background: var(--grad-prod); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.gradient-create { background: var(--grad-create); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.gradient-visual { background: var(--grad-visual); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Layout container */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background: rgba(10, 12, 18, 0.8);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--grad-primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #a0a5b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    transition: var(--transition-fast);
    font-weight: 500;
}

.nav-link:hover {
    background: var(--bg-glass-hover);
    color: var(--text-main);
}

.nav-item.active .nav-link {
    background: rgba(138, 43, 226, 0.15);
    color: var(--text-main);
    border-left: 3px solid var(--primary-color);
}

.nav-item.active .nav-link i {
    color: var(--primary-color);
}

/* Roadmap Mini Card */
.roadmap-card {
    padding: 1rem;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}

.level-badge {
    align-self: flex-start;
    padding: 0.2rem 0.6rem;
    background: rgba(0, 210, 255, 0.2);
    color: var(--accent-blue);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.roadmap-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.progress-fill {
    height: 100%;
    background: var(--grad-edu);
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.avatar-ring {
    padding: 2px;
    background: var(--grad-primary);
    border-radius: 50%;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    display: block;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.user-status {
    font-size: 0.75rem;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.user-status::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-green);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Top Header */
.top-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 5;
}

.search-container {
    position: relative;
    width: 350px;
}

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

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.7rem 1rem 0.7rem 2.8rem;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: rgba(138, 43, 226, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: transparent;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: var(--bg-glass-hover);
    color: var(--text-main);
}

.notification-badge {
    position: relative;
}

.badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-pink);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-glow, .btn-outline {
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background: #7b21cc;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-glow {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-glow:hover {
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Content Area */
.content-area {
    padding: 2rem;
    overflow-y: auto;
    height: calc(100vh - var(--header-height));
    /* Custom Scrollbar */
}
.content-area::-webkit-scrollbar {
    width: 8px;
}
.content-area::-webkit-scrollbar-track {
    background: transparent;
}
.content-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.content-scroll {
    flex: 1;
    overflow-y: auto;
    height: calc(100vh - var(--header-height));
}
.content-scroll::-webkit-scrollbar {
    width: 8px;
}
.content-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.content-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Hero Section */
.hero-dashboard {
    background: linear-gradient(to right, rgba(18, 20, 28, 0.9), rgba(18, 20, 28, 0.4)), url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.hero-dashboard::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at right, rgba(138,43,226,0.2) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.hero-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 210, 255, 0.15);
    color: var(--accent-blue);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

/* Hero Visual / Pitch HUD Mock */
.hero-visual {
    position: relative;
    z-index: 2;
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-visualizer {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100px;
    position: absolute;
    opacity: 0.3;
}

.audio-bar {
    width: 6px;
    background: var(--accent-blue);
    border-radius: 3px;
    animation: bounce 1s ease infinite alternate;
}

.pitch-hud {
    background: rgba(10, 12, 18, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 3;
}

.note-display {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-green);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    margin-bottom: 0.5rem;
}

.pitch-meter {
    width: 150px;
    height: 6px;
    background: linear-gradient(to right, #f820b0, #00ff88, #f820b0);
    border-radius: 3px;
    position: relative;
    margin-bottom: 0.5rem;
}

.pitch-marker {
    width: 2px;
    height: 14px;
    background: white;
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 5px white;
    transition: left 0.1s ease;
}

.accuracy-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Section Headings */
.section-heading {
    margin-bottom: 1.5rem;
}
.section-heading h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}
.section-heading p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.tool-card {
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.active-badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.locked-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
    flex: 1;
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.feature-list li {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card-footer {
    margin-top: auto;
}

.progress-sm {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.locked-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(0,0,0,0.1),
        rgba(0,0,0,0.1) 10px,
        rgba(0,0,0,0.2) 10px,
        rgba(0,0,0,0.2) 20px
    );
    opacity: 0.3;
    pointer-events: none;
}

.locked-card {
    filter: grayscale(0.5);
}

/* Animations */
@keyframes bounce {
    0% { height: 10px; }
    100% { height: 80px; }
}

.animated-enter {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.delay-2 { animation-delay: 0.2s; animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.delay-3 { animation-delay: 0.3s; animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.delay-4 { animation-delay: 0.4s; animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-dashboard { flex-direction: column; gap: 2rem; align-items: flex-start; }
}

@media (max-width: 768px) {
    .sidebar { position: absolute; transform: translateX(-100%); transition: 0.3s; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
}
