* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #333;
    border-top: 3px solid #00ff00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar {
    width: 300px;
    height: 20px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff0000);
    width: 0%;
    animation: progress 3s ease-in-out forwards;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Main Content */
.main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

.header h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #ff0000, 0 0 30px #ff0000, 0 0 40px #ff0000; }
    to { text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 30px #ff0000; }
}

.warning-box {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.danger-button {
    background: linear-gradient(45deg, #ff0000, #ff4444);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.danger-button:hover {
    background: linear-gradient(45deg, #cc0000, #ff0000);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.danger-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Error Container */
.error-container {
    position: relative;
}

.error-window {
    position: absolute;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    border-radius: 0;
    min-width: 300px;
    max-width: 500px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    animation: shake 0.5s infinite;
    z-index: 100;
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-2px, 2px) rotate(1deg); }
    50% { transform: translate(2px, -2px) rotate(-1deg); }
    75% { transform: translate(-2px, -2px) rotate(1deg); }
}

.error-titlebar {
    background: linear-gradient(90deg, #0000ff, #000080);
    color: white;
    padding: 2px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.error-close {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    width: 16px;
    height: 14px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.error-message {
    flex: 1;
}

.error-buttons {
    padding: 10px 15px;
    text-align: center;
    border-top: 1px inset #c0c0c0;
}

.error-button {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    padding: 2px 15px;
    margin: 0 5px;
    font-size: 11px;
    cursor: pointer;
}

.error-button:active {
    border: 1px inset #c0c0c0;
}

/* Bluescreen */
.bluescreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0078d4;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.bluescreen-content {
    max-width: 800px;
    padding: 40px;
    text-align: left;
}

.sad-face {
    font-size: 120px;
    font-weight: 300;
    margin-bottom: 30px;
}

.bluescreen h1 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.4;
}

.bluescreen p {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.progress-container {
    font-size: 16px;
    margin: 30px 0;
}

.error-details {
    margin-top: 40px;
    font-size: 14px;
    line-height: 1.6;
}

.stop-code {
    font-family: 'Courier New', monospace;
    background: rgba(255,255,255,0.1);
    padding: 2px 4px;
}

.qr-code {
    position: absolute;
    bottom: 40px;
    right: 40px;
}

.qr-placeholder {
    width: 80px;
    height: 80px;
    background: white;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

/* Kernel Panic (macOS) */
.kernel-panic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    font-family: 'Helvetica Neue', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.kernel-panic-content {
    max-width: 600px;
    padding: 40px;
    text-align: center;
}

.panic-icon {
    font-size: 80px;
    margin-bottom: 30px;
}

.kernel-panic h1 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 20px;
}

.kernel-panic p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.panic-details {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 5px;
    text-align: left;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.2;
    margin-top: 30px;
    max-height: 300px;
    overflow-y: auto;
}

/* Linux Kernel Panic */
.linux-panic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.linux-panic-content {
    width: 100%;
}

.linux-panic pre {
    font-size: 12px;
    line-height: 1.2;
    white-space: pre-wrap;
    animation: typewriter 5s steps(100) forwards;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

/* Android Crash */
.android-crash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    color: #333;
    font-family: 'Roboto', 'Arial', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.android-crash-content {
    max-width: 400px;
    padding: 40px;
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.android-logo {
    font-size: 60px;
    margin-bottom: 20px;
}

.android-crash h1 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #4CAF50;
}

.android-error-icon {
    font-size: 48px;
    margin: 20px 0;
    color: #FF9800;
}

.android-crash h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.android-crash p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

.android-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.android-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    min-width: 80px;
}

.android-btn-primary {
    background: #2196F3;
    color: white;
}

.android-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.android-crash-details {
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 12px;
    color: #666;
}

.android-progress {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin: 15px 0;
}

.android-progress-bar {
    height: 100%;
    background: #FF5722;
    width: 0%;
    animation: androidProgress 3s ease-in-out forwards;
}

@keyframes androidProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.android-crash-text {
    font-style: italic;
    margin-top: 10px;
}

/* iOS Crash */
.ios-crash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    font-family: '-apple-system', 'BlinkMacSystemFont', 'Helvetica Neue', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.ios-crash-content {
    max-width: 500px;
    padding: 40px;
    text-align: center;
}

.ios-logo {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.ios-crash-icon {
    font-size: 60px;
    margin-bottom: 30px;
}

.ios-crash h1 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.3;
}

.ios-crash p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.4;
}

.ios-error-details {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 30px;
}

.ios-error-details p {
    margin-bottom: 8px;
    font-size: 12px;
}

.ios-countdown {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.ios-countdown-circle {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: iosCountdownPulse 1s infinite;
}

@keyframes iosCountdownPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

#ios-countdown-text {
    font-size: 24px;
    font-weight: 300;
}

/* Popup Animations */
.popup-enter {
    animation: popupEnter 0.5s ease-out forwards;
}

@keyframes popupEnter {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.glitch {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Screen distortion effects */
.screen-distortion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,0,0,0.03) 2px,
        rgba(255,0,0,0.03) 4px
    );
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Critical error styles */
.critical-error {
    background: #ff0000 !important;
    color: white !important;
    animation: criticalFlash 0.2s infinite !important;
}

@keyframes criticalFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .bluescreen-content,
    .kernel-panic-content,
    .android-crash-content,
    .ios-crash-content {
        padding: 20px;
    }
    
    .bluescreen h1 {
        font-size: 20px;
    }
    
    .kernel-panic h1 {
        font-size: 24px;
    }
    
    .android-crash h1 {
        font-size: 20px;
    }
    
    .ios-crash h1 {
        font-size: 22px;
    }
    
    .error-window {
        max-width: 90%;
        font-size: 10px;
    }
    
    .sad-face {
        font-size: 80px;
    }
    
    .panic-icon {
        font-size: 60px;
    }
    
    .android-logo {
        font-size: 50px;
    }
    
    .ios-logo {
        font-size: 60px;
    }
    
    .android-crash-content {
        max-width: 90%;
        margin: 20px;
    }
    
    .ios-crash-content {
        max-width: 90%;
        margin: 20px;
    }
} 