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

body {
    font-family: 'Courier New', Courier, monospace;
    background: #0a0e27;
    color: #00ff00;
    min-height: 100vh;
    padding: 20px;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 0, 0.03) 2px, rgba(0, 255, 0, 0.03) 4px);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #000000;
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

header {
    background: #001a00;
    color: #00ff00;
    padding: 20px;
    border-bottom: 2px solid #00ff00;
}

header h1 {
    font-size: 1.5em;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

header h1::before {
    content: "root@flag-extract0r:~# ";
    color: #00cc00;
}

.subtitle {
    font-size: 0.85em;
    color: #00cc00;
    margin-left: 20px;
}

.subtitle::before {
    content: "> ";
}

main {
    padding: 20px;
}

.info-box {
    background: #001100;
    border: 1px solid #003300;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.info-box h2, .info-box h3 {
    color: #00ff00;
    font-size: 1em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.info-box h2::before {
    content: "[+] ";
}

.info-box h3::before {
    content: "[*] ";
}

.info-box p {
    line-height: 1.6;
    color: #00dd00;
    margin-bottom: 8px;
}

.info-box.technical {
    background: #110000;
    border-color: #330000;
}

.info-box.technical ul {
    list-style: none;
    padding-left: 0;
}

.info-box.technical li {
    padding: 5px 0;
    color: #00dd00;
}

.info-box.technical li::before {
    content: "  - ";
    color: #00ff00;
}

.warning {
    color: #ff0000;
    font-weight: bold;
}

.warning::before {
    content: "[!] ";
}

.hint {
    margin-top: 10px;
    padding: 10px;
    background: #001a00;
    border-left: 3px solid #00ff00;
    font-size: 0.85em;
}

.form-container {
    background: #001100;
    padding: 20px;
    border: 1px solid #003300;
    margin-bottom: 20px;
}

.form-container h2 {
    color: #00ff00;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1em;
}

.form-container h2::before {
    content: "$ ";
}

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

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #00ff00;
    font-size: 0.9em;
}

.form-group label::before {
    content: "> ";
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #00ff00;
    background: #000000;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}

.form-group input:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.form-group input::placeholder {
    color: #006600;
}

.form-group small {
    display: block;
    margin-top: 3px;
    color: #00aa00;
    font-size: 0.8em;
}

.button-group {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: 2px solid #00ff00;
    background: #000000;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn:hover {
    background: #00ff00;
    color: #000000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.btn-primary {
    flex: 1;
}

.btn-secondary {
    border-color: #00aa00;
    color: #00aa00;
}

.btn-secondary:hover {
    background: #00aa00;
    color: #000000;
}

.result {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #00ff00;
    background: #001100;
    animation: blink-border 1s;
}

@keyframes blink-border {
    0%, 50%, 100% { border-color: #00ff00; }
    25%, 75% { border-color: #00aa00; }
}

.result.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 15px;
    color: #00ff00;
    font-size: 0.95em;
}

.loading::before {
    content: "[*] ";
}

.success {
    border-color: #00ff00;
}

.success h3 {
    margin-bottom: 10px;
    color: #00ff00;
}

.success h3::before {
    content: "[+] ";
}

.error {
    border-color: #ff0000;
    background: #110000;
}

.error h3 {
    margin-bottom: 10px;
    color: #ff0000;
}

.error h3::before {
    content: "[!] ";
}

.error p {
    color: #ff6666;
}

.details {
    margin-top: 10px;
    padding: 10px;
    background: #000000;
    border-left: 2px solid #00ff00;
    font-size: 0.85em;
}

.details p {
    margin: 5px 0;
    color: #00dd00;
}

.details strong {
    color: #00ff00;
}

.details pre {
    background: #000000;
    color: #00ff00;
    padding: 10px;
    border: 1px solid #003300;
    overflow-x: auto;
    margin-top: 8px;
    font-size: 0.85em;
}

.details table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.85em;
}

.details table th,
.details table td {
    padding: 6px;
    text-align: left;
    border-bottom: 1px solid #003300;
    color: #00dd00;
}

.details table th {
    color: #00ff00;
    font-weight: bold;
    background: #001100;
}

.capture-hint {
    margin-top: 10px;
    padding: 10px;
    background: #001a00;
    border-left: 3px solid #00ff00;
}

.capture-hint::before {
    content: "[!] ";
    color: #00ff00;
    font-weight: bold;
}

footer {
    background: #001a00;
    color: #00cc00;
    text-align: center;
    padding: 15px;
    font-size: 0.8em;
    border-top: 2px solid #00ff00;
}

footer::before {
    content: "# ";
}

/* Terminal cursor effect */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Scanline effect */
.container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.2em;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
