/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #f4f4f4;
}

/* Estilos del header */
.custom-header {
    background-color: #0D4E9D;
    color: white;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    margin-left: 50px;
}

.header-logo {
    height: 70px;
    margin-right: 50px;
}

.header-title {
    font-size: 22px;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
}

.profile-pic {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.user-name {
    margin-right: 20px;
    font-weight: bold;
}

.logout-btn {
    background-color: #F9CC10;
    color: #0D4E9D;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-right: 20px;
}

.logout-btn:hover {
    background-color: #eab308;
}



/* Estilos del menú lateral */
.sidebar {
    background-color: #0D4E9D;
    width: 250px;
    min-height: 100vh;
    position: fixed;
    top: 70px;
    transition: width 0.3s;
    z-index: 10;
    color: white;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: 15px 20px;
    transition: background-color 0.3s ease; /* Transición suave para el color de fondo */
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar ul li a:active {
    color: #0d4e9d;
}


.sidebar ul li a:focus {
    color: #0d4e9d;
}


.sidebar ul li a:focus {
    color: #0d4e9d;
}

.sidebar ul li a i {
    margin-right: 10px;
}

.sidebar.collapsed ul li a i {
    margin: 0 auto;
}

.sidebar.collapsed ul li a span {
    display: none; /* Ocultar texto cuando el menú está colapsado */
}

/* Botón de colapsar menú */
.collapse-btn {
    background-color: #F9CC10;
    color: #0D4E9D;
    border: none;
    width: 100%;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collapse-btn i {
    margin-right: 10px;
}

.collapse-btn:hover {
    background-color: #eab308;
}

/* Cuando el menú está colapsado, solo se muestra el ícono centrado */
.sidebar.collapsed .collapse-btn {
    justify-content: center;
}

.sidebar.collapsed .collapse-btn span {
    display: none; /* Ocultar el texto "Menú" cuando está colapsado */
}

/* Estilo para el menú activo: todo el recuadro cambia de color */
.sidebar ul li.active {
    background-color: #F9CC10; /* Fondo completo amarillo */
    color: #0D4E9D;
}

.sidebar ul li.active a i {
    color: #0D4E9D;
}

/* Perfil de usuario en el menú */
.user-profile {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.user-profile .profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid #fff;
}

.user-profile .user-name {
    color: white;
    font-size: 16px;
    font-weight: bold;
}

/* Estilos del contenido principal */
.main-content {
    margin-left: 250px;
    margin-top: 85px;
    padding: 20px;
    transition: margin-left 0.3s;
}

.main-content.collapsed {
    margin-left: 80px;
}

/* Footer */
footer {
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
}


.user-profile {
    text-align: center; /* Centra la imagen y el nombre */
    margin-top: 20px;
}

.profile-pic {
    width: 60px; 
    height: 60px; 
    border-radius: 50%; /* Hace que la imagen sea circular */
    margin-bottom: 10px; /* Añade espacio entre la imagen y el nombre */
}

.user-name {
    font-weight: bold; /* Hace el nombre en negrita */
    font-size: 14px; /* Ajusta el tamaño de la fuente */
    color: #333; /* Color del texto */
}


/*EDICIÓN DE USUAIRO *¨/
 * 
 * /* Estilo del contenedor de formulario de usuario */
.user-form-container {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.user-form-container h2 {
    color: #0D4E9D;
    margin-bottom: 20px;
}

.user-form .input-group {
    margin-bottom: 15px;
}

.user-form .input-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.user-form .input-group input, 
.user-form .input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.user-form .btn {
    background-color: #0D4E9D;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.user-form .btn:hover {
    background-color: #093f7a;
}

/* Estilo del listado de usuarios */
.user-list-container {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.user-list-container h2 {
    color: #0D4E9D;
    margin-bottom: 20px;
}

.user-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.user-list-table th, 
.user-list-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.user-list-table th {
    background-color: #0D4E9D;
    color: white;
}

.user-list-table td {
    background-color: #f9f9f9;
}

.edit-btn {
    color: #0D4E9D;
    text-decoration: none;
    margin-right: 10px;
}

.edit-btn:hover {
    text-decoration: underline;
}

.delete-btn {
    color: #D9534F;
    text-decoration: none;
}

.delete-btn:hover {
    text-decoration: underline;
}

