html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Sidebar */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    min-height: 100vh;
    transition: all 0.3s ease;
    z-index: 1000;
}

#sidebar.active {
    margin-left: -250px;
}

/* Para pantallas pequeñas, el sidebar se oculta por defecto y se muestra como overlay */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }

        #sidebar.active {
            margin-left: 0;
        }
    /* Overlay oscuro al abrir sidebar en móvil */
    #sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    #sidebar-overlay.active {
        display: block;
    }
}

/* Estilo para navbar */
.navbar {
    padding: 0.5rem 1rem;
}

/* Estilo para el contenedor de perfil */
#profileImageContainer {
    transition: all 0.3s ease;
}

/* Si quieres que el círculo de iniciales sea más llamativo */
#initialsPlaceholder {
    font-family: 'Arial', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Estilos para sidebar */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh; /* altura mínima = toda la ventana */
    align-items: stretch;
}

#content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh; /* opcional, pero ayuda */
}

    /* El contenedor principal de la página (donde va el contenido) debe crecer */
    #content .container-fluid {
        flex: 1 0 auto; /* crece para ocupar el espacio disponible */
        padding: 1.5rem; /* mantén tu padding existente */
    }

/* El footer no debe encogerse */
.footer {
    flex-shrink: 0;
    margin-top: auto; /* si el contenido es corto, lo empuja al final */
}

/* Ajuste para pantallas pequeñas (opcional) */
@media (max-width: 768px) {
    .wrapper {
        min-height: 100vh;
    }
}

/* En site.css */
.toggle-password {
    border-left: 0;
    background-color: #fff;
}

.toggle-password:hover {
    background-color: #f8f9fa;
}

/* En modo oscuro */
body.dark-theme .toggle-password {
    background-color: #2a2a4a;
    color: #e0e0e0;
   border-color: #444;
}

body.dark-theme .toggle-password:hover {
    background-color: #3a3a5a;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

body.dark-theme .hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-color: #444;
}

/* Módulos */
.modules-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

body.dark-theme .modules-section .card {
    background-color: #16213e;
}

.modules-section .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

body.dark-theme .modules-section .card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.5) !important;
}

.modules-section .card .display-4 {
    font-size: 3.5rem;
    line-height: 1.2;
}

/* Estadísticas */
.stat-item {
    padding: 1rem;
}

    .stat-item .display-3 {
        font-weight: 700;
        font-size: 3rem;
    }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    margin-top: 2rem;
}

body.dark-theme .cta-section {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .stat-item .display-3 {
        font-size: 2rem;
    }

    .modules-section .card .display-4 {
        font-size: 2.5rem;
    }
}