/* Estilos personalizados para Control de Ingreso a Almacenes Menorca */

:root {
    --primary-color: #005f27; /* Color verde corporativo */
    --secondary-color: #ff6b6b; /* Color para botón colaborador */
    --tertiary-color: #ffc145; /* Color para botón proveedor */
    --text-color: #ffffff;
    --modal-bg: #ffffff;
    --input-bg: #e8f5e9;
    --btn-success: #00a04a;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Contenedor principal */
.home-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
}

/* Fondo con overlay */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/static/img/fondo_home.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo img {
    height: 50px;
}

/* Contenido principal para la página de inicio */
.home-container .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    margin: auto;  /*Centrar horizontalmente */
    max-width: 1200px; /* Limitar el ancho máximo */
    width: 100%;
}

.welcome-text {
    margin-bottom: 80px;
}

.welcome-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.welcome-text h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    letter-spacing: 2px;
}

.instruction-text {
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.action-buttons {
    display: flex;
    gap: 40px; /* Aumentar el espacio entre botones */
}

.btn-colaborador, .btn-proveedor {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
}

.btn-colaborador {
    background-color: var(--secondary-color);
    color: white;
}

.btn-proveedor {
    background-color: var(--tertiary-color);
    color: #333;
}

.btn-colaborador:hover, .btn-proveedor:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Estilos para los modales */
.modal-content {
    border-radius: 10px;
    border: none;
    overflow: hidden;
    max-height: 90vh; /* Limitar la altura máxima del modal */
}

.modal-header {
    border-bottom: none;
    padding: 20px 20px 10px;
}

.modal-title {
    width: 100%;
    text-align: center;
}

.modal-title-main {
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
}

.modal-title-sub {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.modal-body {
    padding: 5px 20px 15px;
    overflow-y: auto; /* Permitir scroll dentro del cuerpo del modal */
    max-height: calc(90vh - 60px); /* Altura máxima para el cuerpo del modal */
}

/* Ajustes para hacer el formulario más compacto */
.modal-body .mb-3 {
    margin-bottom: 0.75rem !important; /* Reducir el espacio entre grupos de formulario */
}

.modal-body .form-label {
    margin-bottom: 0.25rem; /* Reducir el espacio debajo de las etiquetas */
    font-size: 0.9rem; /* Reducir ligeramente el tamaño de la fuente */
}

.form-control, .form-select {
    background-color: var(--input-bg);
    border: none;
    padding: 8px 12px; /* Reducir el padding interno */
    border-radius: 5px;
    height: calc(2rem + 2px); /* Altura más pequeña para inputs */
    font-size: 0.9rem; /* Texto ligeramente más pequeño */
}

.btn-success {
    background-color: var(--btn-success);
    border-color: var(--btn-success);
    padding: 8px 12px; /* Reducir el padding */
    font-weight: 600;
    border-radius: 5px;
    font-size: 0.95rem; /* Texto ligeramente más pequeño */
}

.btn-success:hover {
    background-color: #008f42;
    border-color: #008f42;
}

/* Estilos responsivos */
@media (max-width: 1200px) {
    .home-container .main-content {
        padding: 0 40px;
    }
    
    .welcome-text {
        margin-bottom: 60px;
    }
}

@media (max-width: 992px) {
    .welcome-text h1 {
        font-size: 2.2rem;
    }
    
    .welcome-text h2 {
        font-size: 2.6rem;
    }
    
    .welcome-text {
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .home-container .main-content {
        padding: 0 20px;
    }
    
    .welcome-text h1 {
        font-size: 1.8rem;
    }
    
    .welcome-text h2 {
        font-size: 2.2rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 300px;
    }
    
    .btn-colaborador, .btn-proveedor {
        width: 100%;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .welcome-text {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .welcome-text h1 {
        font-size: 1.5rem;
    }
    
    .welcome-text h2 {
        font-size: 1.8rem;
    }
    
    .instruction-text {
        font-size: 1rem;
    }
    
    .welcome-text {
        margin-bottom: 30px;
    }
}
