@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

html {
    background: #0a0a0a;
}

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

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background: linear-gradient(45deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    background-size: 32px 32px;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
    background-attachment: fixed;
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: transparent;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    text-shadow: 3px 3px 0px #000, 6px 6px 0px rgba(0,0,0,0.7);
}

header h1 {
    font-size: clamp(1rem, 4vw, 1.5em);
    margin-bottom: 10px;
    color: #00ff88;
    text-shadow: 3px 3px 0px #003322, 6px 6px 0px rgba(0,0,0,0.8);
    letter-spacing: 2px;
    filter: drop-shadow(0 0 10px #00ff88);
    white-space: nowrap;
    overflow: hidden;
}

header p {
    font-size: 0.7em;
    opacity: 0.9;
    color: #88ddff;
    text-shadow: 2px 2px 0px #002244;
}

.section {
    background: linear-gradient(145deg, #1a1a1a, #111111);
    border: 4px solid #333;
    border-radius: 0;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 
        inset 2px 2px 0px rgba(255,255,255,0.05),
        inset -2px -2px 0px rgba(0,0,0,0.8),
        4px 4px 12px rgba(0,0,0,0.9);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid rgba(255,255,255,0.02);
    pointer-events: none;
}

.section h2 {
    color: #00ff88;
    margin-bottom: 20px;
    font-size: 1em;
    text-shadow: 2px 2px 0px #000, 0 0 10px #00ff88;
    letter-spacing: 1px;
}

.section h3 {
    color: #88ddff;
    margin-bottom: 15px;
    font-size: 0.8em;
    text-shadow: 1px 1px 0px #000;
}

.upload-area, .download-area {
    text-align: center;
    padding: 30px;
    border: 4px solid #555;
    background: linear-gradient(145deg, #333, #222);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 
        inset 2px 2px 0px rgba(255,255,255,0.1),
        inset -2px -2px 0px rgba(0,0,0,0.8);
}

.upload-area:hover, .download-area:hover {
    border-color: #00ff88;
    background: linear-gradient(145deg, #444, #333);
    box-shadow: 
        inset 2px 2px 0px rgba(255,255,255,0.15),
        inset -2px -2px 0px rgba(0,0,0,0.8),
        0 0 15px rgba(0, 255, 136, 0.4);
}

.btn {
    padding: 12px 24px;
    border: 3px solid #000;
    cursor: pointer;
    font-size: 0.7em;
    font-weight: bold;
    font-family: 'Press Start 2P', monospace;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    box-shadow: 
        inset 2px 2px 0px rgba(255,255,255,0.5),
        inset -2px -2px 0px rgba(0,0,0,0.5),
        2px 2px 4px rgba(0,0,0,0.3);
}

.btn:hover {
    transform: translateY(1px);
    box-shadow: 
        inset 2px 2px 0px rgba(255,255,255,0.6),
        inset -2px -2px 0px rgba(0,0,0,0.6),
        1px 1px 2px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 
        inset 2px 2px 0px rgba(0,0,0,0.3),
        inset -2px -2px 0px rgba(255,255,255,0.3);
}

.btn-primary {
    background: linear-gradient(145deg, #0066cc, #003d7a);
    color: white;
    text-shadow: 1px 1px 0px #000;
}

.btn-primary:hover {
    background: linear-gradient(145deg, #0077dd, #004d8a);
}

.btn-secondary {
    background: linear-gradient(145deg, #555, #333);
    color: white;
    text-shadow: 1px 1px 0px #000;
}

.btn-secondary:hover {
    background: linear-gradient(145deg, #666, #444);
}

.btn-success {
    background: linear-gradient(145deg, #00aa44, #006622);
    color: white;
    text-shadow: 1px 1px 0px #000;
}

.btn-success:hover {
    background: linear-gradient(145deg, #00bb55, #007733);
}

.btn-danger {
    background: linear-gradient(145deg, #cc3333, #992222);
    color: white;
    text-shadow: 1px 1px 0px #000;
}

.btn-danger:hover {
    background: linear-gradient(145deg, #dd4444, #aa3333);
}

.help-text {
    margin-top: 15px;
    color: #aaa;
    font-style: normal;
    font-size: 0.6em;
    text-shadow: 1px 1px 0px #000;
}

.status {
    padding: 15px;
    margin-top: 20px;
    font-weight: bold;
    font-size: 0.7em;
    border: 3px solid;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.8);
    box-shadow: 
        inset 2px 2px 0px rgba(255,255,255,0.2),
        inset -2px -2px 0px rgba(0,0,0,0.6);
}

.status.success {
    background: linear-gradient(145deg, #00aa44, #006622);
    color: white;
    border-color: #004411;
}

.status.error {
    background: linear-gradient(145deg, #cc3333, #992222);
    color: white;
    border-color: #661111;
}

.status.info {
    background: linear-gradient(145deg, #0066cc, #003d7a);
    color: white;
    border-color: #002244;
}

.whitelist-display {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(145deg, #1a1a2a, #0f0f1f);
    border: 3px solid #333;
    border-left: 6px solid #00ff88;
    box-shadow: 
        inset 2px 2px 0px rgba(255,255,255,0.1),
        inset -2px -2px 0px rgba(0,0,0,0.6);
}

.whitelist-content {
    background: #000;
    color: #00ff88;
    padding: 15px;
    border: 2px solid #333;
    margin-top: 10px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.6em;
    white-space: pre-wrap;
    text-shadow: 0 0 8px #00ff88;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.8);
}

.whitelist-form {
    padding: 20px;
    background: linear-gradient(145deg, #1a1a2a, #0f0f1f);
    border: 3px solid #333;
    border-left: 6px solid #00aa44;
    box-shadow: 
        inset 2px 2px 0px rgba(255,255,255,0.1),
        inset -2px -2px 0px rgba(0,0,0,0.6);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #e0e0e0;
    font-size: 0.7em;
    text-shadow: 1px 1px 0px #000;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 3px solid #444;
    font-size: 0.8em;
    font-family: 'Press Start 2P', monospace;
    background: #111;
    color: #00ff88;
    transition: all 0.3s ease;
    box-shadow: 
        inset 2px 2px 0px rgba(0,0,0,0.8),
        inset -2px -2px 0px rgba(255,255,255,0.05);
}

.form-group input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 
        inset 2px 2px 0px rgba(0,0,0,0.8),
        inset -2px -2px 0px rgba(255,255,255,0.05),
        0 0 15px rgba(0, 255, 136, 0.4);
    text-shadow: 0 0 8px #00ff88;
}

.form-group input::placeholder {
    color: #555;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9em;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.output-section {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(145deg, #0f0f0f, #000);
    border: 3px solid #333;
    color: white;
    box-shadow: 
        inset 2px 2px 0px rgba(255,255,255,0.05),
        inset -2px -2px 0px rgba(0,0,0,0.8);
}

.output-content {
    background: #000;
    color: #00ff88;
    padding: 15px;
    border: 2px solid #333;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.6em;
    white-space: pre-wrap;
    border-left: 4px solid #00aa44;
    text-shadow: 0 0 5px currentColor;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.9);
}

.hidden {
    display: none;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    header p {
        font-size: 0.6em;
    }
    
    .section {
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        font-size: 0.6em;
    }
    
    .form-group input {
        font-size: 0.7em;
    }
}