/* Estilos Base */
body {
    background: linear-gradient(135deg, #121212, #1e1e1e);
    color: #e0e0e0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0; /* Asegura que no haya márgenes externos */
}

/* Contenedor Principal */
.decrypt-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 60px 20px; /* Padding ajustado para móviles y desktop */
    box-sizing: border-box;
}

/* Tarjeta del Tool */
.decrypt-card {
    background: #1b1b1b;
    border-radius: 20px;
    padding: 40px 50px;
    width: 100%; /* Ajuste a 100% para mejor responsividad */
    max-width: 800px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    transition: transform 0.2s ease-in-out;
}

    .decrypt-card:hover {
        transform: translateY(-4px);
    }

/* Tipografía */
.title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Contenedor de formulario (Añadido para mejor espaciado) */
.form-group {
    margin-bottom: 25px;
}

/* Entrada de Texto (El XML) */
.xml-input {
    background: #0f0f0f;
    color: #d1d5db;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    font-family: Consolas, monospace;
    font-size: 0.95rem;
    resize: vertical;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
    transition: border 0.2s ease-in-out;
    /* Estilos para que se vea bien en la UI: */
    width: 100%; /* ¡Importante! Ocupa todo el ancho */
    display: block;
    box-sizing: border-box; /* Incluye padding y borde en el 100% */
    margin: 0;
}

    .xml-input:focus {
        border: 1px solid #4f46e5;
        outline: none;
        box-shadow: 0 0 0 3px rgba(79,70,229,0.5); /* Sombra de enfoque mejorada */
    }

/* Botón de Acción */
.btn-container {
    text-align: center; /* Reemplaza a 'text-center' de Bootstrap */
    margin-top: 25px; /* Reemplaza a 'mt-4' de Bootstrap */
    margin-bottom: 10px; /* Espacio antes del resultado */
}

.btn-decrypt {
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    color: #fff;
    font-weight: 600;
    padding: 14px 40px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(99,102,241,0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .btn-decrypt:hover {
        background: linear-gradient(90deg, #6366f1, #4f46e5);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(99,102,241,0.6);
    }

/* Caja de Resultado */
.result-box {
    background: #111;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #333;
    margin-top: 25px; /* Reemplaza a 'mt-4' de Bootstrap */
    text-align: center;
}

.result-box h4 {
    margin-top: 0; /* Resetea el margen superior */
    margin-bottom: 10px;
    color: #22c55e;
}

.result-box p {
    color: #d1d5db;
    font-size: 0.95rem;
    margin: 0;
}