/* ============================================
   TOPBAR COMPONENT
   ============================================ */

.app-topbar {
    position: sticky;
    top: 0;
    height: 70px;
    background: var(--glass-subtle);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}

/* Topbar Left Section */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-light);
    padding: 8px 12px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.btn-sidebar-toggle i {
    font-size: 1.5rem;
}

.topbar-title {
    font-family: var(--font-family-title);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

/* Topbar Right Section */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-username {
    font-family: var(--font-family-content);
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.topbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.topbar-avatar i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .app-topbar {
        padding: 0 16px;
    }

    .topbar-title {
        font-size: 1.2rem;
    }

    .topbar-username {
        display: none;
    }

    .topbar-user .btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .topbar-title {
        font-size: 1rem;
    }

    .topbar-user .btn span {
        display: none;
    }

    .topbar-user .btn i {
        margin-right: 0;
    }
}
