
/* =========================
  TOPBAR
========================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 72px;
    background: var(--app-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}


.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}


.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--app-transition);
    border: none;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* TITLE */
.topbar-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.topbar-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* USER DROPDOWN */
.user-dropdown {
    position: relative;
}

.user-btn {
    border-radius: 8px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 10px;

    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    transition: var(--app-transition);
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* AVATAR */
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TEXT */
.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* DROPDOWN MENU */
.user-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--app-shadow-md);
    overflow: hidden;
}

.user-menu.is-open {
    display: block;
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--app-text);
    transition: var(--app-transition);
}

.user-menu a:hover {
    background: #f1f5f9;
    color: var(--app-primary);
}