/* ZAD Spectra Olimpade — Core Application CSS */

body {
    background-color: var(--color-base-200);
    color: var(--color-base-content);
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Card shadows */
.zad-card-shadow {
    box-shadow:
        0 1px 3px 0 rgba(0, 0, 0, 0.04),
        0 1px 2px 0 rgba(0, 0, 0, 0.02);
}

.zad-card-shadow-lg {
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.06),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Standardized Page Headings */
.page-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    line-height: 1.75rem;
    color: var(--color-base-content);
}

.page-subtitle {
    font-size: 0.875rem; /* 14px */
    color: rgba(26, 26, 46, 0.65);
    margin-top: 0.25rem;
}

/* Table styling polish */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: rgba(26, 26, 46, 0.7);
    background-color: var(--color-base-200);
}

/* Image containment in questions */
.question-content img,
.zad-rendered-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-field);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Render SunEditor HTML cleanly inside Preview & Participant Exam cards */
.sun-editor-editable.zad-rendered-content {
    background-color: transparent;
    padding: 0;
    border: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    height: auto;
    overflow: visible;
}

.sun-editor-editable.zad-rendered-content p:last-child {
    margin-bottom: 0;
}

/* KaTeX formula readability */
.katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    margin: 0.5rem 0;
}
