/* Fondo moderno y semitransparente */
body {
    background: linear-gradient(rgba(255, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://wallpapers.com/images/hd/red-4k-uhd-triangle-abstract-ggxci33tz3zi3gfh.jpg")
    no-repeat center center fixed;
    background-size: cover;
    font-family: 'Arial', sans-serif;
    opacity: 0.9;
    color: white;
}

/* Encabezado del simulador */
h1 {
    text-align: center;
    font-weight: bold;
    color: #fff;
}

/* Diseño del formulario */
.form {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 50px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

label {
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    color: #f0f0f0;
}

input[type="text"] {
    width: 90%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
}

input:focus {
    outline: none;
    box-shadow: 0px 0px 8px #00e676;
}

/* Botón dinámico */
button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #857e7e;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #e32424;
}

/* Tabla de resultados */
.table-container {
    margin-top: 30px;
    margin-bottom: 50px;
    overflow-x: auto;
}

.tab {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    text-align: center;
    font-size: 16px;
}

thead {
    background-color: #ffffff;
    color: #000000;
}

th, td {
    padding: 10px;
    border: 2px solid #000000;
}

tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.2);
}

tfoot {
    background-color: #ffffff;
    color: #000000;
    font-weight: bold;
}

/* Totales destacados */
#t1, #t2 {
    font-weight: bold;
    color: #000000;
}

/* Totales destacados */
#t3 {
    font-weight: bold;
    color: #e32424;
}

/* Animaciones */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.fade-in {
    animation: fadeIn 700ms;
}

/* Icono de GitHub */
.github-icon-container {
    text-align: center;
    margin-top: 30px;
}

.github-icon {
    font-size: 40px;
    color: white;
    transition: transform 0.3s, color 0.3s;
}

.github-icon:hover {
    transform: scale(1.2);
    color: #00a884;
}
/* Estilizado para el campo de fecha */
input[type="date"] {
    width: 90%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background-color: #fff;
    color: #000;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

input[type="date"]:focus {
    outline: none;
    background-color: #e8ffe8;
    box-shadow: 0 0 8px #00e676;
}

input[type="date"]::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Ajuste al ícono del campo de fecha */
label i {
    margin-left: 5px;
    color: #00a884;
    font-size: 18px;
    vertical-align: middle;
}

label:hover i {
    color: #004d40;
}