/* =========================
   GENLAB MANUAL STYLE
   Simple & Clean
========================= */

:root {
    --bg-main: #070508;
    --card-bg: #1A1414;
    --card-hover: #2A2020;

    --accent: #FF9F1C;
    --accent2: #FF2E63;
    --accent3: #FFD166;
    --accent-gradient: linear-gradient(135deg, #FF9F1C, #FF2E63);

    --text-main: #FFF6EB;
    --text-muted: #94a3b8;

    --border-soft: rgba(255, 159, 28, 0.08);
}

/* ===== PAGE BASE ===== */

.manual-body {
    background: #070508;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* =========================
   BACK BUTTON SECTION
========================= */

.container-fluid.py-3 {
    position: relative;
    z-index: 10;
}

.btn-outline-light {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, .15);
    transition: all .3s ease;
}

.btn-outline-light:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    transform: translateX(-4px);
}

.btn-outline-light i {
    transition: transform .3s ease;
}

.btn-outline-light:hover i {
    transform: translateX(-3px);
}

/* =========================
   MANUAL WRAPPER
========================= */

.manual-wrapper {
    position: relative;
    min-height: 100vh;
    padding: 40px 0 80px;
}

/* Ambient Background */
.manual-wrapper::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background: #070508;
}

.manual-wrapper::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    filter: blur(140px);
    opacity: .75;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 159, 28, .35), transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 46, 99, .25), transparent 60%);
}

/* Ambient overlay */
body.manual-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at center,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.35) 75%,
            rgba(0, 0, 0, 0.65) 100%);
}

/* =========================
   MANUAL CONTAINER
========================= */

.manual-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 60px;
    
    background: rgba(26, 20, 20, 0.75);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    
    position: relative;
    overflow: hidden;
    transition: all .35s ease;
}

/* glow edge */
.manual-container::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        rgba(255, 159, 28, .2),
        rgba(255, 46, 99, .15),
        transparent 60%
    );
    opacity: .35;
    z-index: -1;
}

.manual-container:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(255, 159, 28, .15),
        0 0 60px rgba(255, 46, 99, .08);
}

/* =========================
   TITLE
========================= */

.manual-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* description text (for index) */
.manual-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* =========================
   MANUAL DESCRIPTION
   (Content pages with separator)
========================= */

.manual-description {
    color: #d1d5db;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    white-space: pre-line;
    position: relative;
    z-index: 1;
}

/* Flowing Separator */
.manual-description::before {
    content: "";
    display: block;
    height: 1px;
    margin: 35px 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 159, 28, .5),
        rgba(255, 46, 99, .5),
        transparent
    );
}

.manual-description strong {
    color: #FFF6EB;
    font-weight: 600;
}

/* =========================
   TEXT CONTENT
========================= */

.manual-container p {
    color: #d1d5db;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.manual-container strong {
    color: #FFF6EB;
    font-weight: 600;
}

.manual-container em {
    color: var(--accent3);
    font-style: italic;
}

/* =========================
   HEADINGS
========================= */

.manual-container h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--accent3);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
    position: relative;
    z-index: 1;
}

.manual-container h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent3);
    margin-top: 30px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

/* =========================
   LISTS
========================= */

.manual-container ul,
.manual-container ol {
    padding-left: 28px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.manual-container li {
    color: #d1d5db;
    margin-bottom: 10px;
    line-height: 1.8;
}

.manual-container ul li::marker {
    color: var(--accent);
}

.manual-container ol li::marker {
    color: var(--accent);
    font-weight: 600;
}

/* =========================
   MANUAL INDEX LIST
========================= */

.manual-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.manual-list li {
    margin-bottom: 14px;
    padding-left: 0;
}

.manual-list a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all .25s ease;
    border: 1px solid transparent;
}

.manual-list a::before {
    content: "→";
    color: var(--accent);
    font-weight: 600;
}

.manual-list a:hover {
    color: var(--accent);
    background: rgba(255, 159, 28, .08);
    border-color: rgba(255, 159, 28, .2);
    transform: translateX(6px);
}

/* =========================
   NAVIGATION
========================= */

.manual-nav {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.manual-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: all .25s ease;
}

.manual-nav a:hover {
    color: var(--accent);
    background: rgba(255, 159, 28, .08);
    border-color: rgba(255, 159, 28, .2);
    transform: translateY(-2px);
}

/* =========================
   HIGHLIGHT BOX
========================= */

.manual-highlight {
    background: rgba(255, 159, 28, .06);
    border: 1px solid rgba(255, 159, 28, .15);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

/* =========================
   DIVIDER
========================= */

.manual-divider {
    height: 1px;
    margin: 35px 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 159, 28, .5),
        rgba(255, 46, 99, .5),
        transparent
    );
    position: relative;
    z-index: 1;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .manual-wrapper {
        padding: 20px 0 60px;
    }

    .manual-container {
        margin: 0 20px;
        padding: 40px 30px;
    }

    .manual-title {
        font-size: 32px;
    }

    .manual-desc,
    .manual-description {
        font-size: 15px;
    }

    .manual-nav {
        flex-direction: column;
    }

    .manual-nav a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .manual-container {
        padding: 30px 22px;
        margin: 0 12px;
    }

    .manual-title {
        font-size: 28px;
    }

    .manual-container h3 {
        font-size: 20px;
    }

    .manual-container p,
    .manual-container li,
    .manual-description {
        font-size: 15px;
    }
}