/* ========================================
   ESTILOS DEL SIDEBAR / MENÚ
   ======================================== */

/* Sidebar principal - color de fondo y borde derecho */
.main-sidebar {
    background-color: #071739 !important;
    border-right: 4px solid rgb(201, 162, 98) !important;
}

/* Links del menú en blanco */
.main-sidebar .nav-link,
.main-sidebar .nav-link p,
.main-sidebar .nav-link i,
.main-sidebar .brand-text,
.main-sidebar .user-panel .info a,
.main-sidebar .nav-header {
    color: #ffffff !important;
}

/* Hover en los items del menú */
.main-sidebar .nav-link:hover {
    background-color: rgba(201, 162, 98, 0.2) !important;
}

/* Item activo del menú */
.main-sidebar .nav-link.active {
    background-color: rgba(201, 162, 98, 0.3) !important;
    border-left: 3px solid rgb(201, 162, 98) !important;
}

/* Brand link */
.main-sidebar .brand-link {
    border-bottom: 1px solid rgba(201, 162, 98, 0.3) !important;
}

/* Submenú abierto */
.main-sidebar .nav-treeview .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

.main-sidebar .nav-treeview .nav-link:hover {
    color: #ffffff !important;
}

/* ========================================
   Color primario reutilizable
   ======================================== */
.btn-primary-custom {
    background-color: #071739;
    border-color: rgb(30 58 138);
    color: #ffffff;
}

.btn-primary-custom:hover {
    background-color:#071739;
    border-color: rgb(23 44 105);
    color: #ffffff;
}

/* Input password con icono */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 40px; /* Espacio para el ojo */
}

.password-wrapper i {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
}

.password-strength {
    height: 5px;
    border-radius: 5px;
    margin-top: 5px;
    transition: all 0.3s ease;
    background-color: #e9ecef;
}

.password-strength.weak {
    background-color: #dc3545;
    width: 33%;
}

.password-strength.medium {
    background-color: #ffc107;
    width: 66%;
}

.password-strength.strong {
    background-color: #28a745;
    width: 100%;
}

.password-requirements {
    font-size: 0.85em;
    color: #6c757d;
    padding-left: 18px;
}

.password-requirements li {
    margin-bottom: 3px;
}

.password-requirements li.valid {
    color: #28a745;
}

.password-requirements li.valid i {
    color: #28a745;
}

/* Utilities */
.text-end {
    text-align: right !important;
}
