body {
        background: linear-gradient(135deg, #f3f6fb, #eef2f7);
        min-height: 100vh;
    }
    .container {
        max-width: 980px;
    }
    .card {
        border: none;
        border-radius: 0.9rem;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    }
    .card-header {
        border-bottom: none;
        border-radius: 0.9rem 0.9rem 0 0 !important;
        background: linear-gradient(135deg, #0d6efd, #4f8dfd);
        color: #fff;
    }
    .card-header h5,
    .card-header h6 {
        color: #fff;
    }
    .navbar {
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    }
    .navbar-brand {
        font-weight: 600;
        letter-spacing: 0.03em;
    }
    .nav-link {
        font-size: 0.95rem;
    }
    .table > :not(caption) > * > * {
        padding: 0.55rem 0.75rem;
        vertical-align: middle;
    }
    footer {
        font-size: 0.85rem;
        color: #777;
    }
    .badge {
        border-radius: 999px;
        padding: 0.3rem 0.8rem;
    }
    @media print {
        nav, footer, .btn-print-hide {
            display: none !important;
        }
        body {
            background-color: #ffffff !important;
            font-size: 12px !important;
        }
        .card {
            box-shadow: none !important;
            break-inside: avoid;
            page-break-inside: avoid;
            margin-bottom: 10px !important;
        }
        .container {
            max-width: 100% !important;
        }
        .row {
            margin-left: 0 !important;
            margin-right: 0 !important;
        }
        .report-chart-canvas-wrap {
            height: 360px !important;
            min-height: 360px !important;
        }
        .report-chart-canvas-wrap canvas {
            display: block !important;
        }
        .report-chart-canvas-wrap .chart-print-image {
            display: none !important;
        }
        .report-chart-canvas-wrap.print-image-ready canvas {
            display: none !important;
        }
        .report-chart-canvas-wrap.print-image-ready .chart-print-image {
            display: block !important;
            width: 100% !important;
            height: 100% !important;
            object-fit: contain;
        }
        table {
            page-break-inside: auto;
        }
        tr, td, th {
            page-break-inside: avoid;
            break-inside: avoid;
        }
    }

    /* Likert buton grubu */
    .likert-group .btn {
        border-radius: 999px;
        margin: 0 0.15rem;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        border-width: 1px;
        transition: all 0.15s ease-in-out;
        font-size: 0.8rem;
        background-color: #ffffff;
    }
    .likert-group .btn .fw-bold {
        font-size: 1rem;
    }
    .btn-check:checked + .btn.likert-option,
    .btn-check:active + .btn.likert-option {
        background: linear-gradient(135deg, #0d6efd, #4f8dfd);
        color: #fff;
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
    }
    .btn.likert-option:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
    }


/* Typography adjustments */
body {
    font-size: 1.05rem;
}

/* Question text larger and more readable */
.question-text {
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Likert buttons slightly larger text */
.likert-group .btn {
    font-size: 0.9rem;
}

/* Emoji Likert enhancements */
.likert-emoji {
    font-size: 1.8rem;
    line-height: 1.2;
    display: block;
}
.likert-label {
    font-size: 0.95rem;
}


.question-card {
    border-left: 6px solid #4f8dfd;
}

.question-progress {
    height: 0.9rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.question-progress .progress-bar {
    background: linear-gradient(90deg, #7dd3fc 0%, #34d399 100%);
}


/* Ortaokul için emoji tıklama animasyonu */
@keyframes emoji-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.likert-group .btn.likert-option .likert-emoji {
    transition: transform 0.15s ease-out;
}

.btn-check:checked + .btn.likert-option .likert-emoji {
    animation: emoji-pop 0.25s ease-out;
}


/* Avoid harsh contrast on blue headers */
.card-header .likert-emoji,
.card-header canvas {
    filter: brightness(0.95) saturate(0.85);
}

/* Admin: collapse edit panel */
.guide-edit-row td.guide-edit-cell {
    background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
    border-top: 1px solid #d5e3fb;
    border-bottom: 1px solid #d5e3fb;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.guide-edit-form {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #dce8fb;
    border-radius: 0.6rem;
    padding: 0.75rem;
}

/* Home page */
.home-hero-card {
    border-left: 6px solid #0d6efd;
}

.home-style-card {
    border: 1px solid #e1ebff;
}

.home-style-card h5 {
    color: #1e3a8a;
}

.accordion-item {
    border: 1px solid #dbe7ff;
    border-radius: 0.7rem !important;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.accordion-button {
    font-weight: 600;
}

/* Guide dashboard stat cards */
.guide-stat-card {
    border: 1px solid #dfe8f8;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.guide-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.guide-stat-visual {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.55rem auto;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: linear-gradient(135deg, #e8f0ff, #d9e7ff);
    border: 1px solid #cfdffc;
}

/* ---- Visual Overhaul Layer ---- */
:root {
    --app-bg-a: #f4f8ff;
    --app-bg-b: #edf7f4;
    --app-ink: #1f2937;
    --app-muted: #5f6f85;
    --app-primary: #0d6efd;
    --app-primary-2: #2a7df3;
    --app-accent: #11b39c;
    --app-surface: #ffffff;
}

body.app-shell {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--app-ink);
    background:
        radial-gradient(1200px 420px at -10% -5%, rgba(13, 110, 253, 0.16), transparent 55%),
        radial-gradient(920px 360px at 120% 10%, rgba(17, 179, 156, 0.12), transparent 55%),
        linear-gradient(135deg, var(--app-bg-a), var(--app-bg-b));
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: "Sora", "Manrope", sans-serif;
    letter-spacing: 0.01em;
}

.app-navbar {
    background: linear-gradient(120deg, var(--app-primary), var(--app-primary-2)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 26px rgba(13, 35, 74, 0.24);
}

body.report-popup-mode .app-navbar,
body.report-popup-mode footer {
    display: none !important;
}

body.report-popup-mode .container {
    max-width: 100% !important;
    margin-top: 0 !important;
}

body.report-popup-mode a[data-report-popup="true"] {
    display: none !important;
}

body.report-popup-mode .report-logo {
    height: 74px !important;
}

.brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.navbar .nav-link {
    border-radius: 10px;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.container {
    animation: page-fade 0.35s ease-out;
}

@keyframes page-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background: linear-gradient(180deg, #ffffff, #fcfdff);
    border: 1px solid #dfe8f8;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.11);
}

.card-header {
    background: linear-gradient(120deg, #0d6efd, #5b92f5) !important;
}

.btn {
    border-radius: 11px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.13);
}

.btn-primary {
    background: linear-gradient(120deg, #0d6efd, #2a7df3);
    border-color: #0d6efd;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover {
    filter: saturate(1.1);
}

.table {
    border-radius: 12px;
    overflow: hidden;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover {
    background-color: #f3f8ff;
}

.alert {
    border: 1px solid #d9e7ff;
    border-radius: 12px;
}

.form-control, .form-select {
    border-radius: 10px;
    border-color: #cfdcf3;
}

.form-control:focus, .form-select:focus {
    border-color: #75a8ff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.home-hero-card {
    position: relative;
    overflow: hidden;
}

.home-hero-card::after {
    content: "";
    position: absolute;
    inset: auto -70px -70px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(17, 179, 156, 0.26), transparent 66%);
    pointer-events: none;
}

.home-style-card {
    position: relative;
    overflow: hidden;
}

.home-style-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #5b92f5, #11b39c);
}

.home-tabs-card {
    border: 1px solid #d9e6fb;
}

.home-hero-slim {
    border-left: 6px solid #1d4ed8;
}

.home-kicker {
    display: inline-block;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 800;
    color: #1d4ed8;
    background: #eaf1ff;
    border: 1px solid #d2e3ff;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
}

.home-title {
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    line-height: 1.1;
}

.home-title-impact {
    font-size: clamp(2.2rem, 5.2vw, 3.6rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #0b5fe0, #0b3f98);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 28px rgba(37, 99, 235, 0.16);
}

.home-subtitle {
    font-size: clamp(1.03rem, 1.8vw, 1.28rem);
    font-weight: 700;
    color: #294a72;
    max-width: 50ch;
}

.home-lead {
    font-size: 1.03rem;
    color: #44546a;
    max-width: 58ch;
    line-height: 1.55;
}

.home-lead-strong {
    font-size: 1.08rem;
    font-weight: 700;
    color: #243a5a;
}

.home-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.86rem;
    font-weight: 600;
    color: #204575;
    background: #f2f7ff;
    border: 1px solid #d7e7ff;
    border-radius: 999px;
    padding: 0.32rem 0.68rem;
}

.home-hero-visual {
    border: 1px solid #d9e7ff;
    background:
        radial-gradient(140px 90px at 15% 12%, rgba(37, 99, 235, 0.14), transparent 70%),
        radial-gradient(180px 120px at 85% 90%, rgba(16, 185, 129, 0.16), transparent 70%),
        linear-gradient(180deg, #ffffff, #f1f7ff);
}

.home-hero-scene {
    position: relative;
    height: 150px;
    border-radius: 16px;
    border: 1px solid #d8e5ff;
    background: linear-gradient(180deg, #f7fbff, #e9f2ff);
    overflow: hidden;
}

.home-hero-orbit {
    position: absolute;
    border: 1px dashed #bad0fb;
    border-radius: 50%;
}

.home-hero-orbit-a {
    width: 116px;
    height: 116px;
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
}

.home-hero-orbit-b {
    width: 84px;
    height: 84px;
    top: 33px;
    left: 50%;
    transform: translateX(-50%);
}

.home-hero-node {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #1d4ed8;
}

.home-hero-node-main {
    width: 52px;
    height: 52px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    background: linear-gradient(135deg, #dce9ff, #d9faf2);
    border: 1px solid #bfd5ff;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.18);
    animation: pulse-soft 3.2s ease-in-out infinite;
}

.home-hero-node-one,
.home-hero-node-two,
.home-hero-node-three {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    background: #ffffff;
    border: 1px solid #cadcff;
}

.home-hero-node-one {
    top: 18px;
    left: 54px;
}

.home-hero-node-two {
    top: 26px;
    right: 48px;
}

.home-hero-node-three {
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
}

.home-hero-node-one {
    animation: float-soft 4.4s ease-in-out infinite;
}

.home-hero-node-two {
    animation: float-soft 4.8s ease-in-out infinite 0.35s;
}

.home-hero-node-three {
    animation: float-soft 4.2s ease-in-out infinite 0.2s;
}

@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 8px 20px rgba(29, 78, 216, 0.18); transform: translate(-50%, -50%) scale(1); }
    50% { box-shadow: 0 12px 24px rgba(29, 78, 216, 0.24); transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes float-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.home-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #204575;
    background: #edf4ff;
    border: 1px solid #d4e2fa;
}

.home-info-menu {
    gap: 0.45rem;
}

.home-info-menu .nav-link {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    color: #2a436c;
    background: #eef4ff;
    border: 1px solid #d2e1fb;
}

.home-info-menu .nav-link.active {
    color: #fff;
    background: linear-gradient(120deg, #2563eb, #1d4ed8);
    border-color: #1d4ed8;
}

.home-info-content {
    border: 1px solid #dce8fb;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    padding: 1rem 1rem 0.85rem 1rem;
}

.home-tab-visual {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #2563eb;
    background: linear-gradient(135deg, #e9f2ff, #e9fbf5);
    border: 1px solid #d6e5ff;
}

.panel-hero {
    border: 1px solid #d7e4fb;
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.panel-tabs .nav-link {
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid #d4e2fb;
    background: #eff5ff;
    color: #2b4672;
}

.panel-tabs .nav-link.active {
    background: linear-gradient(120deg, #2563eb, #1d4ed8);
    color: #fff;
    border-color: #1d4ed8;
}

.report-mini-card {
    border: 1px solid #d8e6ff;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.insight-summary-card {
    border: 1px solid #d7e6ff;
    background: linear-gradient(180deg, #ffffff, #f6faff);
}

.insight-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.insight-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed #dbe6f7;
}

.insight-list li:last-child {
    border-bottom: 0;
}

.insight-rank {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #1d4ed8;
    background: #eaf2ff;
    border: 1px solid #cfe0ff;
}

.insight-actions {
    padding-left: 1.1rem;
}

.insight-actions li {
    margin-bottom: 0.45rem;
}

.insight-actions li:last-child {
    margin-bottom: 0;
}

.report-detail-mode-toggle .btn.active {
    color: #ffffff;
    background: linear-gradient(120deg, #2563eb, #1d4ed8);
    border-color: #1d4ed8;
}

#reportSnapshotRoot[data-detail-mode="brief"] .detail-not-brief,
#reportSnapshotRoot[data-detail-mode="brief"] .detail-detailed-only {
    display: none !important;
}

#reportSnapshotRoot[data-detail-mode="medium"] .detail-detailed-only {
    display: none !important;
}

.report-popup-draggable .modal-header {
    cursor: move;
    user-select: none;
}

.report-popup-dialog {
    position: fixed;
    margin: 0 !important;
}

.report-popup-resize-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, rgba(37, 99, 235, 0.45) 50%);
}

.risk-flag-list {
    display: grid;
    gap: 0.55rem;
}

.risk-flag-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.58rem 0.68rem;
    border: 1px solid #dbe7fb;
    border-radius: 10px;
    background: #f9fbff;
}

.risk-flag-item .risk-dot {
    width: 10px;
    height: 10px;
    margin-top: 0.34rem;
    border-radius: 999px;
    background: #94a3b8;
    flex: 0 0 10px;
}

.risk-flag-item.risk-high {
    border-color: #fecaca;
    background: #fff7f7;
}

.risk-flag-item.risk-high .risk-dot {
    background: #dc2626;
}

.risk-flag-item.risk-medium {
    border-color: #fde68a;
    background: #fffdf5;
}

.risk-flag-item.risk-medium .risk-dot {
    background: #d97706;
}

.risk-flag-item.risk-info {
    border-color: #bfdbfe;
    background: #f5f9ff;
}

.risk-flag-item.risk-info .risk-dot {
    background: #2563eb;
}

.report-group-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.24rem 0.62rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #274d79;
    background: #edf4ff;
    border: 1px solid #d6e4fa;
}

.report-chart-shell {
    border: 1px solid #d8e6ff;
    background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.report-chart-shell .card-header {
    background: linear-gradient(180deg, #f9fbff, #f3f8ff);
    border-bottom: 1px solid #dbe8ff;
    padding: 0.55rem 0.8rem;
}

.report-chart-body {
    padding: 0.65rem 0.75rem 0.55rem 0.75rem;
}

.report-chart-canvas-wrap {
    position: relative;
    height: 220px;
    min-height: 220px;
}

.report-chart-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-print-image {
    display: none;
    border-radius: 0.4rem;
    background: #ffffff;
}

.report-chart-fullscreen-body {
    min-height: 72vh;
    padding: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-node-main,
    .home-hero-node-one,
    .home-hero-node-two,
    .home-hero-node-three {
        animation: none !important;
    }
}

/* Student login page */
.student-login-shell {
    overflow: hidden;
    border: 1px solid #d8e6ff;
}

.student-login-aside {
    padding: 2rem 1.6rem;
    background:
        radial-gradient(220px 120px at 15% 10%, rgba(37, 99, 235, 0.18), transparent 70%),
        radial-gradient(180px 120px at 90% 90%, rgba(16, 185, 129, 0.15), transparent 70%),
        linear-gradient(180deg, #f7fbff, #eef5ff);
    border-right: 1px solid #dce8ff;
}

.student-login-art {
    position: relative;
    height: 120px;
    border: 1px solid #d4e4ff;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #eef5ff);
    margin-bottom: 1rem;
    overflow: hidden;
}

.student-login-orb {
    position: absolute;
    border-radius: 50%;
}

.student-login-orb-a {
    width: 120px;
    height: 120px;
    top: -30px;
    left: -20px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 70%);
}

.student-login-orb-b {
    width: 130px;
    height: 130px;
    right: -30px;
    bottom: -40px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 70%);
}

.student-login-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #1d4ed8;
    background: linear-gradient(135deg, #dfebff, #dcf7ef);
    border: 1px solid #b9d2ff;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.22);
}

.student-login-note {
    display: inline-flex;
    align-items: center;
    font-size: 0.86rem;
    font-weight: 600;
    color: #285082;
    background: #ecf4ff;
    border: 1px solid #d0e1ff;
    border-radius: 999px;
    padding: 0.28rem 0.68rem;
}

.student-login-form-wrap {
    background: linear-gradient(180deg, #ffffff, #fcfdff);
}

.student-captcha-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 0.65rem;
    align-items: center;
}

@media (max-width: 991px) {
    .student-login-aside {
        border-right: none;
        border-bottom: 1px solid #dce8ff;
    }

    .student-captcha-row {
        grid-template-columns: 1fr;
    }
}

/* Question view v2 */
.question-stage {
    position: relative;
}

.question-stage::before,
.question-stage::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(3px);
}

.question-stage-middle::before {
    width: 220px;
    height: 220px;
    top: -30px;
    left: -40px;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.36), transparent 70%);
}

.question-stage-middle::after {
    width: 260px;
    height: 260px;
    right: -40px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.26), transparent 70%);
}

.question-stage-high::before {
    width: 260px;
    height: 260px;
    top: -40px;
    left: -30px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
}

.question-stage-high::after {
    width: 230px;
    height: 230px;
    right: -30px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 70%);
}

.question-card-v2 {
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: question-in 0.28s ease-out;
}

@keyframes question-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-header-v2 {
    padding-bottom: 0.85rem;
}

.question-step-title {
    font-size: 1.02rem;
}

.question-step-subtitle {
    color: rgba(255, 255, 255, 0.88);
}

.question-body-v2 {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.95));
}

.question-stage-middle .question-card-v2 {
    border-left-color: #22c55e;
}

.question-stage-high .question-card-v2 {
    border-left-color: #2563eb;
}

.question-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d5e5ff;
    background: linear-gradient(90deg, #edf4ff, #eefdf9);
    color: #1f3a74;
    border-radius: 999px;
    padding: 0.32rem 0.78rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.question-options-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
}

.likert-option {
    border-radius: 14px !important;
    padding: 0.7rem 0.45rem 0.65rem;
    min-height: 94px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-width: 1px;
}

.likert-option .likert-label {
    line-height: 1.2;
}

.likert-option-high {
    min-height: 86px;
}

.question-actions .btn {
    min-width: 108px;
}

.question-stage-middle .btn-check:checked + .btn.likert-option,
.question-stage-middle .btn-check:active + .btn.likert-option {
    background: linear-gradient(130deg, #16a34a, #22c55e);
    border-color: #16a34a;
}

.question-stage-high .btn-check:checked + .btn.likert-option,
.question-stage-high .btn-check:active + .btn.likert-option {
    background: linear-gradient(130deg, #1d4ed8, #2563eb);
    border-color: #1d4ed8;
}

@media (max-width: 991px) {
    .question-options-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .question-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .question-actions {
        gap: 0.4rem;
    }

    .question-actions .btn {
        min-width: 0;
        flex: 1;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }
}

/* YGNOT logo placement */
.app-logo-navbar {
    height: 62px;
    width: auto;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
    filter: drop-shadow(0 1px 2px rgba(10, 44, 120, 0.34));
}

@media (max-width: 992px) {
    .app-logo-navbar {
        height: 54px;
    }
}

.report-logo-wrap {
    display: flex;
    justify-content: flex-end;
}

.report-logo {
    height: 58px;
    width: auto;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: 0;
    filter: drop-shadow(0 1px 1px rgba(30, 58, 138, 0.12));
}

@media print {
    .report-logo {
        height: 50px !important;
    }
    .app-logo-navbar {
        height: 46px !important;
    }
}

#reportSnapshotRoot.snapshot-a4-safe .card {
    margin-bottom: 12px !important;
    break-inside: avoid;
    page-break-inside: avoid;
}

#reportSnapshotRoot.snapshot-a4-safe .card-header {
    min-height: 56px;
    display: flex;
    align-items: center;
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
}

#reportSnapshotRoot.snapshot-a4-safe .card-header h5,
#reportSnapshotRoot.snapshot-a4-safe .card-header h6 {
    line-height: 1.24;
}

#reportSnapshotRoot.snapshot-a4-safe .card-body {
    padding-top: 0.78rem;
    padding-bottom: 0.78rem;
}

#reportSnapshotRoot.snapshot-a4-safe .report-chart-canvas-wrap {
    height: 230px;
    min-height: 230px;
}

#reportSnapshotRoot.snapshot-a4-safe .table thead th,
#reportSnapshotRoot.snapshot-a4-safe .table tbody td {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#reportSnapshotRoot.snapshot-a4-safe .a4-safe-keep,
#reportSnapshotRoot.snapshot-a4-safe .report-mini-card,
#reportSnapshotRoot.snapshot-a4-safe .alert {
    break-inside: avoid;
    page-break-inside: avoid;
}
