﻿:root {
    --primary-color: #0d6efd;
    --sidebar-width: 240px;
    --red-banner: #dc3545;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background-color: #f4f6f9;
}

/* Pantalla de Login */
.login-container {
    max-width: 380px;
    margin: 100px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

    .login-container h2 {
        text-align: center;
        color: #333;
        margin-bottom: 20px;
    }

/* Encabezado Principal */
.app-header {
    background: #007bff;
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-btn {
    font-size: 26px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Menú Lateral Deslizable */
.sidebar {
    height: 100vh;
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: calc(-1 * var(--sidebar-width));
    background-color: #ffffff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    transition: 0.3s;
    z-index: 1000;
}

    .sidebar.open {
        left: 0;
    }

    .sidebar ul {
        list-style: none;
        padding: 0;
        margin-top: 50px;
    }

    .sidebar li a {
        display: block;
        padding: 16px 20px;
        font-size: 18px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #eee;
    }

        .sidebar li a.active, .sidebar li a:hover {
            background-color: #fd7e14;
            color: white;
        }

.main-content {
    padding: 15px;
    max-width: 950px;
    margin: 0 auto;
}

/* Banner de Referencia */
.banner-ref {
    background-color: var(--red-banner);
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 12px;
    font-size: 18px;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Grilla para Formulario */
.grid-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    align-items: start !important; /* Evita que los elementos se estiren hacia abajo */
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group.full-width {
        grid-column: span 2;
    }

label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: #444;
}

input[type="text"], input[type="password"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.input-scan {
    background-color: #fff9c4;
    font-weight: bold;
}

/* Estilos de Botones y Corrección de Tamaño */
.btn-group {
    grid-column: span 2;
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    flex: 1;
    height: 55px !important; /* Altura fija */
    max-height: 55px !important; /* Evita estiramiento vertical */
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #6c757d;
    color: white;
}

.btn-success {
    background-color: #198754;
}

.btn-primary {
    background-color: #0d6efd;
}

/* Tabla */
.table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #e9ecef;
}
