/* Základní rozvržení v "GitHub Dark" stylu */
body {
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.maintenance-container {
    max-width: 600px;
    width: 90%;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.status-header h1 {
    color: #f85149;
    font-size: 1.5rem;
    margin-top: 0;
    border-bottom: 1px solid #30363d;
    padding-bottom: 1rem;
}

.error-msg {
    line-height: 1.6;
    margin: 1.5rem 0;
}

.highlight {
    color: #58a6ff;
    font-family: monospace;
}

.stats {
    background: #0d1117;
    padding: 1rem;
    border-radius: 4px;
    display: grid;
    grid-template-columns: 1fr; /* Pro jistotu pod sebou na mobilu */
    gap: 10px;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Podpora pro grid z tvé šablony */
@media (min-width: 480px) {
    .stats {
        grid-template-columns: 1fr 1fr;
    }
}

.label {
    color: #8b949e;
}

.value {
    color: #c9d1d9;
}

.tech-note {
    font-size: 0.85rem;
    font-style: italic;
    color: #8b949e;
    margin: 1.5rem 0;
}

.footer {
    border-top: 1px solid #30363d;
    padding-top: 1rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: #484f58;
    text-align: center;
}

/* STAVY PRO JAVASCRIPT */

.hidden-error { 
    display: none; 
}

.error-visible {
    display: block;
    margin-top: 20px;
    padding: 15px;
    border: 2px solid #ff4d4d;
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    font-family: 'Courier New', 'Consolas', monospace;
    font-weight: bold;
    animation: blink 1s infinite;
}

.text-danger {
    color: #ff4d4d !important;
}

/* Animace pro kritickou chybu */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}
/* --- TRAP LOGIC STYLES (v1.2) --- */

/* Skrytý error box při startu */
.hidden-error {
    display: none;
}

/* Vizuál kritického selhání */
.visible-error {
    display: block;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.critical-message {
    border: 2px solid #ff4444;
    padding: 20px;
    background: rgba(255, 0, 0, 0.1);
    margin-top: 20px;
    text-align: left;
}

.critical-message p {
    color: #ff4444;
    font-weight: bold;
    margin: 10px 0;
}

.critical-message p:first-child {
    font-size: 1.2em;
    text-transform: uppercase;
}

.critical-message .tech-footer {
    font-style: italic;
    font-weight: normal;
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 68, 68, 0.3);
    padding-top: 10px;
}

/* Efekt otřesu při selhání (psychologický nátlak) */
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}