/* Cyber Theme Stylesheet — MOFCG CTF 2026 */
body {
    background-color: #0b0f19;
    color: #cbd5e1;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(16, 185, 129, 0.35);
    color: #f8fafc;
}

:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

input, textarea, [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

.cyber-card {
    background-color: #111827;
    border: 1px solid #1f2937;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.cyber-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.12), 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

button:active:not(:disabled),
.cyber-bg-accent:active:not(:disabled) {
    transform: scale(0.98);
}

.cyber-accent {
    color: #10b981;
}

.cyber-bg-accent {
    background-color: #059669;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.cyber-bg-accent:hover:not(:disabled) {
    background-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

.locked-card {
    opacity: 0.5;
    filter: grayscale(50%);
    pointer-events: none;
}

.stage-blurred {
    filter: blur(16px) brightness(15%);
    opacity: 0 !important;
    pointer-events: none !important;
    user-select: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0b0f19;
}
::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* ==========================================================================
   Cyberpunk HUD Toast Notifications
   ========================================================================== */
#cyberToastContainer {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 26rem;
    width: calc(100vw - 2.5rem);
    pointer-events: none;
}

.cyber-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    border-radius: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.825rem;
    line-height: 1.4;
    background: rgba(13, 19, 33, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
    border: 1px solid;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.25s ease;
    cursor: pointer;
}

.cyber-toast.toast-hiding {
    animation: toastSlideOut 0.25s ease forwards;
}

.cyber-toast.toast-success {
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3), 0 8px 20px rgba(0, 0, 0, 0.6);
    color: #e2e8f0;
}
.cyber-toast.toast-success .toast-icon {
    color: #10b981;
}

.cyber-toast.toast-error {
    border-color: rgba(244, 63, 94, 0.8);
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.3), 0 8px 20px rgba(0, 0, 0, 0.6);
    color: #ffe4e6;
}
.cyber-toast.toast-error .toast-icon {
    color: #f43f5e;
}

.cyber-toast.toast-warning {
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.3), 0 8px 20px rgba(0, 0, 0, 0.6);
    color: #fef3c7;
}
.cyber-toast.toast-warning .toast-icon {
    color: #f59e0b;
}

.cyber-toast.toast-info {
    border-color: rgba(6, 182, 212, 0.8);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.3), 0 8px 20px rgba(0, 0, 0, 0.6);
    color: #e0f2fe;
}
.cyber-toast.toast-info .toast-icon {
    color: #06b6d4;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(35px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(45px) scale(0.9);
    }
}

/* ==========================================================================
   Flag Input Validation Accents
   ========================================================================== */
.flag-valid-input {
    border-color: #10b981 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.45) !important;
    background-color: rgba(6, 78, 59, 0.15) !important;
}

.flag-invalid-input {
    border-color: #f59e0b !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35) !important;
    background-color: rgba(120, 53, 15, 0.1) !important;
}

/* Accessible Universal Form Focus State */
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4) !important;
    outline: none !important;
}

/* Interactive Evidence Artifact Downloads */
[class*="stage-dl-btn-"] {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[class*="stage-dl-btn-"]:hover:not(:disabled) {
    transform: translateX(3px);
    border-color: rgba(16, 185, 129, 0.7);
    background-color: rgba(6, 78, 59, 0.35);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

[class*="stage-dl-btn-"]:active:not(:disabled) {
    transform: scale(0.99) translateX(1px);
}

/* Skip to Main Content Link (WCAG 2.4.1) */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: #10b981;
    color: #0b0f19;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    z-index: 1000000;
    border-bottom-right-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}


