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

body { 
    background: #000000; 
    color: #00ff41; 
    font-family: 'Courier New', Courier, monospace; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    margin: 0;
    overflow: hidden;
}

/* Efecto de scanlines */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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;
    z-index: 1000;
    opacity: 0.3;
}

/* Efecto de glow en toda la terminal */
.terminal-window {
    background: #0a0a0a;
    width: 100%;
    max-width: 520px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        0 0 40px rgba(0, 255, 65, 0.3),
        0 0 80px rgba(0, 255, 65, 0.15),
        inset 0 0 60px rgba(0, 255, 65, 0.05);
    border: 2px solid #00ff41;
    position: relative;
}

/* Barra de título de la terminal */
.terminal-header {
    background: #0d0d0d;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00ff41;
    box-shadow: 0 2px 10px rgba(0, 255, 65, 0.2);
}

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

.dot { 
    width: 13px; 
    height: 13px; 
    border-radius: 50%;
    box-shadow: 0 0 5px currentColor;
}
.red { background: #ff3b30; }
.yellow { background: #ffcc00; }
.green { background: #00ff41; box-shadow: 0 0 10px #00ff41; }

.terminal-title {
    color: #00ff41;
    font-size: 0.9em;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
    font-weight: bold;
}

/* Contenido interior de la terminal */
.terminal-body {
    padding: 35px;
    background: #000000;
}

.prompt { 
    color: #00ff41; 
    margin-right: 8px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.7);
}

.cmd-text { 
    color: #00ff41; 
    margin-bottom: 30px; 
    display: block;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
    font-size: 0.95em;
}

h2 { 
    text-align: center; 
    margin-top: 0; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    font-size: 1.5em; 
    color: #00ff41; 
    margin-bottom: 35px;
    text-shadow: 
        0 0 10px rgba(0, 255, 65, 0.8),
        0 0 20px rgba(0, 255, 65, 0.5),
        0 0 30px rgba(0, 255, 65, 0.3);
}

.input-group { 
    margin-bottom: 22px; 
}

label { 
    display: block; 
    margin-bottom: 8px; 
    font-size: 0.9em; 
    color: #00ff41;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    letter-spacing: 1px;
}

input { 
    width: 100%; 
    padding: 14px; 
    background: #000000; 
    color: #00ff41; 
    border: 2px solid #003d1a; 
    font-family: inherit; 
    transition: all 0.3s; 
    border-radius: 4px; 
    font-size: 1em;
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.1);
}

input:focus { 
    outline: none; 
    border-color: #00ff41;
    box-shadow: 
        0 0 15px rgba(0, 255, 65, 0.4),
        inset 0 0 15px rgba(0, 255, 65, 0.2);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

input::placeholder {
    color: #004d20;
}

button { 
    background: #00ff41; 
    color: #000; 
    font-weight: bold; 
    cursor: pointer; 
    padding: 16px; 
    width: 100%; 
    border: 2px solid #00ff41; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    transition: all 0.3s; 
    margin-top: 20px; 
    border-radius: 4px; 
    font-size: 1.05em;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3);
}

button:hover { 
    background: #00cc33; 
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.8),
        0 5px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button:disabled { 
    background: #001a0d; 
    color: #003d1a; 
    cursor: not-allowed;
    border-color: #003d1a;
    box-shadow: none;
}

#console-output { 
    margin-top: 30px; 
    font-size: 0.9em; 
    min-height: 25px; 
    word-wrap: break-word; 
    color: #00ff41; 
    border-top: 2px solid #003d1a; 
    padding-top: 20px;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
    line-height: 1.6;
}

/* Cursor parpadeante */
.cursor { 
    display: inline-block; 
    width: 10px; 
    height: 18px; 
    background: #00ff41; 
    animation: blink 1s infinite; 
    margin-left: 3px; 
    vertical-align: middle;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

@keyframes blink { 
    0%, 49% { opacity: 1; } 
    50%, 100% { opacity: 0; } 
}

/* Efecto de texto en error */
.error-text {
    color: #ff3b30;
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.8);
}

/* Efecto de texto en éxito */
.success-text {
    color: #00ff41;
    text-shadow: 
        0 0 10px rgba(0, 255, 65, 0.8),
        0 0 20px rgba(0, 255, 65, 0.5);
}
/* Estilos del Modal */
.modal-overlay {
    display: none; 
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(4px); 
    z-index: 2000;
    justify-content: center; 
    align-items: center;
}

.modal-content {
    background: #050505; 
    border: 2px solid #00ff41; 
    padding: 30px; 
    max-width: 480px; 
    width: 90%;
    border-radius: 8px; 
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.3); 
    text-align: left;
}

.btn-modal {
    background: #00ff41;
    color: #000;
    border: none;
    padding: 10px 20px;
    margin-top: 25px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
}

.btn-modal:hover {
    background: #00cc33;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
}
