@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* Reset y base */
*,
::after,
::before {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f8f9fa;
}

/* Títulos */
h3 {
    font-size: 1.2rem;
    color: #ffffff;
}

/* Enlaces y listas */
a {
    cursor: pointer;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    color: inherit;
}

li {
    list-style: none;
}

/* Layout principal */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* SIDEBAR */
#sidebar {
    width: 264px;
    height: 100vh;
    background-color: #0b1f3a;
    color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1111;
    transition: all 0.35s ease-in-out;
    overflow-y: auto;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.2);
}

#sidebar.collapsed {
    margin-left: -264px;
}

.sidebar-logo {
    padding: 1rem 1.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.sidebar-logo h5 {
    font-size: 1rem;
    margin: 0;
    color: #ced4da;
}

/* Navegación sidebar */
.sidebar-nav {
    padding: 0;
    margin-top: 1rem;
}

.sidebar-header {
    color: #adb5bd;
    font-size: 0.75rem;
    padding: 1rem 1.5rem 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Links principales */
a.sidebar-link {
    padding: 0.75rem 1.625rem;
    color: #dee2e6;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
    border-radius: 4px 0 0 4px;
}

a.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #0d6efd;
    border-left: 3px solid #0d6efd;
}

a.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: #0d6efd !important;
    font-weight: 600;
    border-left: 3px solid #0d6efd;
    box-shadow: inset 4px 0 8px rgba(13, 110, 253, 0.4);
}

/* Ícono de colapsable */
.sidebar-link[data-bs-toggle="collapse"]::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: translateY(-50%) rotate(-90deg);
}

/* Submenús */
.sidebar-dropdown .sidebar-item .sidebar-link {
    padding-left: 2.5rem;
    font-size: 0.9rem;
    color: #ced4da;
    border-left: 3px solid transparent;
    border-radius: 4px 0 0 4px;
}

.sidebar-dropdown .sidebar-item .sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #0d6efd;
    border-left: 3px solid #0d6efd;
}

.sidebar-dropdown .sidebar-item .sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: #0d6efd;
    font-weight: 600;
    border-left: 3px solid #0d6efd;
    box-shadow: inset 4px 0 8px rgba(13, 110, 253, 0.25);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 264px;
    right: 0;
    height: 56px;
    background-color: #ffffff;
    z-index: 1200;
    transition: left 0.35s ease-in-out;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

#sidebar.collapsed ~ .main .navbar {
    left: 0;
}

/* MAIN */
.main {
    margin-left: 264px;
    margin-top: 56px;
    transition: margin-left 0.35s ease-in-out;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

#sidebar.collapsed ~ .main {
    margin-left: 0;
}

/* CONTENIDO */
.content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 56px);
}

/* NAVBAR BRAND */
.navbar-brand img {
    height: 40px;
}

.navbar-brand span {
    font-size: 1.1rem;
    color: #0b1f3a;
    font-weight: 600;
}

/* FOOTER */
footer {
    background-color: #f1f3f5;
    padding: 1rem 0;
    font-size: 0.85rem;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar {
        left: 0 !important;
    }

    .main {
        margin-left: 0 !important;
    }

    #sidebar {
        margin-left: -264px;
    }

    #sidebar.collapsed {
        margin-left: 0;
    }
}

/* MODALES Y SWEETALERT */
.modal {
    z-index: 1300 !important;
}

.modal-backdrop {
    z-index: 1290 !important;
}

.swal2-container {
    z-index: 1400 !important;
}

/* BOTÓN DE LOGIN */
.btn-custom-login {
    background-color: #032688;
    color: white;
    border: none;
}

.btn-custom-login:hover {
    background-color: #0b1f3a;
    color: white;
}

.logo-small {
    max-width: 150px;
    height: auto;
}

aside#sidebar ul.collapse li a.nav-link {
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
  border-radius: 6px;
}


aside#sidebar ul.collapse li a.nav-link:hover {
  background-color: rgba(13, 110, 253, 0.1); 
  color: #0d6efd !important; 
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

aside#sidebar ul.collapse li a.nav-link.text-info.fw-semibold {
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd !important;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
  border-radius: 6px;
}
.profile-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent; 
    
}