/* --- UNIVERSAL LAB THEME --- */
:root {
    --bg-dark: #020205;
    --border: #1a1e30;
    --cyan: #00f2ea;
    --magenta: #ff0050;
    --success: #10b981;
    --text-main: #ededed;
    --error: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex; flex-direction: column;
    margin: 0; overflow-x: hidden;
}

/* 🌟 VIDEO BACKGROUND SETTINGS 🌟 */
#bg-video {
    position: fixed; right: 0; bottom: 0; min-width: 100%; min-height: 100%;
    width: auto; height: auto; z-index: -4; object-fit: cover;
    transition: opacity 0.5s ease-in-out; /* Ye jhatka hide karega */
}
.video-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -3;
    background: rgba(2, 2, 8, 0.65); /* Video ko halka dark karne ke liye */
}

header { padding: 24px 0; border-bottom: 1px solid rgba(0, 242, 234, 0.2); background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); }
.logo { font-size: 2rem; font-weight: 900; color: #fff; text-decoration: none; letter-spacing: 2px; }
.logo span { color: var(--cyan); text-shadow: 0 0 15px rgba(0,242,234,0.8); }

.main-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }

.downloader-box {
    background: rgba(10, 10, 15, 0.75); 
    border: 1px solid var(--cyan); border-radius: 15px; padding: 40px;
    width: 100%; max-width: 650px; text-align: center;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(0,242,234,0.1);
    backdrop-filter: blur(12px);
}

h1 { font-size: 2.5rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; text-transform: uppercase; }
.subtitle { color: #a0aabf; margin-bottom: 30px; font-size: 1.1rem; }

/* Upload Area */
.upload-container {
    border: 2px dashed rgba(0,242,234,0.5); border-radius: 12px;
    padding: 40px; background: rgba(0, 0, 0, 0.5); transition: 0.3s;
}
.upload-container:hover { border-color: var(--cyan); background: rgba(0,242,234,0.15); box-shadow: 0 0 20px rgba(0,242,234,0.3); }
.drop-icon { filter: drop-shadow(0 0 15px var(--cyan)); }

.btn-extract {
    background: linear-gradient(90deg, var(--cyan), #0088ff);
    color: #000; border: none; padding: 15px 35px; border-radius: 8px;
    font-size: 1.1rem; font-weight: 900; cursor: pointer; transition: 0.3s;
    text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
}
.btn-extract:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(0, 242, 234, 0.6); color: #000; }

.msg-box { margin-top: 20px; padding: 15px; border-radius: 8px; display: none; font-weight: bold; }
.msg-error { background-color: rgba(239, 68, 68, 0.2); border: 1px solid var(--error); color: #ff8a8a; }

.result-container { display: none; margin-top: 30px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.text-cyan { color: var(--cyan); }

footer { padding: 20px 0; background: rgba(0,0,0,0.8); border-top: 1px solid var(--cyan); font-weight: bold; font-size: 0.9rem; color: #888;}

/* 🌟 DANGEROUS SCANNING ANIMATION 🌟 */
.cyber-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(2, 2, 5, 0.95); z-index: 1000;
    display: none; align-items: center; justify-content: center; overflow: hidden;
}

.data-stream {
    position: absolute; top: 0; height: 100%; width: 20%;
    font-family: 'Chivo Mono', monospace; font-size: 12px;
    color: var(--cyan); opacity: 0.15; word-wrap: break-word; overflow: hidden;
}
.left-stream { left: 10px; text-align: left; }
.right-stream { right: 10px; text-align: right; }

.scanner-core { text-align: center; position: relative; z-index: 10; width: 100%; max-width: 500px; padding: 20px; }
.radar {
    width: 120px; height: 120px; border: 2px solid var(--cyan);
    border-radius: 50%; margin: 0 auto; position: relative;
    background: repeating-radial-gradient(transparent, transparent 15px, rgba(0, 242, 234, 0.2) 16px);
    box-shadow: 0 0 30px rgba(0,242,234,0.3); overflow: hidden;
}
.sweep {
    position: absolute; top: 0; left: 50%; width: 50%; height: 50%;
    background: linear-gradient(to right, transparent, rgba(0, 242, 234, 0.8));
    transform-origin: bottom left; animation: radar-spin 2s infinite linear;
}
@keyframes radar-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.scanning-title { color: var(--cyan); font-weight: 900; letter-spacing: 2px; text-shadow: 0 0 10px var(--cyan); }
.scanning-sub { color: #888; font-family: 'Chivo Mono', monospace; }

.cyber-progress-bar { width: 100%; height: 15px; border: 1px solid var(--cyan); padding: 2px; background: rgba(0,0,0,0.5); }
.cyber-progress-fill { width: 0%; height: 100%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); transition: width 0.2s; }
.scan-status { color: var(--cyan); font-family: 'Chivo Mono', monospace; font-size: 14px; text-transform: uppercase; }