
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff9f;
    --secondary-color: #ff0080;
    --accent-color: #00d4ff;
    --error-color: #ff3366;
    --warning-color: #ffaa00;
    --background-dark: #0a0a0a;
    --background-darker: #050505;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --border-color: #333333;
    --terminal-bg: rgba(10, 10, 10, 0.95);
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--background-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, var(--primary-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--secondary-color) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--accent-color) 0%, transparent 50%);
    opacity: 0.1;
    z-index: -2;
    animation: matrixShift 20s infinite ease-in-out;
}

.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 159, 0.03) 2px,
            rgba(0, 255, 159, 0.03) 4px
        );
    z-index: -1;
    animation: scanlines 0.1s linear infinite;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.terminal {
    background: var(--terminal-bg);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    box-shadow: 
        0 0 30px rgba(0, 255, 159, 0.3),
        inset 0 0 20px rgba(0, 255, 159, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: terminalGlow 3s infinite ease-in-out alternate;
}

.terminal-header {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.8;
}

.btn.red { background: var(--error-color); }
.btn.yellow { background: var(--warning-color); }
.btn.green { background: var(--primary-color); }

.terminal-title {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--accent-color);
    margin-left: auto;
    font-size: 14px;
    letter-spacing: 2px;
}

.terminal-body {
    padding: 30px;
    font-size: 14px;
    line-height: 1.6;
}

.status-line {
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 255, 159, 0.1);
    border-left: 3px solid var(--primary-color);
    border-radius: 3px;
}

.prompt {
    color: var(--primary-color);
    font-weight: 700;
}

.command {
    color: var(--text-primary);
    margin-left: 10px;
}

.error-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.1), rgba(255, 0, 128, 0.1));
    border: 1px solid var(--error-color);
    border-radius: 8px;
    position: relative;
}

.error-icon {
    font-size: 48px;
    color: var(--error-color);
    animation: pulse 2s infinite;
}

.error-content h1 {
    font-family: 'Orbitron', monospace;
    font-size: 32px;
    font-weight: 900;
    color: var(--error-color);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch1 2s infinite;
    color: var(--accent-color);
    z-index: -1;
}

.glitch::after {
    animation: glitch2 2s infinite;
    color: var(--secondary-color);
    z-index: -2;
}

.error-message {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.error-description {
    color: var(--text-secondary);
    font-size: 14px;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 10px var(--primary-color);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.status-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 159, 0.2);
}

.status-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.status-value {
    font-weight: 700;
    font-size: 12px;
}

.status-value.online {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.status-value.offline {
    color: var(--error-color);
    text-shadow: 0 0 5px var(--error-color);
}

.status-value.degraded {
    color: var(--warning-color);
    text-shadow: 0 0 5px var(--warning-color);
}

.progress-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
}

.progress-label {
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 4px;
    animation: progressAnimation 3s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-color);
}

.progress-text {
    color: var(--text-secondary);
    font-size: 12px;
    animation: dots 2s infinite;
}

.footer-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
}

.timestamp {
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
}

.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.hex-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, var(--primary-color) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--accent-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: hexMove 30s linear infinite;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scan 4s linear infinite;
}

/* Animations */
@keyframes matrixShift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(1deg); }
    50% { transform: translateY(0) rotate(-1deg); }
    75% { transform: translateY(20px) rotate(0.5deg); }
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes terminalGlow {
    0% { box-shadow: 0 0 30px rgba(0, 255, 159, 0.3), inset 0 0 20px rgba(0, 255, 159, 0.1); }
    100% { box-shadow: 0 0 40px rgba(0, 255, 159, 0.5), inset 0 0 30px rgba(0, 255, 159, 0.2); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes glitch1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, 0px); }
    40% { transform: translate(-2px, 0px); }
    60% { transform: translate(0px, 2px); }
    80% { transform: translate(0px, -2px); }
}

@keyframes progressAnimation {
    0% { width: 0%; }
    70% { width: 85%; }
    100% { width: 0%; }
}

@keyframes dots {
    0%, 20% { content: 'Analyzing system components'; }
    25%, 45% { content: 'Analyzing system components.'; }
    50%, 70% { content: 'Analyzing system components..'; }
    75%, 95% { content: 'Analyzing system components...'; }
}

@keyframes hexMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(50px) translateY(50px); }
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container { padding: 10px; }
    .terminal-body { padding: 20px; }
    .error-content h1 { font-size: 24px; }
    .error-block { flex-direction: column; text-align: center; }
    .status-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .error-content h1 { font-size: 20px; letter-spacing: 1px; }
    .terminal-title { font-size: 12px; }
}
