/* =============================================
   DESKTOP TOPBAR (top-right)
   ============================================= */
.desktop-topbar {
    background-color: var(--sidebar-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 20px;
    gap: 8px;
    z-index: 90;
}

.topbar-search-container {
    flex: 1;
    align-items: right;
    max-width: 300px;
    margin: 0 20px;
}

.topbar-search-form {
    position: relative;
    width: 100%;
}

.topbar-search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #334155;
    transition: all 0.3s ease;
}

.topbar-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-2);
    transition: all 0.2s;
    box-shadow: var(--shadow);
    position: relative;
}

.icon-btn:hover {
    color: var(--red);
    background: var(--red-ultra-light);
}

.notif-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    position: absolute;
    top: 5px;
    right: 5px;
    border: 1.5px solid var(--surface);
}

.desktop-user {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 4px 12px 4px 6px;
    box-shadow: var(--shadow);
}

.desktop-username {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.topbar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--red);
}

.btn-topbar-login {
    background: var(--red);
    color: white;
    border-radius: 99px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-topbar-login:hover {
    background: var(--red-dark);
}

/* =============================================
   MOBILE TOPBAR
   ============================================= */
.topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--sidebar-border);
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 200;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hamburger {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text);
    flex-shrink: 0;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}

.brand-icon-sm {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: white;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}