/* Estilos generales de layout */
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 56px; /* Altura del navbar */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1050 !important; /* Mayor que cualquier otro elemento */
    background: linear-gradient(135deg, #004e92 0%, #000428 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contenedor principal */
.main-content {
    flex: 1 0 auto;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
    margin-top: 1rem;
}

/* Footer */
footer {
    flex-shrink: 0;
    position: relative;
    z-index: 1020;
    margin-top: auto;
    padding: 1.5rem 0;
    background: #f8f9fa;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

/* Modales y dropdowns */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1054 !important;
}

.dropdown-menu {
    z-index: 1051 !important;
}

/* Sidebar */
.sidebar {
    z-index: 1040;
    position: fixed;
    top: 56px; /* Altura del navbar */
    height: calc(100vh - 56px);
    overflow-y: auto;
}

/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
    body {
        padding-top: 56px;
    }
    
    .sidebar {
        top: 56px;
    }
    
    .main-content {
        margin-top: 0.5rem;
    }
}

/* Notificaciones y toasts */
.notification-toast {
    position: fixed;
    top: 70px; /* Debajo del navbar */
    right: 20px;
    z-index: 1060;
}
