/* ==========================================================
   CONFIGURACIÓN RÁPIDA DE FONDO
   Aquí puedes cambiar fácilmente el color o poner una imagen 
   ========================================================== */
body {
    font-family: Arial, sans-serif;
    
    /* OPCIÓN 1: Cambia este código de color por el que quieras */
    background-color: #e6f4ea; 

    /* OPCIÓN 2: Si prefieres una imagen de fondo, descomenta las líneas de abajo 
       y cambia 'tu-imagen.jpg' por el nombre de tu archivo de imagen: */
    /* background-image: url('tu-imagen.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* background-repeat: no-repeat; */
    /* background-attachment: fixed; */

    margin: 0;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Contenedor en fila para mantener el orden */
.contenedor-principal {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
}

/* ==========================================
   ESTILOS PARA EL MENÚ PRINCIPAL
   ========================================== */
.tarjeta-menu-principal {
    background-color: #f4f3e6;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 320px;
    position: relative;
}

.tarjeta-menu-principal h1 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 22px;
}

.contenedor-botones-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-menu {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 8px;
    display: block;
    transition: opacity 0.2s;
}

.btn-menu:hover {
    opacity: 0.9;
}

.btn-clientes { background-color: #0288d1; }
.btn-compras { background-color: #388e3c; }
.btn-productos { background-color: #f57c00; }


/* ==========================================
   TARJETA DEL FORMULARIO Y CAMPOS
   ========================================== */
.formulario {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    width: 340px;
    position: relative;
    padding-bottom: 60px;
}

.formulario h2 {
    margin-top: 0;
    color: #2c3e50;
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

/* Estilo para los campos del formulario */
.grupo-input {
    margin-bottom: 15px;
}

.grupo-input label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.formulario input[type="text"],
.formulario input[type="date"],
.formulario input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #fff;
}

/* Logo en la esquina inferior izquierda de la tarjeta */
.logo-esquina-tarjeta {
    position: absolute;
    bottom: 15px;
    left: 20px;
    width: 60px;
    height: auto;
}

/* Contenedor de botones alineados abajo */
.botones {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
}

.formulario input[type="submit"] {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.formulario input[type="submit"]:hover {
    background-color: #2980b9;
}

.formulario input[type="submit"][value="Eliminar"] {
    background-color: #e74c3c;
}

.formulario input[type="submit"][value="Actualizar"] {
    background-color: #f39c12;
}

/* Botón Regresar */
.btn-navegacion-form {
    background-color: #757575;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-navegacion-form:hover {
    background-color: #616161;
}


/* ==========================================
   ESTILOS DE LA TABLA DE RESULTADOS
   ========================================== */
.area-tabla {
    background: #ffe4e1;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 450px;
    overflow-y: auto;
}

.tabla-resultados {
    border-collapse: collapse;
    width: 100%;
}

.tabla-resultados th, .tabla-resultados td {
    padding: 8px 12px;
    font-size: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tabla-resultados th {
    background-color: #f4f6f7;
    color: #2c3e50;
}