
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #0f172a;
    --bg-sidebar: rgba(15, 23, 42, 0.85);
    --bg-card: rgba(30, 41, 59, 0.4);
    --bg-terminal: #030712;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(99, 102, 241, 0.25);
    
    /* Text Colors */
    --color-text-main: #94a3b8;
    --color-text-heading: #f8fafc;
    --color-text-muted: #475569;
    
    /* Accents (Traditional Blue/Indigo Theme) */
    --accent-purple: #6366f1;
    --accent-purple-bright: #818cf8;
    --accent-purple-glow: rgba(99, 102, 241, 0.15);
    --accent-cyan: #38bdf8;
    --accent-cyan-glow: rgba(56, 189, 248, 0.15);
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    
    /* Layout */
    --sidebar-width: 320px;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-neon: 0 0 25px rgba(99, 102, 241, 0.1);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--color-text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    line-height: 1.6;
    letter-spacing: -0.01em;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Background Cyber Orbs & Grid */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.01) 1.5px, transparent 1.5px);
    background-size: 40px 40px, 80px 80px;
    background-position: 0 0, 20px 20px;
    opacity: 0.7;
}

.glow-orb {
    display: none;
}

.orb-1 {
    top: -10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
}

.orb-2 {
    bottom: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: var(--accent-cyan);
    animation-delay: 2s;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    100% { transform: scale(1.15) translate(30px, -20px); opacity: 0.18; }
}

/* Master Layout Container */
.app-container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background: var(--bg-sidebar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-header {
    padding: 30px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 20px;
    color: var(--accent-purple-bright);
    filter: drop-shadow(0 0 8px var(--accent-purple-glow));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(5deg); }
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--color-text-heading);
    background: linear-gradient(135deg, #fff 30%, var(--accent-purple-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-header .badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(157, 78, 221, 0.15);
    border: 1px solid rgba(157, 78, 221, 0.3);
    color: var(--accent-purple-bright);
    letter-spacing: 0.05em;
}

/* Sidebar Menu List */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 24px 16px;
    scrollbar-width: none;
}

.sidebar-menu::-webkit-scrollbar {
    display: none;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--color-text-main);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-text-heading);
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.03);
}

.sprint-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 12px;
    min-width: 28px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
}

.sprint-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollspy Active State */
.nav-link.active {
    color: var(--color-text-heading);
    background: linear-gradient(90deg, rgba(157, 78, 221, 0.08) 0%, rgba(157, 78, 221, 0.01) 100%);
    border-color: var(--border-color-glow);
    box-shadow: inset 3px 0 0 var(--accent-purple);
}

.nav-link.active .sprint-num {
    color: var(--accent-purple-bright);
    background: rgba(157, 78, 221, 0.15);
    border-color: rgba(157, 78, 221, 0.3);
}

.glow-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 3px;
    background: var(--accent-purple);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    box-shadow: 0 0 10px var(--accent-purple);
    transition: var(--transition-smooth);
}

.nav-link.active .glow-indicator {
    opacity: 1;
}

/* Sidebar Footer & Admin buttons */
.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

.admin-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 8px;
    color: var(--accent-purple-bright);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    width: 100%;
}

.admin-link-btn:hover {
    background: var(--accent-purple);
    color: white;
    box-shadow: 0 0 15px var(--accent-purple-glow);
    border-color: var(--accent-purple);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, #3a0ca3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-heading);
}

.author-team {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   CONTENT AREA & SPRINTS
   ========================================================================== */
.content-area {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 80px 10% 120px 8%;
    scrollbar-width: none;
}

.content-area::-webkit-scrollbar {
    display: none;
}

/* Content Header */
.content-header {
    margin-bottom: 80px;
    max-width: 850px;
}

.header-pre {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--accent-purple-bright);
    margin-bottom: 12px;
}

.header-title {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--color-text-heading);
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff 40%, var(--accent-purple-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-desc {
    font-size: 18px;
    color: var(--color-text-main);
    line-height: 1.7;
    margin-bottom: 30px;
}

.header-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--color-text-heading);
}

.stat-badge i {
    color: var(--accent-cyan);
}

/* Section Containers */
.sprint-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    max-width: 850px;
}

.sprint-section:last-of-type {
    border-bottom: none;
}

.section-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(157, 78, 221, 0.1);
    color: var(--accent-purple-bright);
    border: 1px solid rgba(157, 78, 221, 0.2);
    margin-bottom: 16px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text-heading);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-text {
    font-size: 16px;
    color: var(--color-text-main);
    margin-bottom: 35px;
    line-height: 1.8;
}

/* ==========================================================================
   FAUX TERMINAL COMPONENT
   ========================================================================== */
.terminal-wrapper {
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.terminal-wrapper:hover {
    border-color: rgba(157, 78, 221, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(157, 78, 221, 0.1);
}

.terminal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.terminal-actions {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-close { background-color: var(--accent-red); }
.dot-minimize { background-color: var(--accent-yellow); }
.dot-maximize { background-color: var(--accent-green); }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--color-text-muted);
}

.terminal-replay {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition-smooth);
    padding: 4px;
    border-radius: 4px;
}

.terminal-replay:hover {
    color: var(--accent-purple-bright);
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(30deg);
}

.terminal-body {
    padding: 24px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    color: #f1f1f1;
    line-height: 1.6;
    min-height: 180px;
    position: relative;
    overflow-x: auto;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.prompt {
    color: var(--accent-green);
    user-select: none;
}

.command-text {
    color: #f1f1f1;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: var(--accent-cyan);
    animation: blink 0.8s infinite step-end;
}

@keyframes blink {
    from, to { background-color: transparent }
    50% { background-color: var(--accent-cyan) }
}

.terminal-output {
    white-space: pre-wrap;
    color: #a9b2c3;
    animation: fadeIn 0.4s ease-out;
}

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

/* Syntax Coloring for terminal outputs */
.text-green { color: var(--accent-green); }
.text-cyan { color: var(--accent-cyan); }
.text-violet { color: var(--accent-purple-bright); }
.text-white { color: #ffffff; }

/* ==========================================================================
   EXPLANATION BOX
   ========================================================================== */
.explanation-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.exp-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exp-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exp-title i {
    font-size: 15px;
}

.exp-title .text-violet { color: var(--accent-purple-bright); }
.exp-title .text-cyan { color: var(--accent-cyan); }

.exp-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--color-text-main);
}

/* ==========================================================================
   PLACEHOLDER CARDS (Sprints 3 to 10)
   ========================================================================== */
.placeholder-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.placeholder-card:hover {
    background: rgba(157, 78, 221, 0.01);
    border-color: rgba(157, 78, 221, 0.3);
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.placeholder-card:hover .placeholder-icon {
    color: var(--accent-purple-bright);
    background: rgba(157, 78, 221, 0.08);
    border-color: rgba(157, 78, 221, 0.2);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.1);
}

.placeholder-meta {
    flex: 1;
}

.placeholder-meta h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 6px;
}

.placeholder-meta p {
    font-size: 13.5px;
    color: var(--color-text-muted);
}

.badge-lock {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.01);
    transition: var(--transition-smooth);
}

.placeholder-card:hover .badge-lock {
    color: var(--accent-purple-bright);
    border-color: rgba(157, 78, 221, 0.3);
    background: rgba(157, 78, 221, 0.05);
}

/* ==========================================================================
   ADMIN PANEL DASHBOARD STYLES
   ========================================================================== */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.admin-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.admin-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text-heading);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.back-btn:hover {
    color: var(--color-text-heading);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* Admin Grid Layout */
.admin-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.sprint-selector-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.sprint-selector-card::-webkit-scrollbar {
    display: none;
}

.selector-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.selector-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.selector-item-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--color-text-main);
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.selector-item-btn:hover {
    background: rgba(255,255,255,0.02);
    color: var(--color-text-heading);
}

.selector-item-btn.active {
    background: rgba(157, 78, 221, 0.08);
    border-color: rgba(157, 78, 221, 0.2);
    color: var(--accent-purple-bright);
}

.selector-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 5px;
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
    min-width: 26px;
    text-align: center;
}

.selector-item-btn.active .selector-num {
    background: rgba(157, 78, 221, 0.15);
}

/* Editor Form Styling */
.admin-editor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 20px;
}

.form-group.half-width {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 14.5px;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.2);
}

.form-textarea {
    width: 100%;
    height: 120px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: var(--transition-smooth);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.2);
}

/* Code Specific TextAreas */
.code-area {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    background: var(--bg-terminal);
}

/* Toggle Switch Component */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a35;
    transition: .3s;
    border-radius: 34px;
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-purple);
}

input:focus + .slider {
    box-shadow: 0 0 8px var(--accent-purple-glow);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.toggle-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text-heading);
}

/* Conditional Forms toggled by status */
.conditional-editor {
    transition: opacity 0.3s ease;
}

.hidden-block {
    display: none !important;
}

/* Form Actions Button */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.save-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-purple);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.save-btn:hover {
    background: var(--accent-purple-bright);
    box-shadow: 0 0 15px var(--accent-purple-glow);
    transform: translateY(-1px);
}

.save-btn:active {
    transform: translateY(0);
}

.add-sprint-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.25);
    border-radius: 6px;
    color: var(--accent-cyan);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.add-sprint-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.delete-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 85, 85, 0.08);
    border: 1px solid rgba(255, 85, 85, 0.25);
    border-radius: 8px;
    color: var(--accent-red);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.delete-btn:hover {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 0 15px rgba(255, 85, 85, 0.3);
    border-color: var(--accent-red);
}

.delete-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   BLOCKS EDITOR (PAGE BUILDER) STYLES
   ========================================================================== */
.blocks-editor-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 25px;
}

.blocks-editor-list::-webkit-scrollbar {
    width: 6px;
}
.blocks-editor-list::-webkit-scrollbar-track {
    background: transparent;
}
.blocks-editor-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}
.blocks-editor-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.12);
}

.block-editor-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: var(--transition-smooth);
}

.block-editor-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.015);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Colors for block card borders */
.block-type-text { border-left: 3px solid var(--accent-purple); }
.block-type-terminal { border-left: 3px solid var(--accent-cyan); }
.block-type-image { border-left: 3px solid var(--accent-yellow); }
.block-type-video { border-left: 3px solid var(--accent-red); }
.block-type-video input:checked + .slider { background-color: var(--accent-red); }
.block-type-video input:focus + .slider { box-shadow: 0 0 8px rgba(255, 85, 85, 0.4); }
.block-type-placeholder { border-left: 3px solid var(--color-text-muted); }

.block-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 10px;
}

.block-editor-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.block-move-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--color-text-main);
    font-size: 11px;
    padding: 4px 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-move-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.block-delete-btn {
    background: none;
    border: 1px solid rgba(255, 85, 85, 0.2);
    border-radius: 4px;
    color: var(--accent-red);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 4px;
}

.block-delete-btn:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.block-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    margin-top: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.controls-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.controls-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.controls-buttons .add-block-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--color-text-main);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.controls-buttons .add-block-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}

.text-violet { color: var(--accent-purple-bright); }
.text-cyan { color: var(--accent-cyan); }
.text-yellow { color: var(--accent-yellow); }
.text-red { color: var(--accent-red); }
.text-muted { color: var(--color-text-muted); }

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 8px;
    background: rgba(13, 14, 27, 0.95);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    color: white;
    font-size: 14px;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 5px 25px rgba(16, 185, 129, 0.15);
}

.toast.success i {
    color: var(--accent-green);
}

.toast.error {
    border-color: rgba(255, 85, 85, 0.4);
    box-shadow: 0 5px 25px rgba(255, 85, 85, 0.15);
}

.toast.error i {
    color: var(--accent-red);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-header {
        padding: 20px;
    }
    
    .sidebar-menu {
        padding: 12px 20px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 12px;
    }
    
    .nav-link {
        padding: 8px 14px;
    }
    
    .nav-link.active {
        box-shadow: inset 0 -3px 0 var(--accent-purple);
    }
    
    .glow-indicator {
        display: none;
    }
    
    .sidebar-footer {
        padding: 12px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .admin-link-btn {
        width: auto;
    }

    .author-info {
        display: none;
    }
    
    .content-area {
        padding: 40px 24px 80px 24px;
        overflow-y: auto;
    }
    
    .header-title {
        font-size: 40px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .sprint-selector-card {
        max-height: 180px;
    }
    
    .selector-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .selector-item-btn {
        width: auto;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .explanation-box {
        grid-template-columns: 1fr;
    }
    
    .placeholder-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .placeholder-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .form-group.half-width {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   ADMIN LOGIN OVERLAY
   ========================================================================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
}

.login-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.login-logo {
    margin-bottom: 25px;
}

.login-logo i {
    font-size: 40px;
    color: var(--accent-purple);
    margin-bottom: 15px;
}

.login-logo h2 {
    color: var(--color-text-heading);
    margin-bottom: 5px;
    font-size: 22px;
}

.login-logo p {
    color: var(--color-text-main);
    font-size: 13.5px;
}

.login-error {
    margin-top: 15px;
    color: var(--accent-red);
    font-size: 13px;
    font-weight: 600;
}
