/* Custom CSS para RGD AIRE */

/* Variables CSS para colores consistentes */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Estilos generales */
body {
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Estilos para el logo en el header */
.logo-header {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    /* Prevenir el salto de tamaño durante la carga */
    display: inline-block;
    vertical-align: middle;
}

/* Prevenir que el logo se muestre muy grande antes de cargar CSS */
img.logo-header {
    /* Tamaño inicial para evitar el flash de contenido sin estilo */
    max-height: 60px;
    max-width: 200px;
}

/* Estilos para el logo en el navbar (si se necesita) */
.logo-navbar {
    height: 20px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

/* Estilos para tarjetas */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Estilos para botones */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-group .btn {
    margin-right: 0.25rem;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Estilos para formularios */
.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Estilos para tablas */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0, 0, 0, 0.025);
}

/* Estilos para alertas */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Estilos para badges */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

/* Estilos para modales */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Estilos para el dashboard */
.dashboard-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4c84ff 100%);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.dashboard-card .card-body {
    padding: 0;
}

.dashboard-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    opacity: 0.9;
    margin-bottom: 0;
}

/* Estilos para iconos */
.fas, .far {
    margin-right: 0.25rem;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
    
    .btn-group .btn:last-child {
        margin-bottom: 0;
    }
}

/* Estilos para el loading/spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Estilos para breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--secondary-color);
}

/* Estilos para enlaces */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Estilos para el footer */
footer {
    margin-top: auto;
    background-color: var(--light-color);
    border-top: 1px solid #dee2e6;
}

/* Utilidades adicionales */
.text-muted {
    color: var(--secondary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.rounded {
    border-radius: 0.375rem !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}