/* Questões e importação JSON */
.admin-questoes-shell {
    display: grid;
    gap: 22px;
}

.admin-questoes-toolbar,
.admin-questoes-header,
.admin-questoes-summary-grid,
.admin-questoes-selection-grid,
.admin-questoes-import-grid,
.admin-questoes-type-grid,
.admin-questoes-columns-grid,
.admin-questoes-row-actions,
.admin-questoes-image-controls,
.admin-questoes-actions-inline {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-questoes-toolbar,
.admin-questoes-header {
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(123, 189, 196, 0.45);
    background: rgba(255, 255, 255, 0.82);
}

.admin-questoes-toolbar {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
}

.admin-questoes-toolbar__summary {
    text-align: center;
}

.admin-questoes-toolbar__label {
    display: block;
    color: #607589;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.admin-questoes-toolbar__value {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: #173f20;
    font-size: 1.45rem;
    font-weight: 800;
}

.admin-questoes-toolbar__value small {
    color: #607589;
    font-size: .9rem;
    font-weight: 600;
}

.admin-questoes-header__copy {
    display: grid;
    gap: 4px;
}

.admin-questoes-header__copy h2,
.admin-questoes-card__title h2,
.admin-questoes-empty h2 {
    margin: 0;
}

.admin-questoes-header__copy p,
.admin-questoes-card__title p,
.admin-questoes-note,
.admin-questoes-empty p,
.admin-questoes-import-note {
    margin: 0;
    color: #607589;
}

.admin-questoes-meta {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(185, 226, 231, 0.18);
    border: 1px solid rgba(123, 189, 196, 0.35);
    color: #284b63;
}

.admin-questoes-meta strong {
    color: #173f20;
}

.admin-questoes-summary-grid,
.admin-questoes-selection-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-questoes-summary-box,
.admin-questoes-selection-card,
.admin-questoes-hint-box {
    padding: 16px 14px;
    border-radius: 18px;
    background: rgba(185, 226, 231, 0.22);
    border: 1px solid rgba(123, 189, 196, 0.4);
}

.admin-questoes-summary-box span,
.admin-questoes-selection-card span {
    display: block;
    margin-bottom: 6px;
    color: #607589;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-questoes-summary-box strong,
.admin-questoes-selection-card strong {
    color: #173f20;
    font-size: 1.02rem;
    line-height: 1.35;
}

.admin-questoes-card__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.admin-questoes-editor {
    display: grid;
    gap: 18px;
}

.admin-questoes-editor__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-questoes-editor__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(35, 74, 134, 0.08);
    color: #234a86;
    font-size: .82rem;
    font-weight: 700;
}

.admin-questoes-editor__grid {
    display: grid;
    gap: 16px;
}

.admin-questoes-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.admin-questoes-column-box {
    padding: 14px;
    border-radius: 16px;
    background: rgba(248, 251, 255, 0.92);
    border: 1px solid rgba(189, 212, 231, 0.95);
}

.admin-questoes-column-box h3 {
    margin: 0 0 12px;
    color: #234a86;
}

.admin-questoes-readonly {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px dashed rgba(123, 189, 196, 0.55);
    color: #607589;
}

.admin-questoes-image-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(248, 251, 255, 0.92);
    border: 1px solid rgba(189, 212, 231, 0.95);
}

.admin-questoes-image-preview {
    max-width: 280px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(123, 189, 196, 0.45);
    background: #fff;
}

.admin-questoes-image-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.admin-questoes-image-controls {
    align-items: center;
}

.admin-questoes-actions-inline {
    align-items: center;
}

.admin-questoes-inline-form {
    margin: 0;
}

.admin-questoes-row-actions {
    align-items: center;
}

.admin-questoes-table td small {
    display: block;
    margin-top: 4px;
    color: #607589;
}

.admin-questoes-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.admin-questoes-pill::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #9aa7b4;
}

.admin-questoes-pill.is-active::before {
    background: #1f9d63;
}

.admin-questoes-pill.is-paused::before {
    background: #d97706;
}

.admin-questoes-empty,
.admin-questoes-warning,
.admin-questoes-tip {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px dashed rgba(123, 189, 196, 0.58);
    background: rgba(255,255,255,.78);
    color: #607589;
}

.admin-questoes-warning {
    background: rgba(255, 246, 232, 0.84);
    border-color: rgba(217, 119, 6, 0.45);
    color: #8a5a1a;
}

.admin-questoes-import-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 18px;
}

.admin-questoes-hints {
    display: grid;
    gap: 16px;
}

.admin-questoes-hint-box h3,
.admin-questoes-column-box h3 {
    color: #173f20;
}

.admin-questoes-hint-box ul {
    margin: 0;
    padding-left: 18px;
    color: #607589;
}

.admin-questoes-import-note code,
.admin-questoes-note code {
    background: rgba(15, 23, 42, 0.06);
    padding: 2px 6px;
    border-radius: 8px;
}

.admin-questoes-separator {
    height: 1px;
    background: rgba(123, 189, 196, 0.35);
    margin: 6px 0;
}

@media (max-width: 1080px) {
    .admin-questoes-summary-grid,
    .admin-questoes-selection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-questoes-toolbar {
        grid-template-columns: 1fr;
        justify-items: stretch;
        text-align: center;
    }
}

@media (max-width: 880px) {
    .admin-questoes-import-grid,
    .admin-questoes-type-grid,
    .admin-questoes-columns-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .admin-questoes-summary-grid,
    .admin-questoes-selection-grid {
        grid-template-columns: 1fr;
    }

    .admin-questoes-header,
    .admin-questoes-editor__head,
    .admin-questoes-card__title {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-questoes-row-actions,
    .admin-questoes-actions-inline {
        flex-direction: column;
        align-items: stretch;
    }
}