/* ============================================================
   GCI 3D Printing Training – Shared Stylesheet
   Used by: day1.html through day5.html
   ============================================================ */

/* ── CSS Custom Properties (themes) ─────────────────────── */
:root {
    --bambu-blue: #0096d6;
    --bambu-green: #7ed957;
    --bambu-dark: #181c1f;
    --bambu-light: #f7fafd;
    --bambu-gray: #e5e8ea;
    --bambu-accent: #ffb800;
    --bg: var(--bambu-dark);
    --card: #23282c;
    --text: #f7fafd;
    --muted: #b6c2ce;
    --accent: var(--bambu-blue);
    --border: #2c3237;
    --bg-grad-1: #1e2327;
    --bg-grad-2: #23282c;
    --surface-subtle: rgba(0, 150, 214, 0.04);
    --surface-alt: rgba(0, 150, 214, 0.08);
    --surface-accent: rgba(0, 150, 214, 0.16);
    --surface-accent-soft: rgba(0, 150, 214, 0.10);
    --active-border: var(--bambu-accent);
    --focus-border: #7ed957;
    --badge-bg: #1e2327;
    --badge-text: #ffb800;
    --badge-border: #7ed957;
    --success-text: #7ed957;
    --action-bg-start: #0096d6;
    --action-bg-end: #005b8a;
    --action-text: #ffffff;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
    --link-color: var(--accent);
    --link-hover-color: var(--bambu-accent);
}

[data-theme="light"] {
    --bg: var(--bambu-light);
    --card: #ffffff;
    --muted: #4a4a4a;
    --text: #181c1f;
    --accent: #0096d6;
    --border: #b6c2ce;
    --bg-grad-1: #e5e8ea;
    --bg-grad-2: #f7fafd;
    --surface-subtle: rgba(0, 150, 214, 0.04);
    --surface-alt: rgba(0, 150, 214, 0.08);
    --surface-accent: rgba(0, 150, 214, 0.12);
    --surface-accent-soft: rgba(0, 150, 214, 0.08);
    --active-border: #ffb800;
    --focus-border: #0096d6;
    --badge-bg: #e5e8ea;
    --badge-text: #0096d6;
    --badge-border: #ffb800;
    --success-text: #0096d6;
    --action-bg-start: #0096d6;
    --action-bg-end: #005b8a;
    --action-text: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --link-color: #0068b5;
    --link-hover-color: #004f94;
}

[data-theme="high-contrast"] {
    --bg: #000000;
    --card: #000000;
    --muted: #f2f2f2;
    --text: #ffffff;
    --accent: #00ffff;
    --border: #ffffff;
    --bg-grad-1: #000000;
    --bg-grad-2: #000000;
    --surface-subtle: rgba(255, 255, 255, 0.12);
    --surface-alt: rgba(255, 255, 255, 0.2);
    --surface-accent: rgba(0, 255, 255, 0.2);
    --surface-accent-soft: rgba(0, 255, 255, 0.14);
    --active-border: #00ffff;
    --focus-border: #00ffff;
    --badge-bg: #000000;
    --badge-text: #ffffff;
    --badge-border: #ffffff;
    --success-text: #00ff00;
    --action-bg-start: #ffffff;
    --action-bg-end: #ffffff;
    --action-text: #000000;
    --shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
    --link-color: #00ffff;
    --link-hover-color: #ffffff;
}

/* ── Base ─────────────────────────────────────────────────── */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: linear-gradient(120deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 100%) var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Font-size accessibility (used by Day 1) */
body[data-font-size="large"] { font-size: 1.1rem; }
body[data-font-size="x-large"] { font-size: 1.22rem; }

/* ── Layout ───────────────────────────────────────────────── */
.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px 44px;
}

/* ── Hero Banner ──────────────────────────────────────────── */
.hero {
    background: linear-gradient(90deg, var(--bambu-blue) 0%, var(--bambu-accent) 100%);
    color: #fff;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    border-radius: 0 0 2rem 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin: 0;
    color: #f7fafd;
}

/* ── Sticky Navigation Bar ────────────────────────────────── */
.sticky-mini-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
}

/* ── Theme Selector ───────────────────────────────────────── */
.theme-select {
    font-size: 1rem;
    padding: 0.4rem 1.2rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border);
    background: var(--surface-alt);
    color: var(--text);
    margin-right: 1rem;
    transition: border 0.2s;
}

.theme-select:focus {
    border: 2px solid var(--focus-border);
    outline: none;
}

/* ── Day Navigation ───────────────────────────────────────── */
.day-nav {
    display: flex;
    gap: 0.5rem;
}

.day-nav-btn {
    background: var(--surface-accent);
    color: var(--accent);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.day-nav-btn.is-active,
.day-nav-btn:hover,
.day-nav-btn:focus {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 150, 214, 0.15);
}

/* ── Day Cards / Content Sections ────────────────────────── */
.day-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.day-card {
    background: var(--card);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.day-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 32px rgba(0, 150, 214, 0.18);
}

.day-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.day-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* ── Badge / Pill ─────────────────────────────────────────── */
.pill {
    background: var(--badge-bg);
    color: var(--badge-text);
    border: 1.5px solid var(--badge-border);
    border-radius: 999px;
    padding: 0.25em 1em;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ── Typography ───────────────────────────────────────────── */
.goal,
.guidance,
.deliverable {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.guidance {
    color: var(--bambu-green);
    font-style: italic;
}

h3 {
    color: var(--accent);
    margin-top: 1.5rem;
}

ul,
ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

label {
    display: block;
    margin: 6px 0;
}

a {
    color: var(--link-color);
    text-decoration: underline;
    transition: color 0.2s;
}

a:hover,
a:focus {
    color: var(--link-hover-color);
}

/* ── Info Boxes ───────────────────────────────────────────── */
.flow-note {
    background: var(--surface-subtle);
    border-left: 4px solid var(--accent);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Note/info box (used by Day 1) */
.note {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 12px;
    margin: 10px 0;
}

/* Fun-fact box (used by Day 1) */
.fun {
    background: var(--surface-accent-soft);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 12px;
    margin: 10px 0;
    color: var(--bambu-green);
}

/* ── Media Embeds ─────────────────────────────────────────── */
.media-embed {
    margin: 1rem 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 150, 214, 0.10);
}

.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* General iframe (used by Day 1) */
iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
    margin: 8px 0 12px;
}

/* ── Forms ────────────────────────────────────────────────── */
textarea,
input[type="text"] {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-grad-1);
    color: var(--text);
    border: 1px solid var(--border);
    box-sizing: border-box;
    font-family: inherit;
}

[data-theme="light"] textarea,
[data-theme="light"] input[type="text"] {
    background: #ffffff;
    color: #142033;
}

[data-theme="high-contrast"] textarea,
[data-theme="high-contrast"] input[type="text"] {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

select {
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    font-family: inherit;
}

[data-theme="light"] select {
    background: #ffffff;
    color: #142033;
}

[data-theme="high-contrast"] select {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
}

/* ── Buttons ──────────────────────────────────────────────── */
button {
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--accent);
    border: none;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Focus rings */
button:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible,
summary:focus-visible,
a:focus-visible {
    outline: 3px solid var(--bambu-green);
    outline-offset: 3px;
}

/* ── Details / Accordion (used by Day 1) ─────────────────── */
details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 12px;
    padding: 16px;
}

summary {
    cursor: pointer;
    font-weight: bold;
    color: var(--accent);
}

/* ── Progress Bar (used by Day 1) ────────────────────────── */
.progress {
    margin-bottom: 10px;
}

.bar {
    height: 10px;
    background: var(--bg-grad-1);
    border-radius: 10px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--bambu-green));
    width: 0%;
    transition: width 0.4s ease;
}

/* ── Grid Layout (used by Day 1) ─────────────────────────── */
.part-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Quiz Components (used by Day 1) ─────────────────────── */
.quiz-box {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0;
    background: var(--surface-subtle);
}

.quiz-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.quiz-progress {
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.feedback {
    font-weight: 700;
    margin-top: 8px;
}

.explanation {
    margin-top: 8px;
    color: var(--muted);
}

/* ── Screen-reader only ───────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Bottom Navigation ────────────────────────────────────── */
.bottom-nav {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

/* ── Checklist ────────────────────────────────────────────── */
.checklist li {
    margin: 8px 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 700px) {
    .wrap {
        padding: 0 4vw 44px;
    }

    .hero {
        padding: 2rem 0.5rem 1.5rem 0.5rem;
    }

    .sticky-mini-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .day-card {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }

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


/* ═══ Intro_to_3D_Printing.html styles ═══ */

/* CSS variable overrides – scoped to avoid conflict with Bambu design system */
body[data-page="intro"] {
    --bg: #0b0c0f;
    --card: #12141a;
    --text: #e8ecf2;
    --muted: #c4ccda;
    --accent: #7fb2ff;
    --border: #1e2230;
    --bg-grad-1: #1a2235;
    --bg-grad-2: #16202e;
    --surface-subtle: rgba(255, 255, 255, 0.03);
    --surface-alt: rgba(255, 255, 255, 0.06);
    --surface-accent: rgba(79, 140, 255, 0.16);
    --surface-accent-soft: rgba(79, 140, 255, 0.12);
    --active-border: #7fb2ff;
    --focus-border: #9ec5ff;
    --badge-bg: #1a2332;
    --badge-text: #d6e4ff;
    --badge-border: #2e4c77;
    --success-text: #86efac;
    --action-bg-start: #4f8cff;
    --action-bg-end: #2a5bd7;
    --action-text: #ffffff;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
    margin: 0;
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    background: radial-gradient(1200px 800px at 90% -10%, var(--bg-grad-1) 0%, var(--bg) 35%), radial-gradient(1000px 600px at -10% 110%, var(--bg-grad-2) 0%, transparent 40%) var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body[data-page="intro"][data-theme="light"] {
    --bg: #f5f5f5;
    --card: #ffffff;
    --muted: #4a4a4a;
    --text: #1a1a1a;
    --accent: #0052cc;
    --border: #d0d0d0;
    --bg-grad-1: #dde7ff;
    --bg-grad-2: #e9efff;
    --surface-subtle: rgba(0, 0, 0, 0.03);
    --surface-alt: rgba(0, 0, 0, 0.06);
    --surface-accent: rgba(0, 82, 204, 0.12);
    --surface-accent-soft: rgba(0, 82, 204, 0.10);
    --active-border: #0052cc;
    --focus-border: #0052cc;
    --badge-bg: #e6eefc;
    --badge-text: #0f3f99;
    --badge-border: #9eb8ef;
    --success-text: #0f5132;
    --action-bg-start: #0052cc;
    --action-bg-end: #003fa3;
    --action-text: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    background: #f5f5f5;
}

body[data-page="intro"][data-theme="high-contrast"] {
    --bg: #000000;
    --card: #000000;
    --muted: #f2f2f2;
    --text: #ffffff;
    --accent: #00ffff;
    --border: #ffffff;
    --bg-grad-1: #000000;
    --bg-grad-2: #000000;
    --surface-subtle: rgba(255, 255, 255, 0.12);
    --surface-alt: rgba(255, 255, 255, 0.2);
    --surface-accent: rgba(0, 255, 255, 0.2);
    --surface-accent-soft: rgba(0, 255, 255, 0.14);
    --active-border: #00ffff;
    --focus-border: #00ffff;
    --badge-bg: #000000;
    --badge-text: #ffffff;
    --badge-border: #ffffff;
    --success-text: #00ff00;
    --action-bg-start: #ffffff;
    --action-bg-end: #ffffff;
    --action-text: #000000;
    --shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
    background: #000000;
}

[data-page="intro"] .wrap {
    max-width: 960px;
    margin: 32px auto;
    padding: 0 16px 44px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    z-index: 2000;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

[data-page="intro"] h1 {
    margin: 0 0 6px;
    font-size: 1.45rem;
    letter-spacing: 0.2px;
}

.lead {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.meta {
    margin: 0 0 20px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-subtle);
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

[data-page="intro"] .day-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

[data-page="intro"] .day-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
}

[data-page="intro"] .sticky-mini-nav {
    position: sticky;
    top: 8px;
    z-index: 20;
    margin: 0 0 14px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    backdrop-filter: blur(4px);
}

.sticky-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    flex-wrap: wrap;
}

.sticky-help {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

[data-page="intro"] .theme-select {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 44px;
    font: inherit;
    font-size: 0.9rem;
}

.shortcut-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

[data-page="intro"] .day-nav-btn,
[data-page="intro"] .pager-btn {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 44px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

[data-page="intro"] .day-nav-btn:hover,
[data-page="intro"] .day-nav-btn:focus-visible,
[data-page="intro"] .pager-btn:hover,
[data-page="intro"] .pager-btn:focus-visible {
    border-color: var(--focus-border);
    outline: none;
}

[data-page="intro"] .day-nav-btn.is-active {
    background: var(--surface-accent);
    color: var(--text);
    border-color: var(--active-border);
}

[data-page="intro"] .day-nav-btn.is-complete::after {
    content: ' ✓';
    color: var(--success-text);
    font-weight: 800;
}

.day-pager {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.pager-status {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

[data-page="intro"] .day-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.day-card-tools {
    display: flex;
    gap: 8px;
    margin: 6px 0 10px;
    flex-wrap: wrap;
}

.card-tool-btn {
    border: 1px solid var(--border);
    background: var(--surface-subtle);
    color: var(--text);
    border-radius: 8px;
    padding: 7px 10px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.card-tool-btn:hover,
.card-tool-btn:focus-visible {
    border-color: var(--focus-border);
    outline: none;
}

.back-top-wrap {
    margin-top: 12px;
}

[data-page="intro"] .day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

[data-page="intro"] .day-title {
    margin: 0;
    font-size: 1.14rem;
}

[data-page="intro"] .pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--badge-bg);
    color: var(--badge-text);
    border: 1px solid var(--badge-border);
    font-size: 0.8rem;
    font-weight: 700;
}

[data-page="intro"] .slides-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s;
}
[data-page="intro"] .slides-link:hover { opacity: 0.85; }

[data-page="intro"] .goal {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 0.98rem;
}

[data-page="intro"] h3 {
    margin: 14px 0 8px;
    font-size: 0.94rem;
    letter-spacing: 0.1px;
}

[data-page="intro"] p,
[data-page="intro"] li {
    line-height: 1.55;
}

[data-page="intro"] ol,
[data-page="intro"] ul {
    margin: 0;
    padding-left: 20px;
}

[data-page="intro"] li {
    margin-bottom: 8px;
}

[data-page="intro"] a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
}

[data-page="intro"] a:hover,
[data-page="intro"] a:focus-visible {
    text-decoration: underline;
}

.deliverable {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    background: var(--surface-accent-soft);
    border: 1px solid var(--active-border);
    font-size: 0.95rem;
}

.worksheet {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-subtle);
}

.worksheet-title {
    margin: 0 0 8px;
    font-size: 1.02rem;
}

[data-page="intro"] table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 12px;
}

[data-page="intro"] th,
[data-page="intro"] td {
    border: 1px solid var(--border);
    padding: 10px;
    vertical-align: top;
    text-align: left;
    font-size: 0.93rem;
}

[data-page="intro"] th {
    background: var(--surface-alt);
}

[data-page="intro"] .field,
[data-page="intro"] textarea,
[data-page="intro"] input[type="text"] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 12px;
    min-height: 44px;
    font: inherit;
    color: inherit;
    background: rgba(0, 0, 0, 0.24);
}

[data-page="intro"] textarea {
    min-height: 128px;
    resize: vertical;
}

.short {
    min-height: 96px;
}

[data-page="intro"] .checklist li {
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-subtle);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

[data-page="intro"] .checklist li:hover,
[data-page="intro"] .checklist li:focus-within {
    background: var(--surface-accent-soft);
    border-color: var(--active-border);
}

[data-page="intro"] .checklist input {
    margin-top: 3px;
}

.worksheet-actions {
    margin: 8px 0 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.copy-btn {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--action-bg-start) 0%, var(--action-bg-end) 100%);
    color: var(--action-text);
    border-radius: 8px;
    padding: 10px 12px;
    min-height: 44px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.copy-btn:hover,
.copy-btn:focus-visible {
    border-color: var(--focus-border);
    outline: none;
}

.copy-status {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

[data-page="intro"] .guidance {
    margin: 6px 0 10px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

[data-page="intro"] .flow-note {
    margin: 4px 0 10px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-accent-soft);
    font-size: 0.88rem;
    color: var(--muted);
}

.hint-list {
    margin: 0 0 8px;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.diagram {
    margin: 10px 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: var(--surface-subtle);
}

.diagram img {
    display: block;
    width: 100%;
    max-width: 780px;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.diagram-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

[data-page="intro"] .media-embed {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

[data-page="intro"] .video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

[data-page="intro"] .video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
}

/* ═══ Intro_to_3D_Printing_Orientation.html styles ═══ */

body[data-page="orientation"] {
    --bg: #0b0c0f;
    --card: #151821;
    --text: #edf2f7;
    --muted: #c0cad8;
    --accent: #7fb2ff;
    --accent-soft: rgba(127,178,255,.15);
    --border: #273043;
    --success: #9ae6b4;
    --warning: #f6e05e;
    --shadow: 0 8px 28px rgba(0,0,0,.35);
    margin: 0;
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    background: radial-gradient(circle at top right, #16233c 0%, transparent 25%), var(--bg);
    color: var(--text);
    line-height: 1.55;
}

body[data-page="orientation"][data-theme="light"] {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #17212f;
    --muted: #4b5a6d;
    --accent: #1d5fd0;
    --accent-soft: rgba(29,95,208,.10);
    --border: #d8e0ec;
    --success: #1f7a43;
    --warning: #9a6700;
    --shadow: 0 4px 16px rgba(20,33,61,.10);
    background: var(--bg);
}

[data-page="orientation"] .wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

[data-page="orientation"] h1 { margin: 0 0 8px; font-size: 2rem; }
[data-page="orientation"] h2 { margin: 0 0 10px; font-size: 1.25rem; }
[data-page="orientation"] h3 { margin: 18px 0 8px; font-size: 1rem; }
[data-page="orientation"] p,
[data-page="orientation"] li { font-size: .98rem; }

[data-page="orientation"] .lead,
[data-page="orientation"] .meta,
[data-page="orientation"] .guidance,
[data-page="orientation"] .small { color: var(--muted); }

[data-page="orientation"] .hero,
[data-page="orientation"] .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

[data-page="orientation"] .hero { padding: 22px; margin-bottom: 18px; }

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px,1fr));
    gap: 10px;
    margin-top: 16px;
}

.meta-chip {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,.02);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 18px;
}

.toolbar-group { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

[data-page="orientation"] button,
[data-page="orientation"] select,
[data-page="orientation"] input[type="text"],
[data-page="orientation"] textarea {
    font: inherit;
}

[data-page="orientation"] button,
[data-page="orientation"] select {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    padding: 10px 12px;
}

[data-page="orientation"] button { cursor: pointer; font-weight: 700; }

[data-page="orientation"] button.primary {
    background: linear-gradient(180deg, #4f8cff 0%, #2e66de 100%);
    color: white;
    border-color: #2e66de;
}

[data-page="orientation"] button:hover,
[data-page="orientation"] button:focus-visible,
[data-page="orientation"] select:focus-visible,
[data-page="orientation"] input:focus-visible,
[data-page="orientation"] textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.parts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

[data-page="orientation"] .card { padding: 18px; }

[data-page="orientation"] .pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
    border: 1px solid var(--border);
    background: var(--accent-soft);
    margin-bottom: 10px;
}

.video-box {
    margin-top: 10px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255,255,255,.02);
}

[data-page="orientation"] .video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    border: 1px solid var(--border);
    margin-top: 10px;
}

[data-page="orientation"] .video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.placeholder {
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255,255,255,.02);
}

[data-page="orientation"] .checklist {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

[data-page="orientation"] .checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(255,255,255,.02);
}

.two-col { display: grid; grid-template-columns: 1fr; gap: 16px; }

[data-page="orientation"] table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: .94rem;
}

[data-page="orientation"] th,
[data-page="orientation"] td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

[data-page="orientation"] th { background: rgba(255,255,255,.05); }

[data-page="orientation"] input[type="text"],
[data-page="orientation"] textarea {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 10px 12px;
    background: rgba(0,0,0,.18);
    color: var(--text);
}

[data-page="orientation"] textarea { min-height: 110px; resize: vertical; }

.quiz-shell {
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255,255,255,.02);
}

.quiz-feedback { min-height: 24px; font-weight: 700; margin: 8px 0 0; }
.correct { color: var(--success); }
.incorrect { color: #ffb4b4; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.hidden { display: none !important; }
.section-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }

[data-page="orientation"] a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 700;
}

[data-page="orientation"] a:hover,
[data-page="orientation"] a:focus-visible { text-decoration: underline; }

[data-page="orientation"] .note {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--accent-soft);
    margin-top: 10px;
}

.footer-link { display: inline-block; margin-top: 20px; }

@media (min-width: 760px) {
    .parts-grid { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr 1fr; }
}

/* ═══ Digital_3D_Printing_Notebook_Bambu_A1.html styles ═══ */

body[data-page="notebook"] {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #111827;
    --muted: #4b5563;
    --accent: #2563eb;
    --border: #dbe3ef;
    --shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
    margin: 0;
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #ebf2ff 0%, var(--bg) 70%);
    color: var(--text);
}

[data-page="notebook"] .wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px 44px;
}

[data-page="notebook"] h1 {
    margin: 0 0 8px;
    font-size: 2rem;
}

[data-page="notebook"] .lead {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.45;
}

[data-page="notebook"] .meta {
    margin: 0 0 18px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fbff;
    color: var(--muted);
    font-size: 0.95rem;
}

.section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 14px;
}

.section h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

[data-page="notebook"] .goal {
    margin: 0 0 12px;
    font-size: 0.98rem;
}

[data-page="notebook"] h3 {
    margin: 12px 0 8px;
    font-size: 1rem;
}

[data-page="notebook"] table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 10px;
}

[data-page="notebook"] th,
[data-page="notebook"] td {
    border: 1px solid var(--border);
    padding: 8px;
    vertical-align: top;
    text-align: left;
    font-size: 0.95rem;
}

[data-page="notebook"] th {
    background: #f3f7ff;
}

[data-page="notebook"] .field,
[data-page="notebook"] textarea,
[data-page="notebook"] input[type="text"],
[data-page="notebook"] select {
    width: 100%;
    border: 1px solid #cfd9ea;
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    color: inherit;
    background: #fff;
}

[data-page="notebook"] textarea {
    min-height: 92px;
    resize: vertical;
}

[data-page="notebook"] .short {
    min-height: 64px;
}

[data-page="notebook"] .checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

[data-page="notebook"] .checklist li {
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

[data-page="notebook"] .checklist input {
    margin-top: 3px;
}

.line-input {
    margin: 6px 0;
}

[data-page="notebook"] .back-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

[data-page="notebook"] .back-link:hover,
[data-page="notebook"] .back-link:focus-visible {
    text-decoration: underline;
}

@media print {
    body[data-page="notebook"] {
        background: #fff;
    }

    [data-page="notebook"] .section {
        box-shadow: none;
        break-inside: avoid;
    }

    [data-page="notebook"] .back-link {
        display: none;
    }
}

/* ═══ GCI3Dorder.html styles ═══ */

body[data-page="order"] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

[data-page="order"] .container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

[data-page="order"] .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

[data-page="order"] .header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

[data-page="order"] .header p {
    font-size: 1.1em;
    opacity: 0.9;
}

[data-page="order"] .form-container {
    padding: 40px;
}

[data-page="order"] .form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

[data-page="order"] .form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

[data-page="order"] .form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

[data-page="order"] label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.required {
    color: #e74c3c;
}

[data-page="order"] input[type="text"],
[data-page="order"] input[type="email"],
[data-page="order"] input[type="tel"],
[data-page="order"] input[type="number"],
[data-page="order"] select,
[data-page="order"] textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
    font-family: inherit;
}

[data-page="order"] input[type="text"]:focus,
[data-page="order"] input[type="email"]:focus,
[data-page="order"] input[type="tel"]:focus,
[data-page="order"] input[type="number"]:focus,
[data-page="order"] select:focus,
[data-page="order"] textarea:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

[data-page="order"] input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #667eea;
    border-radius: 8px;
    background-color: #f8f9ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-page="order"] input[type="file"]:hover {
    background-color: #f0f2ff;
    border-color: #5a6fd8;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-page="order"] input[type="checkbox"],
[data-page="order"] input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-page="order"] textarea {
    resize: vertical;
    min-height: 100px;
}

.price-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.price-display h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 2.5em;
    font-weight: bold;
}

.submit-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.reset-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 50px;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #5a6268;
}

.help-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.loading-message,
.error-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1em;
}

.loading-message {
    color: #667eea;
}

.error-message {
    color: #e74c3c;
    background-color: #ffe6e6;
    border-radius: 8px;
}

.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.item-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.item-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.item-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
}

.item-image-wrap {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
}

.item-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    text-decoration: none;
}

.item-image {
    max-width: 50%;
    max-height: 50%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #111;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 80vh;
    display: block;
    border-radius: 6px;
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 20px;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
}

.item-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.item-description {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.4;
}

.item-price {
    font-size: 1.4em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.quantity-btn:hover {
    background: #f0f0f0;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px;
}

.cart-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #333;
}

.cart-item-details {
    color: #666;
    font-size: 0.9em;
}

.cart-item-total {
    font-weight: bold;
    color: #667eea;
    margin-left: 20px;
}

.remove-item {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8em;
    margin-left: 10px;
}

.remove-item:hover {
    background: #c0392b;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .checkbox-group,
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    [data-page="order"] .header h1 {
        font-size: 2em;
    }

    [data-page="order"] .form-container {
        padding: 20px;
    }

    .items-container {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ═══ Invoice_Generator.html styles ═══ */

body[data-page="invoice"] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    min-height: 100vh;
}

[data-page="invoice"] .container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

[data-page="invoice"] .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

[data-page="invoice"] .header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

[data-page="invoice"] .header p {
    font-size: 1em;
    opacity: 0.9;
}

[data-page="invoice"] .form-section {
    padding: 30px;
}

[data-page="invoice"] .form-group {
    margin-bottom: 20px;
}

[data-page="invoice"] .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

[data-page="invoice"] .form-group input,
[data-page="invoice"] .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

[data-page="invoice"] .form-group input:focus,
[data-page="invoice"] .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.actions {
    padding: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    background: #f9f9f9;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f1f1f1;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-copy {
    background: #2ed573;
}

.btn-copy:hover {
    background: #26de81;
}

.invoice-preview {
    display: none;
    padding: 30px;
}

.invoice-preview.active {
    display: block;
}

.invoice-box {
    background: #f9f9f9;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 30px;
}

.invoice-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.invoice-header h2 {
    color: #667eea;
    margin-bottom: 5px;
    font-size: 1.5em;
}

.invoice-header p {
    color: #666;
    font-size: 13px;
    margin: 0;
}

.invoice-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.detail-item {
    font-size: 13px;
}

.detail-item .label {
    color: #666;
    font-weight: 600;
    margin-bottom: 3px;
}

.detail-item .value {
    color: #333;
}

.invoice-amounts {
    margin-bottom: 25px;
}

.amount-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.amount-row.total {
    border-bottom: none;
    border-top: 2px solid #667eea;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.amount-row .label {
    font-weight: 600;
}

.invoice-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.copy-section {
    margin-top: 25px;
}

.copy-btn-container {
    display: flex;
    gap: 10px;
}

.copy-btn-container button {
    flex: 1;
}

#emailText {
    display: none;
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: 1fr;
    }

    .invoice-details {
        grid-template-columns: 1fr;
    }
}
