/* --------------------------
   Global
-------------------------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 40px 0;
    overflow-y: auto;
}

/* --------------------------
   Containers
-------------------------- */
.container {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    width: 450px;
    max-width: 90%;
    text-align: center;
}

h1 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #00bfff;
}

h2 {
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: normal;
}

/* --------------------------
   Notices
-------------------------- */
#maxUploadNotice {
    margin: 15px 0;
    padding: 12px;
    background-color: #ff4d4d;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
}

/* --------------------------
   Inputs & Buttons
-------------------------- */
input,
button {
    margin: 10px 0;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #2c2c2c;
    color: #e0e0e0;
    font-size: 1rem;
}

input[type="file"]::-webkit-file-upload-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #0056b3;
}

button {
    background: #28a745;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #1e7e34;
}

/* --------------------------
   Progress bar
-------------------------- */
#progressContainer {
    margin-top: 15px;
    height: 20px;
    width: 100%;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
}

#progressBar {
    height: 100%;
    width: 0%;
    background: #00ff99;
    transition: width 0.2s ease;
}

/* --------------------------
   Links
-------------------------- */
#linkContainer {
    margin-top: 15px;
    word-break: break-word;
}

a {
    color: #00bfff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --------------------------
   CLI instructions
-------------------------- */
.cli-instructions {
    margin-top: 25px;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cli-instructions code {
    display: block;
    background-color: #2c2c2c;
    padding: 8px 10px;
    margin: 8px 0;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* --------------------------
   Logo
-------------------------- */
.logo {
    display: block;
    margin: 0 auto 20px auto;
    width: 45%;
    height: auto;
}

/* --------------------------
   Decrypt page tweaks
-------------------------- */
.decrypt-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* separación entre input y botón */
    margin-top: 20px;
    flex-wrap: wrap; /* que no rompa en móvil */
}

.decrypt-container input[type="password"] {
    flex: 1 1 200px; /* crece según espacio disponible, mínimo 200px */
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #2c2c2c;
    color: #e0e0e0;
    font-size: 1rem;
}

.decrypt-container button {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    background: #28a745;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.decrypt-container button:hover {
    background: #1e7e34;
}

/* --------------------------
   Cooldown message (main.js)
-------------------------- */
#cooldownMessage {
    color: yellow;
    margin-top: 10px;
}

/* --------------------------
   Responsive tweaks
-------------------------- */
@media (max-width: 500px) {
    .container {
        width: 90%;
        padding: 20px;
    }

    input, button {
        width: 100%;
    }

    .decrypt-container {
        flex-direction: column;
        gap: 10px;
    }
}
