/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FONDO GENERAL */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    color: #212121;
    padding: 10px;
}

/* TARJETAS GENERALES */
.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin: 1rem auto;
    max-width: 100%;
    width: 100%;
}

/* CABECERAS DE SECCIÓN */
.card h2,
.card h3 {
    margin-bottom: 1rem;
    text-align: center;
    color: #333;
}

/* INPUTS Y SELECTS */
label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    font-size: 15px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-top: 6px;
    background-color: #fafafa;
    font-size: 14px;
}

/* TEXTAREA */
textarea {
    resize: vertical;
    min-height: 90px;
}

/* BOTÓN PRINCIPAL */
button.submit,
a.boton-verde {
    background-color: #45a029;
    color: white;
    padding: 14px;
    font-size: 16px;
    width: 100%;
    margin-top: 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: background 0.3s ease;
}

button.submit:hover,
a.boton-verde:hover {
    background-color: #388f25;
}

/* INPUT CON ÍCONO */
.input-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    background-color: #f1f1f1;
    border-radius: 10px;
    padding: 8px 12px;
}

.input-icon img {
    width: 24px;
    height: 24px;
}

/* RESPONSIVO MÓVIL */
@media screen and (max-width: 600px) {
    .card {
        padding: 1rem;
        border-radius: 0;
        box-shadow: none;
    }

    input,
    select,
    textarea {
        font-size: 15px;
    }

    button,
    a.boton-verde {
        font-size: 16px;
        padding: 12px;
    }

    .input-icon {
        flex-direction: row;
    }

    .input-icon img {
        width: 20px;
    }
}

/* MENSAJES DE ERROR */
.error {
    color: red;
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}
/* CONTENEDOR PRINCIPAL FLEX */
.dashboard-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

/* COLUMNA IZQUIERDA: SALDOS Y GRAFICOS */
.col-izquierda {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

/* COLUMNA DERECHA: FORMULARIO */
.col-derecha {
    flex: 1;
    min-width: 320px;
    max-width: 600px;
}
