
/* public/style.css */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    font-family: ui-sans-serif, system-ui, sans-serif;
    margin: 0;
    padding: 15px; /* Reduced slightly */
    overflow-x: hidden; /* Prevents horizontal scroll entirely */
    min-height: 100vh;
}


/* Header Layout */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    background-color: #0f172a; /* Dark slate */
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #1e293b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo-section h1 {
    color: #10b981; /* Emerald-400 */
    font-weight: 700;
    margin: 0;
    font-size: 1.25rem;
}

.logo-section span {
    color: #64748b; /* Slate-500 */
    font-weight: 400;
}

.env-label {
    font-size: 10px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Button & Link Styling */
.button-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn {
    padding: 0.4rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 200ms;
    display: inline-flex;
    align-items: center;
}

.btn-reset {
    background-color: #d97706; /* Amber-600 */
    color: white;
}

.btn-reset:hover {
    background-color: #f59e0b;
}

.btn-logout {
    background-color: #1e293b; /* Slate-800 */
    color: #cbd5e1;
}

.btn-logout:hover {
    background-color: #334155;
    color: white;
}

#resource-bar {
    display: flex;
    gap: 1.5rem; /* gap-6 */
    margin-bottom: 0.5rem; /* mb-2 */
    padding: 0.5rem 1rem; /* px-4 py-2 */
    background-color: #1e293b; /* bg-slate-800 */
    border-radius: 0.375rem; /* rounded-md */
    border: 1px solid #334155; /* border-slate-700 */
    font-family: ui-monospace, monospace;
    font-size: 11px;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.stat-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    color: #94a3b8; /* text-slate-400 */
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

.progress-bg {
    width: 6rem; /* w-24 */
    height: 0.5rem; /* h-2 */
    background-color: #020617; /* bg-slate-950 */
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid #334155;
}

.progress-fill {
    height: 100%;
    transition: all 500ms;
}

.bg-emerald { background-color: #10b981; }
.bg-blue { background-color: #3b82f6; }
.bg-amber { background-color: #f59e0b; }
.bg-red { background-color: #ef4444; }

.text-emerald { color: #34d399; }
.text-blue { color: #60a5fa; }

#terminal {
    height: 80vh;
    width: 100%; /* Explicitly define width */
    background-color: black;
    border-radius: 0.375rem;
    padding: 10px;
    overflow: hidden; /* Keeps the terminal internal scroll from affecting the page */
}


        /* Specific Styles for Landing Page */
        .hero {
            text-align: center;
            padding: 4rem 1rem;
            max-width: 1000px;
            margin: 0 auto;
        }
        .main-logo {
            max-width: 300px;
            margin-bottom: 2rem;
            filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.2));
        }
        .book-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }
        .book-card {
            background: #1e293b;
            border: 1px solid #334155;
            border-radius: 1rem;
            padding: 2rem;
            transition: transform 0.3s ease, border-color 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .book-card:hover {
            transform: translateY(-5px);
            border-color: #10b981;
        }
        .book-cover {
            width: 100%;
            border-radius: 0.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
        }
        h2.book-title {
            font-size: 1.5rem;
            color: #10b981;
            margin-bottom: 1rem;
            margin-top: 0;
            font-weight: 700;
        }
        .tagline {
            color: #94a3b8;
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }
        .cta-group {
            display: flex;
            gap: 1rem;
            margin-top: auto;
        }
        .coming-soon {
            opacity: 0.6;
            filter: grayscale(1);
        }

        .video-section {
            max-width: 800px;
            margin: 2rem auto 4rem auto;
            padding: 0 1rem;
        }
        .video-container {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
            height: 0;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
            border: 1px solid #1e293b;
            background-color: #0f172a;
        }
        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        .parts-list-section {
            max-width: 750px;
            margin: 4rem auto;
            padding: 0 1rem;
        }
        .parts-container {
            background-color: #0f172a;
            border: 1px solid #1e293b;
            border-radius: 12px;
            padding: 2.5rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        .parts-container h2 {
            color: #f8fafc;
            font-size: 1.5rem;
            margin-bottom: 1rem;
            text-align: center;
        }
        .parts-intro {
            color: #94a3b8;
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 2rem;
            text-align: left;
        }
        .parts-list {
            list-style-type: disc;
            padding-left: 1.5rem;
            color: #cbd5e1;
        }
        .parts-list li {
            margin-bottom: 0.75rem;
            line-height: 1.5;
        }
        .parts-list a {
            color: #38bdf8;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        .parts-list a:hover {
            color: #7dd3fc;
            text-decoration: underline;
        }
        .parts-subcategory {
            list-style-type: none;
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
            margin-left: -1.5rem;
            color: #f8fafc;
        }
.code-section {
            max-width: 750px;
            margin: 3rem auto;
            padding: 0 1rem;
        }
        .code-container {
            background-color: #0f172a;
            border: 1px solid #1e293b;
            border-radius: 12px;
            padding: 2.5rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        .code-container h2 {
            color: #f8fafc;
            font-size: 1.5rem;
            margin-bottom: 1rem;
            text-align: center;
        }
        .code-intro {
            color: #94a3b8;
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 2rem;
            text-align: center;
        }
        .code-links {
            list-style-type: disc;
            padding-left: 1.5rem;
            color: #cbd5e1;
        }
        .code-links li {
            margin-bottom: 0.75rem;
            line-height: 1.5;
        }
        .code-links a {
            color: #38bdf8;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        .code-links a:hover {
            color: #7dd3fc;
            text-decoration: underline;
        }
        .intro-section {
            max-width: 750px;
            margin: 2rem auto;
            padding: 0 1rem;
        }
        .intro-paragraph {
            color: #cbd5e1;
            font-size: 1.1rem;
            line-height: 1.7;
            text-align: left;
        }
        .image-gallery {
            max-width: 900px;
            margin: 3rem auto;
            padding: 0 1rem;
        }
        .image-set {
            margin-bottom: 4rem;
        }
        .image-pair {
            display: flex;
            gap: 2rem;
            justify-content: center;
            margin-bottom: 1rem;
        }
        .image-pair a {
            flex: 1;
            max-width: 380px; /* Controls the display size while maintaining aspect ratio */
	}
        .single-image-set .image-pair a {
            flex: unset;
            width: 100%;
            max-width: 380px; /* Keeps the exact same width constraint as the pairs */
        }
        .image-pair img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .image-pair img:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        }
        .image-description {
            text-align: left;
            color: #cbd5e1;
            font-size: 1rem;
            max-width: 750px;
            margin: 0 auto;
            line-height: 1.6;
        }
        .image-description a {
            color: #38bdf8;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        .image-description a:hover {
            color: #7dd3fc;
            text-decoration: underline;
        }

        @media (max-width: 650px) {
            .image-pair {
                flex-direction: column;
                align-items: center;
            }
            .image-pair a {
                max-width: 100%;
            }
        }
