:root {
    --primary: #c084fc;
    --primary-dark: #a855f7;
    --secondary: #22d3ee;
    --accent: #fb7185;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --neon-shadow: 0 0 15px rgba(192, 132, 252, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Background */
.glow-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 30%, rgba(192, 132, 252, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

/* Layout */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 2.5rem 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-item {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-item:hover,
.nav-item.active {
    background: rgba(192, 132, 252, 0.1);
    color: var(--primary);
    transform: translateX(5px);
}

.nav-item.vibrant-blue {
    color: #60a5fa;
    border: 1px dashed rgba(96, 165, 250, 0.3);
}

.nav-item.vibrant-blue:hover {
    background: rgba(96, 165, 250, 0.1);
}

.nav-item.vibrant {
    color: var(--secondary);
    border-left: 2px solid transparent;
}

.nav-item.vibrant:hover {
    border-left: 2px solid var(--secondary);
    background: rgba(34, 211, 238, 0.05);
}

.nav-item.vibrant-gold {
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
    margin: 10px 0;
    font-weight: 700;
}

.nav-item.vibrant-gold:hover {
    background: rgba(251, 191, 36, 0.1);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.nav-item i {
    font-size: 1.25rem;
}

.flow-card.wide {
    grid-column: 1 / -1;
}

table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Main Content */
.main-content {
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.header {
    margin-bottom: 3rem;
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Roadmap Grid */
.roadmap-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.flow-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.flow-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--neon-shadow);
}

.flow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

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

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.hot {
    background: rgba(251, 113, 133, 0.2);
    color: var(--accent);
}

.badge.cool {
    background: rgba(34, 211, 238, 0.2);
    color: var(--secondary);
}

/* Steps List */
.step-item {
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    transition: var(--transition);
}

.step-item:hover {
    border-color: var(--glass-border);
    background: rgba(15, 23, 42, 0.6);
}

.arrow {
    display: block;
    text-align: center;
    color: var(--primary);
    margin: -5px 0 5px 0;
    font-size: 1.2rem;
}

.reagent {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.product {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Reagent Grid */
.reagent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.reagent-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
}

.reagent-card h3 {
    color: var(--secondary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.reagent-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}



@media (max-width: 900px) {
    .app-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}