:root {
    /* ===== Accents ===== */
    --secondary4: #84cc16; /* light blue */
    --secondary2: #ef4444; /* red */
    --secondary1: #84cc16; /* lime */
    --secondary3: #cb7135;
    --secondary5: #50b482;
    --secondary6: #1d9ded;

    /* ===== Surfaces ===== */
    --bg-main: #020617;        /* darkest */
    --bg-chrome: #0b1220;      /* header + footer */
    --bg-button-1: #0f172a;
    --bg-button-2: #111827;
    --bg-button-3: #0b132a;
    --card-bg: #0f172a;

    /* ===== Text ===== */
    --text-main: #e5e7eb;
    --text-muted: #94a3b8;
    --text-light: #ffffff;

    /* ===== UI ===== */
    --border-light: #1e293b;
}

h2 {
    margin-top: 30px;
}

/* Extra Boxes */
.extra-box {
    background: inherit;        /* matches section card */
    border: none;
    box-shadow: none;
    width: 180px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Boxes with border, no rounding, 1/3 width */
.extra-box-border {
    background: inherit;            /* match section */
    border: 1px solid rgba(255,255,255,0.2);  /* visible border */
    border-radius: 0;               /* remove rounding */
    width: calc(20% - 16px);     /* 3 boxes + gap */
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-top: 12px;              /* leave space for ribbon */
}

/* Ribbon on top of boxes */
.ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
}
.ribbon-secondary1 { background-color: var(--secondary1); }
.ribbon-secondary2 { background-color: var(--secondary2); }
.ribbon-secondary3 { background-color: var(--secondary3); }
.ribbon-secondary4 { background-color: var(--secondary4); }
.ribbon-secondary5 { background-color: var(--secondary5); }
.ribbon-secondary6 { background-color: var(--secondary6); }

/* Rotate icon around its center */
.rotate-icon {
    transform: rotate(90deg);
    transform-origin: center center;
}

/* Titles matching ribbon color */
.ribbon-title {
    margin: 0.5rem 0 0.25rem 0; /* optional spacing */
    font-weight: 600;
}


/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .extra-box-border {
        width: 100%;
    }
}

/* ===== Base ===== */
body {
    padding-top: 100px;
    background-color: var(--bg-main);
    color: var(--text-main);
}

/* ===== Header & Footer ===== */
header,
footer {
    background-color: var(--bg-chrome);
    border-color: var(--border-light);
}

footer a:hover {
    text-decoration: underline;
}

header {
    border-bottom: 1px solid var(--border-light);
}

footer {
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 20px 0;
    margin-top: 50px;
}

.text-error {
    color: rgb(241, 112, 112) !important;
}

/* ===== Header buttons ===== */
.header-buttons .btn {
    width: 20%;
    border-radius: 0;
    border: none;
    background-color: var(--bg-button-1);
    font-weight: 600;
    transition: transform 0.15s ease, filter 0.15s ease;
}

/* Per-button background shades */
.header-buttons .btn:nth-child(1) {
    background-color: var(--bg-button-1);
    color: var(--secondary2);
}

.header-buttons .btn:nth-child(2) {
    background-color: var(--bg-button-1);
    color: var(--secondary3);
}

.header-buttons .btn:nth-child(3) {
    background-color: var(--bg-button-1);
    color: var(--secondary1);
}

.header-buttons .btn:nth-child(4) {
    background-color: var(--bg-button-1);
    color: var(--secondary4);
}

.header-buttons .btn:nth-child(5) {
    background-color: var(--bg-button-1);
    color: var(--secondary5);
}

.header-buttons .btn:nth-child(6) {
    background-color: var(--bg-button-1);
    color: var(--secondary6);
}

/* Hover */
.header-buttons .btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ===== Cards ===== */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    color: var(--text-main);
}


/* ===== Links ===== */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    opacity: 0.9;
}

/* Ensure muted text is still readable on dark cards */
.text-muted {
    color: var(--text-muted) !important; /* light grey */
}

/* Dark input for search bar */
.input-group .form-control {
    background-color: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.input-group-text {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.input-group .form-control::placeholder {
    color: var(--text-muted); /* placeholder readable but subtle */
}

#sortMenu {
    position: absolute;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    max-width: 260px;
    background-color: var(--card-bg);
    /* optional: add a shadow for contrast */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#sortMenu.show {
    opacity: 1;
    pointer-events: auto;
}


/* Ensure the menu doesn’t overflow the viewport horizontally */
#sortMenu::after {
    content: "";
    display: block;
}

.mutation-box {
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-button-2);
}

.traits-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

#itemCard {
    position: relative;
}

/* Everything inside the card ABOVE the effects layer */
#itemCard > :not(#cardEffects) {
    position: relative;
    z-index: 10;
}

.traits-card {
    background-color: var(--bg-button-3);
}

.stroke-text {
    text-shadow:
        0 1px 0 #000,
        1px 0 0 #000,
        0 -1px 0 #000,
        -1px 0 0 #000,
        1px 1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        -1px -1px 0 #000;
}

.action-icon {
    cursor: pointer;
    transition: transform 0.15s ease;
}

.action-icon:hover {
    transform: scale(1.15);
}

#editSearchInput {
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
#editSearchInput:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    border-color: #80bdff;
}

.mutation-text {
    color: var(--text-light);          /* white text */
    -webkit-text-stroke: 1px black;    /* black outline */
    -moz-text-stroke: 1px black;       /* Firefox (partial support) */
    font-weight: bold;
    font-size: 0.9rem;
}

/* Interval buttons: grid layout, block, dark theme */
#intervalButtons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0; /* no space between */
}

#intervalButtons button {
    background-color: var(--bg-button-1); /* slightly lighter than card */
    color: var(--text-main);
    border: 1px solid var(--border-light);
    padding: 10px 0;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
    outline: none;
    border-radius: 0;
}

/* Hover effect */
#intervalButtons button:hover {
    background-color: var(--bg-button-3); /* darker on hover */
}

/* Selected button */
#intervalButtons button.selected {
    background-color: #151f36; /* same as bottom-section */
    font-weight: 600;
}

/* Chart container: darker but distinct from card */
#chartContainer {
    background-color: #151f36; /* darker variant for chart background */
    padding: 15px;
    border-radius: 6px;
}

/* ===== Image Portfolio Tool Styles ===== */

.initial-drop-zone {
    border: 3px dashed #475569;
    padding: 60px;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.initial-drop-zone:hover, .initial-drop-zone.dragover {
    border-color: var(--secondary4);
    background: rgba(56, 189, 248, 0.05);
}

.layer-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    padding: 30px;
    z-index: 1001;
    max-width: 90%;
    width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
}

.layer-popup.show {
    display: block;
}

.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
}

.popup-backdrop.show {
    display: block;
}

.layer-image-preview {
    display: flex;
    gap: 10px;
    padding: 20px 0;
    overflow-x: auto;
    min-height: 100px;
}

.layer-image-item {
    position: relative;
    cursor: move;
}

.layer-image-item .image-drag-notch {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.layer-image-item img {
    height: 80px;
    border: 2px solid var(--border-light);
}

.layer-image-item .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layer-list-item {
    background: var(--bg-button-1);
    border: 1px solid var(--border-light);
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: move;
}

.layer-list-item:hover {
    background: var(--bg-button-2);
}

.layer-list-item .layer-drag-notch {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

.layer-list-item.dragging {
    opacity: 0.5;
}

.layer-thumbs {
    display: flex;
    gap: 5px;
    flex: 1;
}

.layer-thumbs img {
    height: 40px;
    border: 1px solid var(--border-light);
}

.canvas-wrapper {
    text-align: center;
    padding: 20px 0;
    max-width: 100%;
    overflow: auto;
}

#fabricCanvas {
    border: 1px solid var(--border-light);
    background: #000;
    max-width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Lighter placeholder text for better visibility */
#calcSearch::placeholder,
#customText::placeholder {
    color: #6b7280;
    opacity: 1;
}

#calcSearch::-webkit-input-placeholder,
#customText::-webkit-input-placeholder {
    color: #6b7280;
}

#calcSearch::-moz-placeholder,
#customText::-moz-placeholder {
    color: #6b7280;
    opacity: 1;
}

#calcSearch:-ms-input-placeholder,
#customText:-ms-input-placeholder {
    color: #6b7280;
}

.action-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 500;
}

.action-buttons button {
    padding: 12px 24px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-text {
    background: var(--secondary1);
    color: #000;
}

.btn-add-text:hover {
    filter: brightness(1.1);
}

.btn-download {
    background: var(--secondary4);
    color: #000;
}

.btn-download:hover {
    filter: brightness(1.1);
}

.add-layer-button {
    border: 3px dashed #475569;
    background: transparent;
    padding: 15px;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    font-weight: 700;
}

.add-layer-button:hover, .add-layer-button.dragover {
    border-color: var(--secondary4);
    background: rgba(56, 189, 248, 0.05);
    color: var(--text-main);
}

.mini-item-display {
    background: var(--bg-button-2);
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mini-item-display img {
    max-width: 100%;
    max-height: 120px;
    margin: 10px 0;
}

.palette-section {
    margin-bottom: 15px;
}

.palette-section h6 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.palette-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 150px;
    overflow-y: auto;
}

.palette-grid img {
    cursor: pointer;
}

.text-controls {
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
    margin-top: 15px;
}

.calc-search-dropdown {
    position: absolute;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.calc-search-dropdown.show {
    display: block;
}

.calc-search-item {
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-search-item:hover {
    background: var(--bg-button-1);
}

.calc-search-item img {
    width: 24px;
    height: 24px;
}

/* Icon next to section title */
.section-icon {
    width: 24px;
    height: 24px;
}

/* Top-right toggle button */
.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.dropdown-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.7s;
}

/* Collapsible content */
.tool-info-content {
    overflow: hidden;
    transition: max-height 0.7s ease;
}

.tool-ribbon {
    background-color: #323842;  /* darker ribbon color */
    padding: 1rem;
    border-radius: 0.5rem;
}

/* Each pair is a flex container */
.ribbon-pair {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;   /* vertical spacing */
}

/* Left column 25% width, vertically and horizontally centered */
.ribbon-left {
    flex: 0 0 25%;
    display: flex;
    align-items: center;   /* vertical center */
    justify-content: center; /* horizontal center */
    font-weight: bold;
    color: white;
}

/* Right column 75% width, vertically centered */
.ribbon-right {
    flex: 1;
    display: flex;
    align-items: center;
    color: white;
}

.tool-ribbon hr {
    border: none;                 /* remove default border */
    height: 1px;                  /* fixed height */
    background-color: #ffffff;    /* fixed color */
    margin: 0.5rem 0;             /* consistent spacing */
    display: block;               /* prevent inline quirks */
}

.inline-link {
    color: rgb(35, 114, 233);     /* the link color you want */
    text-decoration: none; /* remove underline */
    font: inherit;         /* keep same font as parent paragraph */
}

.inline-link:hover {
    color: #0b65c6;        /* optional: darker blue on hover */
}

/* Horizontal scroll container */
.guides-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(100,100,100,0.5) transparent;
}

.guides-scroll::-webkit-scrollbar {
    height: 8px;
}

.guides-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(100,100,100,0.5);
    border-radius: 4px;
}

.guides-scroll::-webkit-scrollbar-track {
    background: transparent;
}

/* Optional: guide card hover effect */
.guide-card:hover {
    transform: translateY(-3px);
    transition: transform 0.2s ease;
}

.guides-container {
    scroll-behavior: smooth;
}

.scroll-btn {
    background: rgba(50, 56, 66, 0.85);
    border: none;
    border-radius: 50%;
    padding: 0.25rem;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 10;
}
.scroll-btn img {
    display: block;
    transition: transform 0.7s;
}
.scroll-btn:hover {
    opacity: 0.8;
}

/* ===================================================
   SIDEBAR  (sidebar_base.html)
   =================================================== */

/*
  On desktop, the sidebar sits in a flex row alongside the page body.
  .sidebar-page-wrap is injected by sidebar_base.html and wraps
  both the .container and the footer inside a flex row.
*/
.sidebar-page-wrap {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 100px); /* 100px = approx header height */
}

/* ── Desktop sidebar ── */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    background-color: var(--bg-chrome);
    border-right: 1px solid var(--border-light);
    overflow-y: auto;
    padding: 1.25rem 1rem;
    position: sticky;
    top: 100px; /* stick below fixed header */
    height: calc(100vh - 100px);
    align-self: flex-start;
}

/* The right-hand column: content + footer stacked */
.sidebar-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ── Toggle button: hidden on desktop ── */
.sidebar-toggle {
    display: none;
}

/* ── Toggle icon transition ── */
.sidebar-toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.35s ease;
    transform: rotate(-90deg); /* "open me" state */
    display: none;
}

/* ===================================================
   MOBILE  (< 992px)
   =================================================== */
@media (max-width: 720.04px) {

    /* Flex layout not needed on mobile — sidebar overlays */
    .sidebar-page-wrap {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        z-index: 400;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        padding-top: 150px;
        /* override sticky */
        align-self: auto;
    }

    .sidebar--open {
        transform: translateX(0);
    }

    /* Toggle button: narrow transparent tab fixed to screen */
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;

        position: fixed;
        left: 0; /* JS sets this to 260px when open */
        top: 50%;
        transform: translateY(-50%);
        transition: left 0.35s ease;
        z-index: 401;

        width: 28px;
        height: 100vh;
        padding: 0;
        border: none;
        cursor: pointer;
        outline: none;

        background: rgba(255, 255, 255, 0);
    }

    .sidebar-toggle-icon {
        display: flex;
    }

    .sidebar-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Reset list styles for all nav lists */
.sab-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Group: space between sections */
.sab-nav-group {
    margin-bottom: 1.25rem;
}

/* Section header (group title row) */
.sab-nav-header {
    margin: 0 0 0.35rem 0;
    padding: 0.25rem 0.75rem;
    cursor: default;
}

/* Group title text */
.sab-nav-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* Individual nav links */
.sab-nav-link {
    display: block;
    padding: 0.4rem 0.75rem 0.4rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    margin-bottom: 2px;
}

.sab-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    opacity: 1;
}

/* Active link: royal blue highlight */
.sab-nav-link.active {
    background: rgba(65, 105, 225, 0.25);
    color: royalblue;
    font-weight: 600;
}

.sab-nav-link.active:hover {
    background: rgba(65, 105, 225, 0.35);
    color: royalblue;
}

/* ===================================================
   SIDEBAR SCROLLBAR
   =================================================== */

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

/* Firefox */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgb(6, 50, 100) transparent;
}

#sidebarContent {
    overflow: hidden;
}

.breadcrumb-nav {
  margin: 1rem 0;
  padding: 0;
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:nth-child(n+2)::before {
  content: " / ";
  margin-right: 0.5rem;
    color: #999;
  font-weight: 300;
}

.breadcrumb-link {
  color: #0782ce;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #009dff;
}

.breadcrumb-item--active .breadcrumb-link {
  color: #999;
  pointer-events: none;
  cursor: default;
}

.breadcrumb-item--active .breadcrumb-link:hover {
  color: #999;
}

.page-header {
  margin: 2rem 0;
}

.page-header__title {
  margin: 0 0 0.95rem 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

.page-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.page-header__date-info,
.page-header__reading-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #999;
}

.page-header__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.page-header__divider {
  border: none;
  border-top: 1.5px solid #707070;
  margin: 0 0 0 0;
}

.section-heading {
  margin: 2rem 0 1rem 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  scroll-margin-top: 150px;
}

.section-heading--small-text {
    font-size: 1.2rem;
    font-weight: 700;
}

.section-heading__anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
  position: relative;
}

.section-heading__anchor::after {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230782ce'%3E%3Cpolygon points='15,4 7,12 15,20'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  margin-left: 0.05rem;
}

.section-heading__anchor:hover {
  opacity: 1;
}

.section-heading__anchor:hover::after {
  opacity: 1;
  transform: translateX(2px);
}

.link {
  color: #0782ce;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.link:visited {
  color: #0782ce;
}

.link:active {
  color: #0782ce;
}

.tip-card {
  background-color: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.4);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.tip-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tip-card__icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #86efac;
  flex-shrink: 0;
}

.tip-card__label {
  font-weight: 700;
  color: #22c55e;
  font-size: 1.125rem;
}

.tip-card__text {
  color: #4ade80;
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
}

.bullet-list,
.numbered-list {
  margin: 1.5rem 0;
  padding-left: 2rem;
  line-height: 1.8;
}

.bullet-list li,
.numbered-list li {
  margin-bottom: 0.5rem;
  color: #ccc;
}

.bullet-list li::marker,
.numbered-list li::marker {
  color: #0782ce;
}

.warning-card {
  background-color: rgba(245, 158, 11, 0.1);
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.warning-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.warning-card__icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #fcd34d;
  flex-shrink: 0;
}

.warning-card__label {
  font-weight: 700;
  color: #f59e0b;
  font-size: 1.125rem;
}

.warning-card__text {
  color: #fbbf24;
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
}

.page-nav {
  display: flex;
  gap: 1rem;
  margin: 1.3rem 0;
}

.page-nav__button {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid #444;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 30px;
}

.page-nav__button--full {
  flex: 1 1 100%;
}

.page-nav__button--back {
  align-items: flex-start;
}

.page-nav__button--next {
  align-items: flex-end;
  text-align: right;
}

.page-nav__hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 0.75rem;
}

.page-nav__button--next .page-nav__hint {
  flex-direction: row-reverse;
}

.page-nav__arrow {
  font-size: 1rem;
}

.page-nav__link {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0782ce;
}

.page-nav__button:hover .page-nav__link {
  color: #0782ce;
}

@media (min-width: 768px) {
    body > .container,
    .sidebar-body > .container {
        padding-left: clamp(5rem, 4vw, 4rem);
        padding-right: clamp(5rem, 4vw, 4rem);
    }
}