.main-header {
    height: 60px;
    background-color: var(--fondo-header);
    color: #2c3e50; /* Color oscuro estilizado para textos de control */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #eaedf1; /* Línea de separación sutil inferior */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- SECCIÓN IZQUIERDA --- */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Botón Hamburguesa */
.menu-toggle-btn {
    background: none;
    border: none;
    color: #5a6a85;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.menu-toggle-btn:hover {
    color: #04353D;
}

/* Caja de Buscador */
.search-container {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    padding: 6px 14px;
    width: 280px;
    position: relative;
}

.search-icon {
    color: #a1aab7;
    font-size: 14px;
    margin-right: 10px;
}

.search-input {
    background: none;
    border: none;
    outline: none;
    font-size: 13px;
    color: #2c3e50;
    width: 70%;
}

.search-input::placeholder {
    color: #a1aab7;
}

/* Atajo de teclado (Ctrl + K) */
.search-shortcut {
    position: absolute;
    right: 12px;
    font-size: 11px;
    color: #a1aab7;
    background-color: transparent;
    font-weight: 400;
}


/* --- SECCIÓN DERECHA --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 24px; /* Separación simétrica de los módulos */
}

/* Mensaje de Bienvenida */
.user-welcome {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #2c3e50;
    font-weight: 400;
}

.status-dot {
    width: 7px;
    height: 7px;
    background-color: #22c55e; /* Verde brillante de conexión activa */
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.user-name {
    font-weight: 600;
    margin-left: 4px;
    color: #1e293b;
}

/* Módulo de Fecha */
.header-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5a6a85;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    padding: 0 16px;
    height: 24px; /* Limita la altura del separador */
}

.header-date i {
    font-size: 14px;
    color: #5a6a85;
}

/* Icono de Notificaciones con Badge */
.notification-box {
    position: relative;
    cursor: pointer;
    color: #5a6a85;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #1d4ed8; /* Azul eléctrico de tu contador */
    color: #ffffff;
    font-size: 9px;
    font-weight: bold;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
}

/* Bloque Perfil del Usuario (Avatar + Flecha) */
.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.avatar-circle {
    width: 34px;
    height: 34px;
    background-color: #047857; /* Fondo verde azulado del círculo MG */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.profile-arrow {
    font-size: 11px;
    color: #5a6a85;
    transition: transform 0.2s;
}

.user-profile:hover .profile-arrow {
    color: #1e293b;
}