/* topbar.css - Estilo de la barra superior */

.topbar {
    position: relative;
    background-color: transparent;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    z-index: 900;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.topbar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--color-accent);
    opacity: 0.2;
    z-index: -1;
    border-bottom: 1px solid var(--color-border);
    pointer-events: none;
}

.topbar h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
}

.topbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* === Usuario logueado === */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    font-weight: 500;
    font-family: var(--font-family-base);
}

.topbar-user .user-icon {
    font-size: 30px;
    color: var(--color-primary);
}

.topbar-user .user-name {
    font-size: 0.95rem;
    white-space: nowrap;
}

.topbar-user .user-action {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
    font-size: 30px;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.topbar-user .user-action:hover {
    color: var(--color-accent);
}

/* === Responsive === */
@media (max-width: 768px) {
    .topbar {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .topbar h1 {
        font-size: 18px;
    }

    .topbar-user {
        align-self: flex-end;
    }
}
