/* Inference Packs page styling */


/* Soft pastel background and feminine text color */

.pastel-bg {
    background-color: #fff0f8 !important;
}

.feminine-text {
    color: #55304d !important;
}


/* Table styling */

#inference-packs-table {
    width: 100%;
    border-collapse: collapse;
}

#inference-packs-table th {
    background-color: #fde7f5;
    padding: 0.75rem;
    border-bottom: 1px solid #f2f2f2;
}

#inference-packs-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f7e6f2;
}


/* Alternate row shading */

#inference-packs-table tr:nth-child(even) td {
    background-color: #fff5f9;
}


/* Details button styling */

.details-btn {
    background: transparent;
    border: none;
    color: #a8328e;
    cursor: pointer;
    font-weight: bold;
}

.details-btn:hover {
    color: #7a2860;
}


/* Actions cell layout */

.actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}


/* Download button styling */

.download-btn {
    background-color: #ffffff;
    border: 1px solid #a8328e;
    color: #a8328e;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
}

.download-btn:hover {
    background-color: #fde7f5;
}


/* -------------------------------------------------------------------------- */


/* Evaluation status indicator                                                 */


/* -------------------------------------------------------------------------- */

.eval-status {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.status-chip {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-block;
    position: relative;
}


/* Not evaluated: subtle neutral */

.status-chip.status-none {
    background: linear-gradient(180deg, #e6e9ef, #cfd8dc);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(0, 0, 0, .05);
}


/* Ready: green with check mark */

.status-chip.status-ready {
    background: linear-gradient(180deg, #35d07f, #2db970);
    box-shadow: 0 2px 6px rgba(53, 208, 127, 0.35);
}

.status-chip.status-ready::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}


/* In progress: spinner ring */

.status-chip.status-progress {
    background: transparent;
    border: 2px solid #a8328e33;
    border-top-color: #a8328e;
    animation: spin 1s linear infinite;
}


/* Failure: red with exclamation */

.status-chip.status-failure {
    background: linear-gradient(180deg, #ff6b6b, #e63946);
    box-shadow: 0 2px 6px rgba(230, 57, 70, 0.35);
}

.status-chip.status-failure::after {
    content: '!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* -------------------------------------------------------------------------- */


/* Evaluation log button + modal                                               */


/* -------------------------------------------------------------------------- */

.eval-log-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.9rem;
    line-height: 1;
}

.eval-log-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.eval-log-modal {
    width: min(900px, 95vw);
    max-height: 85vh;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid #f7e6f2;
}

.eval-log-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #fde7f5;
    border-bottom: 1px solid #f7e6f2;
}

.eval-log-modal-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eval-log-modal-title {
    font-weight: 700;
    color: #55304d;
}

.eval-log-modal-toggle,
.eval-log-modal-refresh {
    background-color: #ffffff;
    border: 1px solid #a8328e;
    color: #a8328e;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
}

.eval-log-modal-toggle.is-on {
    background-color: #fff0f8;
}

.eval-log-modal-toggle:hover,
.eval-log-modal-refresh:hover {
    background-color: #fff0f8;
}

.eval-log-modal-close {
    background-color: #ffffff;
    border: 1px solid #a8328e;
    color: #a8328e;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
}

.eval-log-modal-close:hover {
    background-color: #fff0f8;
}

.eval-log-modal-body {
    margin: 0;
    padding: 12px;
    white-space: pre-wrap;
    overflow: auto;
    max-height: calc(85vh - 52px);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    color: #2b2b2b;
}

.train-ai-modal-body {
    white-space: normal;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.train-ai-status {
    margin: 0 0 12px 0;
    padding: 8px 10px;
    border: 1px solid #c8d8f2;
    border-radius: 6px;
    background: #eef5ff;
    color: #285189;
    font-weight: 600;
}

.train-ai-severity {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.train-ai-severity-ok {
    background: #e9f8ef;
    color: #1f7a3f;
}

.train-ai-severity-warning,
.train-ai-severity-unknown {
    background: #fff4d8;
    color: #946200;
}

.train-ai-severity-failed {
    background: #ffe5e5;
    color: #a52727;
}

.train-ai-field {
    margin-bottom: 10px;
}

.train-ai-evidence {
    margin: 8px 0 0 18px;
}
