/* ============================================================
   EF&A Manuals — Global Styles
   Location: manuals/manuals.css
   Purpose: Styling for HOW‑TO manuals (not wizards)
   ============================================================ */

/* Page baseline */
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    transition: background .3s ease, color .3s ease;
}

/* ============================
   TOP NAV
   ============================ */
.top-nav {
    width: 100%;
    background: #0f172a;
    color: #fff;
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Theme Switch */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.theme-switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #475569;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #ff2b6b;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* ============================
   MAIN NAV
   ============================ */
.main-nav {
    background: #1e293b;
    padding: 10px 20px;
    display: flex;
    gap: 18px;
}

.main-nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s ease;
}

.main-nav a:hover {
    color: #ff2b6b;
}

/* ============================
   MANUAL CONTAINER
   ============================ */
.manual-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* Title */
.manual-container h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #0f172a;
}

/* Subtitle */
.manual-sub {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 40px;
}

/* Section headers */
.manual-container h2 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 12px;
    color: #1e293b;
    border-left: 5px solid #ff2b6b;
    padding-left: 12px;
}

/* Paragraphs */
.manual-container p {
    margin-bottom: 18px;
}

/* Lists */
.manual-container ul,
.manual-container ol {
    margin-left: 25px;
    margin-bottom: 25px;
}

.manual-container li {
    margin-bottom: 8px;
}

/* Accent links */
.manual-container a {
    color: #ff2b6b;
    text-decoration: none;
    font-weight: 600;
}

.manual-container a:hover {
    text-decoration: underline;
}

/* Divider */
.manual-divider {
    height: 2px;
    background: #e2e8f0;
    margin: 40px 0;
}

/* ============================
   HELP PANEL
   ============================ */
.help-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100%;
    background: #1e293b;
    color: #fff;
    padding: 25px;
    overflow-y: auto;
    transition: left .35s ease;
    z-index: 9999;
    border-right: 3px solid #ff2b6b;
}

.hp-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.3rem;
    cursor: pointer;
    color: #ff2b6b;
}

.help-open-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px 18px;
    background: #ff2b6b;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 9998;
}

/* ============================
   FOOTER
   ============================ */
.manual-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #475569;
}

/* ============================
   DARK MODE
   ============================ */
body[data-theme="dark"] {
    background: #0f172a;
    color: #e5e7eb;
}

body[data-theme="dark"] .manual-container h1,
body[data-theme="dark"] .manual-container h2 {
    color: #f1f5f9;
}

body[data-theme="dark"] .manual-sub {
    color: #cbd5e1;
}

body[data-theme="dark"] .main-nav a {
    color: #e5e7eb;
}

body[data-theme="dark"] .help-panel {
    background: #0f172a;
    border-right-color: #ff2b6b;
}

/* ============================
   PRINT MODE
   ============================ */
@media print {
    body {
        background: #ffffff;
        color: #000000;
    }
    .manual-container {
        padding: 20px;
    }
    .manual-container h1 {
        color: #000000;
    }
    .manual-container h2 {
        border-left-color: #000000;
        color: #000000;
    }
}

/* Accordion */
.accordion {
    margin-top: 30px;
}

.accordion-item {
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: #1e293b;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s ease;
}

.accordion-header:hover {
    background: #ff2b6b;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    transition: max-height .3s ease;
    padding: 0 20px;
}
