/* ==========================================================================
   DISC PERSONALITY ASSESSMENT SYSTEM DESIGN SYSTEM (style.css)
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    --primary-color: #4f46e5;
    /* Indigo */
    --primary-hover: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.1);

    --bg-app: #f8fafc;
    /* Slate 50 */
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    /* Slate 100 */

    /* Text colors */
    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #475569;
    /* Slate 600 */
    --text-light: #94a3b8;
    /* Slate 400 */

    /* DISC Colors */
    --color-d: #f43f5e;
    /* Rose 500 */
    --color-i: #fbbf24;
    /* Amber 400 */
    --color-s: #10b981;
    /* Emerald 500 */
    --color-c: #3b82f6;
    /* Blue 500 */
    --color-star: #64748b;
    /* Slate 500 */

    /* System States */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    /* Slate 200 */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(79, 70, 229, 0.08), 0 8px 10px -6px rgba(79, 70, 229, 0.08);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --max-width: 1200px;
}

/* --- Base Styles & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Keyboard entry point shared by the participant and administrator pages. */
@media screen {
    .disc-skip-link { position: fixed; top: 12px; left: 12px; z-index: 10000; max-width: calc(100vw - 24px); padding: 12px 18px; border: 2px solid #0f766e; border-radius: 10px; background: #fff; color: #115e59; font: 700 16px/1.5 'Disc Report', Arial, sans-serif; text-decoration: underline; transform: translateY(calc(-100% - 24px)); }
    .disc-skip-link:focus { transform: none; outline: 3px solid #0f766e; outline-offset: 3px; }
}
@media print { .disc-skip-link { display: none !important; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 1400px) {
    html {
        font-size: 17px;
    }
}

@media (min-width: 1800px) {
    html {
        font-size: 18px;
    }
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* --- Helper Classes --- */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn var(--transition-normal);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-gray {
    background-color: #f8fafc;
}

.bg-light-d {
    background-color: rgba(244, 63, 94, 0.08);
}

.bg-light-i {
    background-color: rgba(251, 191, 36, 0.08);
}

.bg-light-s {
    background-color: rgba(16, 185, 129, 0.08);
}

.bg-light-c {
    background-color: rgba(59, 130, 246, 0.08);
}

/* --- App Layout Container --- */
.app-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-full-container {
    max-width: 98% !important;
    padding: 24px 36px !important;
}

/* --- Header Styling --- */
.main-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 24px 0;
}

.logo-area {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 16px;
}

.logo-icon {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.logo-area .logo-icon:nth-child(1) {
    background-color: var(--color-d);
}

.logo-area .logo-icon:nth-child(2) {
    background-color: var(--color-i);
}

.logo-area .logo-icon:nth-child(3) {
    background-color: var(--color-s);
}

.logo-area .logo-icon:nth-child(4) {
    background-color: var(--color-c);
}

.main-header h1 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Cards (Premium glassmorphic base) --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.card-header h2,
.card-header h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.card-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -1px rgba(79, 70, 229, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: var(--border-radius-md);
}

/* --- Form Fields --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.02em;
    margin-bottom: 5px;
    display: block;
}

/* Standard Compact Controls for Admin Dashboard & Modals */
.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-control {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    min-height: 44px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-control:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    background-color: #ffffff;
}

/* Registration Modal Unified Extra Clean Form Controls */
.reg-input-unified {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    font-family: inherit !important;
    font-size: 1.0rem !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reg-input-unified:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2) !important;
}

/* Uniform Ergonomic Action Buttons & Filter Bar for Admin Dashboard */
.admin-actions-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 24px;
}

.admin-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
    align-items: center;
    justify-content: center !important;
}

.admin-actions-bar .search-box,
.admin-select-filter {
    flex: 1 1 280px !important;
    max-width: 480px !important;
    min-width: 220px !important;
    height: 44px !important;
    box-sizing: border-box !important;
}

.admin-actions-bar .search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-actions-bar .search-icon {
    position: absolute;
    left: 14px;
    color: #6366f1;
    pointer-events: none;
    z-index: 2;
}

#admin-search-input {
    width: 100% !important;
    height: 44px !important;
    padding-left: 44px !important;
    padding-right: 16px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    border: 1.5px solid #6366f1 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.08) !important;
}

#admin-search-input:focus {
    border-color: #4338ca !important;
    box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.2) !important;
    outline: none !important;
}

#admin-search-input::placeholder {
    color: #94a3b8;
    font-size: 0.90rem;
    font-weight: 500;
}

.admin-select-filter {
    padding: 0 14px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    border: 1.5px solid #6366f1 !important;
    background-color: #ffffff !important;
    color: #4f46e5 !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.08) !important;
}

.admin-select-filter:focus {
    border-color: #4338ca !important;
    box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.2) !important;
    outline: none !important;
}

.admin-buttons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center !important;
    width: 100%;
}

.admin-buttons-group .btn {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 8px !important;
    line-height: 1 !important;
}

/* Large Prominent Inputs SPECIFICALLY for Participant Login (index.html) */
#user-info-form #input-nrp,
#user-info-form #input-tanggal,
#token-form #input-token {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    padding: 0 20px !important;
    border-radius: 12px !important;
    border: 2px solid #6366f1 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12) !important;
}

.form-group input::placeholder,
.form-control::placeholder {
    font-size: 1.1rem;
    font-weight: 500;
    color: #94a3b8;
}

/* Enlarge Calendar Icon & Picker Controls */
input[type="date"]::-webkit-calendar-picker-indicator {
    width: 32px !important;
    height: 32px !important;
    cursor: pointer !important;
    transform: scale(1.4) !important;
    margin-right: 8px !important;
    filter: invert(30%) sepia(85%) saturate(1800%) hue-rotate(220deg) brightness(95%) contrast(95%);
}

input[type="date"]::-webkit-datetime-edit {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 2px 4px;
}

input[type="date"]::-webkit-datetime-edit-text {
    color: #4f46e5 !important;
    font-weight: 800 !important;
    padding: 0 4px;
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    padding: 2px 4px;
}

/* Extra Large Custom Calendar Modal / Popover (GPU Accelerated) */
.large-calendar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    contain: strict;
    will-change: opacity;
}

.large-calendar-modal {
    background: #ffffff;
    width: 440px;
    max-width: 92vw;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.large-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.large-calendar-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1e293b;
}

.large-calendar-nav {
    display: flex;
    gap: 8px;
}

.large-calendar-nav button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #4f46e5;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.large-calendar-nav button:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

.large-calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #4f46e5;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.large-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.large-calendar-day-btn {
    aspect-ratio: 1;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: #1e293b;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.large-calendar-day-btn:hover {
    background: #e0e7ff;
    color: #4f46e5;
    border-color: #818cf8;
}

.large-calendar-day-btn.is-selected {
    background: #4f46e5 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.large-calendar-day-btn.is-today {
    border: 2px solid #4f46e5;
    color: #4f46e5;
    font-weight: 900;
}

.large-calendar-day-btn.is-empty {
    background: transparent;
    border: none;
    cursor: default;
}

.large-calendar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

/* --- Gender Radio Cards --- */
.gender-radio-group {
    display: flex;
    gap: 16px;
}

.radio-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    background-color: var(--bg-app);
    transition: all var(--transition-fast);
    user-select: none;
}

.radio-card input {
    display: none;
}

.radio-button-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    position: relative;
    transition: all var(--transition-fast);
}

.radio-card input:checked+.radio-button-custom {
    border-color: var(--primary-color);
}

.radio-card input:checked+.radio-button-custom::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.radio-card:has(input:checked) {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.05);
}

/* --- Warning and Alerts --- */
.alert-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.92rem;
    margin-top: 16px;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #b45309;
}

.alert-warning svg {
    flex-shrink: 0;
    color: #d97706;
}

.warning-badge {
    background-color: var(--danger);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Sticky Progress Bar --- */
.sticky-progress-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px 24px;
    margin-bottom: 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-image: linear-gradient(90deg, var(--primary-color), var(--info));
    border-radius: 999px;
    transition: width var(--transition-fast);
}

/* --- Test Questionnaire Styling --- */
.test-header {
    background: linear-gradient(135deg, white, #f8fafc);
}

.instructions-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.instructions-content li {
    margin-bottom: 4px;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Questionnaire Item Card */
.question-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast);
}

.question-card.active-card {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.question-card.incomplete-card {
    border-left: 4px solid var(--warning);
}

.question-card.complete-card {
    border-left: 4px solid var(--success);
}

.q-title-bar {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.q-title-bar h3 {
    font-size: 1.1rem;
    color: var(--text-main);
}

.q-status-indicator {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
}

.incomplete-card .q-status-indicator {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.complete-card .q-status-indicator {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.q-rows-container {
    padding: 8px 0;
}

.q-row {
    display: grid;
    grid-template-columns: 80px 80px 1fr;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 24px;
    transition: background-color var(--transition-fast);
}

.q-row:last-child {
    border-bottom: none;
}

.q-row:hover {
    background-color: #f8fafc;
}

/* Radio Choice Columns */
.col-choice {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Custom P & K Buttons */
.check-container {
    display: block;
    position: relative;
    cursor: pointer;
    user-select: none;
    width: 24px;
    height: 24px;
}

.check-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #fff;
    border: 2px solid var(--text-light);
    border-radius: 6px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: transparent;
}

/* Paling (P) Check style */
.check-p .checkmark {
    border-radius: 50%;
}

.check-p input:checked~.checkmark {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

.check-p input:checked~.checkmark::after {
    content: "P";
    color: white;
}

/* Kurang (K) Check style */
.check-k .checkmark {
    border-radius: 6px;
}

.check-k input:checked~.checkmark {
    background-color: var(--danger);
    border-color: var(--danger);
    color: white;
}

.check-k input:checked~.checkmark::after {
    content: "K";
    color: white;
}

.statement-text {
    font-size: 0.95rem;
    color: var(--text-main);
    padding-left: 12px;
}

.test-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-bottom: 40px;
}

/* --- Result Section Styles --- */
.result-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.report-wrapper {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.report-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.report-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.meta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    background: #ffffff;
}

.meta-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.meta-card-span-2 {
    grid-column: span 1;
}

.meta-card-icon {
    display: none !important;
}

.meta-card-icon svg {
    width: 20px;
    height: 20px;
}

.meta-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
    text-align: center;
}

.meta-val {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
}

/* Unified Color Variation (1 Tema Warna Seragam) */
.meta-card-indigo,
.meta-card-cyan,
.meta-card-purple,
.meta-card-amber,
.meta-card-emerald,
.meta-card-rose,
.meta-card-sky,
.meta-card-slate {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.meta-card-indigo .meta-card-icon,
.meta-card-cyan .meta-card-icon,
.meta-card-purple .meta-card-icon,
.meta-card-amber .meta-card-icon,
.meta-card-emerald .meta-card-icon,
.meta-card-rose .meta-card-icon,
.meta-card-sky .meta-card-icon,
.meta-card-slate .meta-card-icon {
    background-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.22);
}

.meta-label {
    color: #4f46e5 !important;
}

.meta-val {
    color: #0f172a !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .report-meta-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
}

@media (max-width: 992px) {
    .report-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .meta-card-span-2 {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .report-meta-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .meta-card-span-2 {
        grid-column: span 1;
    }

    .report-header {
        padding: 10px;
    }
}

/* Result Action Bar */
.result-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 14px 22px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.result-actions-left,
.result-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-nav-back {
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 600 !important;
    padding: 10px 18px !important;
}

.btn-nav-back:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    transform: translateX(-3px);
}

.btn-action-edit {
    background: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
    font-weight: 600 !important;
    padding: 10px 18px !important;
}

.btn-action-edit:hover {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.btn-action-print {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
    font-weight: 700 !important;
    padding: 10px 22px !important;
}

.btn-action-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45) !important;
}

/* Report Header Badge & Title */
.report-header-title {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.report-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
}

/* DISC Score Summary Table Card & Dashboard Styles */
.score-summary-card {
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.score-summary-header {
    background: linear-gradient(to right, #f8fafc, #ffffff);
    padding: 20px 24px !important;
    border-bottom: 1px solid var(--border-color);
}

.score-summary-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.score-summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-summary-icon svg {
    width: 24px;
    height: 24px;
}

.score-summary-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 4px 0 0 0 !important;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.disc-score-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1.05rem;
}

.disc-score-table th,
.disc-score-table td {
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 10px 14px;
    text-align: center;
    transition: background-color 0.15s ease;
}

.disc-score-table th:last-child,
.disc-score-table td:last-child {
    border-right: none;
}

.disc-score-table tbody tr:last-child td {
    border-bottom: none;
}

.disc-score-table th {
    background-color: #f8fafc;
    font-weight: 800;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-main);
}

.disc-score-table th:first-child,
.disc-score-table td:first-child {
    text-align: left;
    background-color: #ffffff;
}

.col-d {
    border-top: 5px solid var(--color-d) !important;
    color: #dc2626 !important;
}

.col-i {
    border-top: 5px solid var(--color-i) !important;
    color: #d97706 !important;
}

.col-s {
    border-top: 5px solid var(--color-s) !important;
    color: #059669 !important;
}

.col-c {
    border-top: 5px solid var(--color-c) !important;
    color: #2563eb !important;
}

.col-star {
    border-top: 5px solid var(--color-star) !important;
    color: #7c3aed !important;
}

/* Row Label Badges */
.row-label-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.row-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 65px;
    text-align: center;
}

.badge-most {
    background: #fee2e2;
    color: #991b1b;
}

.badge-least {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-diff {
    background: #fef3c7;
    color: #92400e;
}

.row-title {
    font-size: 1.02rem;
    color: var(--text-main);
}

/* Number values inside table */
.cell-val {
    font-size: 1.25rem;
    font-weight: 800;
}

.disc-score-table tbody tr#row-most td.cell-val-d {
    color: #dc2626;
    background: #fff1f2;
}

.disc-score-table tbody tr#row-most td.cell-val-i {
    color: #d97706;
    background: #fffbeb;
}

.disc-score-table tbody tr#row-most td.cell-val-s {
    color: #059669;
    background: #ecfdf5;
}

.disc-score-table tbody tr#row-most td.cell-val-c {
    color: #2563eb;
    background: #eff6ff;
}

.disc-score-table tbody tr#row-most td.cell-val-star {
    color: #7c3aed;
    background: #f5f3ff;
}

.disc-score-table tbody tr#row-least td.cell-val-d {
    color: #991b1b;
}

.disc-score-table tbody tr#row-least td.cell-val-i {
    color: #b45309;
}

.disc-score-table tbody tr#row-least td.cell-val-s {
    color: #065f46;
}

.disc-score-table tbody tr#row-least td.cell-val-c {
    color: #1e40af;
}

.disc-score-table tbody tr#row-least td.cell-val-star {
    color: #5b21b6;
}

.cell-diff {
    font-size: 1.35rem !important;
}

.disc-score-table tbody tr#row-diff td.cell-val-d {
    color: #dc2626;
    background: #fff1f2;
}

.disc-score-table tbody tr#row-diff td.cell-val-i {
    color: #d97706;
    background: #fffbeb;
}

.disc-score-table tbody tr#row-diff td.cell-val-s {
    color: #059669;
    background: #ecfdf5;
}

.disc-score-table tbody tr#row-diff td.cell-val-c {
    color: #2563eb;
    background: #eff6ff;
}

.cell-total {
    font-weight: 800 !important;
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-size: 1.3rem !important;
}

.cell-disabled {
    background-color: #f8fafc !important;
    color: #cbd5e1 !important;
}

.disc-score-table tbody tr:hover td {
    filter: brightness(0.97);
}

/* Graphs Layout Grid */
.graphs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
    gap: 20px;
    margin-top: 18px;
    margin-bottom: 24px;
}

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

.graph-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.25s ease;
    background: #ffffff;
}

.graph-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.graph-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.graph-header h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.profile-badge {
    background-color: #f1f5f9;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
}

.badge-primary {
    background-color: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

.graph-desc {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.5;
    min-height: 50px;
}

@media (max-width: 992px) {
    .graph-desc {
        height: auto;
    }
}

.svg-container {
    width: 100%;
    height: 560px;
    min-height: 560px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

/* --- Profile Details Card & Tabs --- */
.profile-details-section {
    margin-top: 32px;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.tabs-header {
    display: flex;
    gap: 12px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 14px;
    margin-bottom: 28px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    font-family: inherit;
    background: transparent;
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
    outline: none;
}

.tab-btn span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #64748b;
}

.tab-btn small {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
    color: #334155;
}

.tab-btn:hover:not(.active) span {
    color: #334155;
}

.tab-btn.active {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tab-btn.active span {
    color: #4f46e5;
}

.tab-btn.active small {
    color: #6366f1;
}

.tab-content-wrapper {
    min-height: 200px;
}

.profile-main-title {
    margin-bottom: 20px;
}

.profile-main-title h3 {
    font-size: 2.1rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.profile-main-title h4 {
    font-size: 1.4rem;
    color: var(--text-muted);
}

.traits-container,
.desc-container,
.jobs-container {
    margin-bottom: 24px;
}

.traits-container h5,
.desc-container h5,
.jobs-container h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trait-tag {
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
}

.profile-long-desc {
    font-size: 1.12rem;
    line-height: 1.8;
    color: #334155;
    text-align: justify;
}

.profile-jobs-text {
    font-size: 1.1rem;
    background-color: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding: 16px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    color: #334155;
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 24px 0;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

/* --- Responsive Layout adjustments --- */
@media (max-width: 600px) {
    .app-container {
        padding: 12px;
    }

    .card {
        padding: 16px;
    }

    .q-row {
        grid-template-columns: 50px 50px 1fr;
        padding: 12px 10px;
    }

    .statement-text {
        font-size: 0.85rem;
        padding-left: 4px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* --- Admin Dashboard Layout --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

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

.metric-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-fast);
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-val {
    font-size: 2.6rem;
    font-weight: 800;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 6px;
}

.metric-val.color-blue {
    color: var(--color-c);
}

.metric-val.color-pink {
    color: var(--color-d);
}

.metric-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.admin-actions-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.admin-buttons-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

#btn-export-excel {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .admin-actions-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .admin-buttons-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    font-family: inherit;
    font-size: 1.02rem;
    padding: 14px 18px 14px 48px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-app);
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    background-color: white;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.filter-box select {
    font-family: inherit;
    font-size: 1.02rem;
    padding: 14px 24px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-app);
    color: var(--text-main);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-box select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
}

/* Admin Participants Table */
.table-card {
    padding: 28px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.05rem;
    text-align: left;
}

.admin-table th,
.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background-color: var(--primary-color);
    font-weight: 700;
    color: #ffffff;
    padding: 18px 20px;
    font-size: 0.98rem;
    letter-spacing: 0.05em;
    border: none !important;
    text-align: center;
    vertical-align: middle;
}

.admin-table th:first-child {
    border-top-left-radius: 8px;
}

.admin-table th:last-child {
    border-top-right-radius: 8px;
}

.admin-table tbody tr {
    transition: background-color var(--transition-fast);
}

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

.gender-badge {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-c);
}

.badge-pink {
    background-color: rgba(244, 63, 94, 0.1);
    color: var(--color-d);
}

.row-actions {
    display: flex;
    gap: 8px;
}

.admin-table .row-actions {
    flex-wrap: wrap;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: 6px;
}

.btn-danger {
    background-color: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background-color: var(--danger);
    color: white;
}

.btn-danger-outline {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-danger-outline:hover {
    background-color: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-icon {
    color: var(--text-light);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* --- Participant Success Card --- */
.success-card {
    text-align: center;
    padding: 60px 40px;
    max-width: 600px;
    margin: 40px auto;
}

.success-icon-area {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
}

.success-checkmark-svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--success);
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--success);
    animation: success-fill .4s ease-in-out .4s forwards, success-scale .3s ease-in-out .9s cubic-bezier(0.12, 0, 0.38, 0) alternate infinite;
}

.success-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--success);
    fill: none;
    animation: success-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    animation: success-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes success-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes success-fill {
    100% {
        box-shadow: inset 0px 0px 0px 40px rgba(16, 185, 129, 0.08);
    }
}

.success-card h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.success-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.success-card .muted-info {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.success-actions {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   PRINT / PDF EXPORT SPECIFIC STYLING (No Blank Pages Guarantee)
   ========================================================================== */
@page {
    size: A4 portrait;
    margin: 6mm 8mm;
}

@media print {

    /* Hide all non-printable components & overlays completely */
    .no-print,
    .main-header,
    #sticky-progress,
    #form-section,
    #test-section,
    .result-actions,
    .tabs-header,
    .card-header.no-print,
    .report-header-title.no-print,
    .main-footer,
    #dashboard-view,
    #success-section,
    .modal-overlay {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    html,
    body {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        background-color: #fff !important;
        color: #000 !important;
        font-size: 10pt !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .app-container,
    .admin-full-container,
    .report-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .report-header {
        border: 1px solid #cbd5e1 !important;
        padding: 4px 6px !important;
        margin-bottom: 5px !important;
        background: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-shadow: none !important;
        border-radius: 4px !important;
    }

    .report-meta-grid {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 3px !important;
    }

    .meta-card {
        padding: 2px 4px !important;
        gap: 0 !important;
        border-width: 1px !important;
        border-style: solid !important;
        border-radius: 3px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .meta-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .meta-card-icon {
        display: none !important;
    }

    .meta-card-content {
        width: 100% !important;
    }

    .meta-label {
        font-size: 5pt !important;
        margin-bottom: 0px !important;
        line-height: 1.0 !important;
    }

    .meta-val {
        font-size: 7.5pt !important;
        line-height: 1.1 !important;
    }

    .meta-card-indigo .meta-val {
        font-size: 8pt !important;
    }

    /* Score Summary Table Card */
    .score-summary-card {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 4px !important;
        padding: 0 !important;
        margin-bottom: 6px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .score-summary-header {
        padding: 4px 8px !important;
        background: #f8fafc !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .score-summary-header h3 {
        font-size: 9pt !important;
        margin: 0 !important;
    }

    .score-summary-subtitle,
    .score-summary-icon {
        display: none !important;
    }

    .table-container {
        width: 100% !important;
        overflow: visible !important;
    }

    .disc-score-table {
        width: 100% !important;
        font-size: 8.5pt !important;
    }

    .disc-score-table th,
    .disc-score-table td {
        padding: 6px 6px !important;
        border: 1px solid #cbd5e1 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .row-badge {
        font-size: 6.5pt !important;
        padding: 2px 6px !important;
        min-width: 45px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .row-title {
        font-size: 8.5pt !important;
    }

    .cell-val {
        font-size: 10pt !important;
    }

    .cell-diff {
        font-size: 10.5pt !important;
    }

    /* Graphs Grid - Allow normal flow without forcing full page break avoids on wrapper */
    .graphs-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    .graph-card {
        padding: 10px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 6px !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .graph-header {
        margin-bottom: 6px !important;
        padding-bottom: 6px !important;
    }

    .graph-header h4 {
        font-size: 9.5pt !important;
    }

    .profile-badge {
        font-size: 7.5pt !important;
        padding: 3px 8px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .graph-desc {
        display: none !important;
    }

    .svg-container {
        height: 240px !important;
        min-height: 240px !important;
        padding: 4px !important;
        background-color: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
    }

    /* Profile Details Section */
    .profile-details-section {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 6px !important;
        margin-top: 12px !important;
        padding: 14px !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    .tab-content-wrapper {
        min-height: 0 !important;
    }

    .profile-main-title {
        margin-bottom: 10px !important;
    }

    .profile-main-title h3 {
        font-size: 13pt !important;
        color: #000 !important;
    }

    .profile-main-title h4 {
        font-size: 10.5pt !important;
        color: #333 !important;
    }

    .profile-long-desc {
        font-size: 9.5pt !important;
        line-height: 1.45 !important;
        color: #000 !important;
    }

    .profile-jobs-text {
        font-size: 9.5pt !important;
        background-color: #f8fafc !important;
        border-left: 3px solid #4f46e5 !important;
        padding: 8px 10px !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .traits-container,
    .desc-container,
    .jobs-container {
        margin-bottom: 12px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .traits-container h5,
    .desc-container h5,
    .jobs-container h5 {
        font-size: 9pt !important;
        margin-bottom: 4px !important;
        color: #333 !important;
    }

    .tags-list {
        gap: 4px !important;
    }

    .tag-item {
        font-size: 7.5pt !important;
        padding: 2px 8px !important;
        border: 1px solid #cbd5e1 !important;
        background-color: #f1f5f9 !important;
        color: #0f172a !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* --- Modal Overlay & Card --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8fafc;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-main);
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.btn-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #f8fafc;
}

/* Read-only participant answers */
.participant-answers-card {
    max-width: 1000px;
    border-radius: var(--border-radius-md);
}

.participant-answers-card .modal-body {
    min-height: 0;
}

.participant-answers-card .modal-footer {
    flex-wrap: wrap;
}

#btn-download-participant-answers:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.participant-answers-identity h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}

.participant-answers-identity p,
.participant-answers-legend {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.participant-answers-legend {
    margin: 16px 0 10px;
}

.participant-answers-summary {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.participant-answers-message {
    padding: 12px 16px;
    margin-bottom: 16px;
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    line-height: 1.6;
}

.participant-answers-message--warning,
.participant-answer-warning {
    color: #92400e;
    background: #fffbeb;
}

.participant-answers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.participant-answer-question {
    min-width: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.participant-answer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    background: var(--bg-app);
}

.participant-answer-status {
    font-size: 0.75rem;
    color: #92400e;
}

.participant-answer-status.is-complete {
    color: #047857;
}

.participant-answer-options {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.85rem;
}

.participant-answer-options th,
.participant-answer-options td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    overflow-wrap: anywhere;
}

.participant-answer-options th:nth-child(-n+2),
.participant-answer-options td:nth-child(-n+2) {
    width: 42px;
    text-align: center;
}

.participant-answer-options tr:last-child td {
    border-bottom: none;
}

.participant-answer-options .is-selected {
    background: #f0f9ff;
}

.participant-answer-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    color: var(--text-light);
    font-weight: 700;
}

.participant-answer-marker.is-p {
    background: #e0e7ff;
    color: #3730a3;
}

.participant-answer-marker.is-k {
    background: #ffedd5;
    color: #9a3412;
}

.participant-answer-warning {
    padding: 10px 12px;
    font-size: 0.8rem;
    line-height: 1.5;
}

.participant-answers-empty {
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-app);
    border-radius: var(--border-radius-sm);
}

@media (max-width: 700px) {
    .participant-answers-grid {
        grid-template-columns: 1fr;
    }

    #participant-answers-modal {
        padding: 12px;
    }

    .participant-answers-card .modal-body {
        padding: 16px;
    }
}
