/*
 * Ideaseven Tester theme. Every page loads this first; all colours live here.
 * To rebrand, change the tokens below. Status colours (pass/warn/fail) are
 * kept separate from the brand accent so results stay readable.
 */
:root {
    /* Brand */
    --bg: #0B0A0A;
    --accent: #FF3C28;
    --accent-hover: #ff5d4b;
    --accent-soft: rgba(255, 60, 40, 0.15);
    --accent-faint: rgba(255, 60, 40, 0.06);

    /* Surfaces & text */
    --panel: #151212;
    --panel-2: #1e1a1a;
    --panel-deep: #100e0e;
    --border: #2e2828;
    --text: #ffffff;
    --text-dim: #a39c9b;
    --code-text: #d2cbca;

    /* Status */
    --pass: #2fbf71;
    --pass-soft: rgba(47, 191, 113, 0.15);
    --warn: #e8b339;
    --warn-soft: rgba(232, 179, 57, 0.15);
    --warn-faint: rgba(232, 179, 57, 0.1);
    --warn-border: rgba(232, 179, 57, 0.3);
    --fail: #ef5b5b;
    --fail-soft: rgba(239, 91, 91, 0.15);
    --fail-faint: rgba(239, 91, 91, 0.08);
    --fail-border: rgba(239, 91, 91, 0.35);
    --info: #8f8887;
    --info-soft: rgba(143, 136, 135, 0.15);

    /* Tool category colours (pills and dashboard icons) */
    --blue: #5b8cff;
    --blue-soft: rgba(91, 140, 255, 0.15);
    --purple: #a77bff;
    --purple-soft: rgba(167, 123, 255, 0.15);
    --teal: #3cc8c8;
    --teal-soft: rgba(60, 200, 200, 0.15);
}

::selection { background: var(--accent); color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

input:focus, select:focus, textarea:focus { border-color: var(--accent) !important; outline: none; }

.app-footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 32px;
    color: var(--text-dim);
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Busy state for submitted forms (assets/busy.js) */
.is-busy { cursor: progress !important; opacity: 0.85; }
.busy-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: busy-spin 0.7s linear infinite;
}
.busy-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-dim);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.busy-bar {
    position: relative;
    flex: 0 1 260px;
    height: 3px;
    border-radius: 3px;
    background: var(--panel-2);
    overflow: hidden;
}
.busy-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 40%;
    border-radius: 3px;
    background: var(--accent);
    animation: busy-slide 1.3s ease-in-out infinite;
}
.busy-time { font-variant-numeric: tabular-nums; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@keyframes busy-slide { from { left: -40%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
    .busy-spinner { animation-duration: 2s; }
    .busy-bar::after { animation: none; left: 0; width: 100%; opacity: 0.5; }
}

.app-footer a { color: var(--text-dim); text-decoration: none; }
.app-footer a:hover { color: var(--text); text-decoration: underline; }