/* =========================
   NAVBAR
========================= */

.navbar {
    height: 56px;
    background: var(--card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 1px 3px var(--shadow);
    transition: background 0.3s, color 0.3s;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    font-size: 18px;
}

.logo {
    width: 50px;
    height: auto;

    fill: var(--text);
    /* 🔥 key for solid icons */
    stroke: var(--text);
    /* 🔥 if your SVG uses strokes */

    transition: fill 0.4s ease, stroke 0.4s ease;
}

.nav-right {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 5px;
}

.nav-right-item {
    position: relative;
}

/* ICON BUTTON */
.icon-btn {
    /* font-size: 20px; */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    transition: background 0.2s ease;
}

.icon-btn:hover {
    background: var(--hover);
}

/* =========================
   PROFILE DROPDOWN
========================= */

.profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-btn {
    border: none;
    background: none;
    cursor: pointer;
}

.profile-btn img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.profile-menu {
    position: absolute;
    right: 0;
    top: 50px;
    width: 260px;
    background: var(--card);
    box-shadow: 0 10px 25px var(--shadow);
    border-radius: 14px;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
}

.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
}

.profile-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.profile-header strong {
    display: block;
}

.profile-header small {
    color: var(--muted);
}

.profile-menu a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    transition: background 0.2s;
}

.profile-menu a:hover {
    background: var(--hover);
}


/* =========================
   OPTIONS MENU (TOPBAR)
========================= */

.options-menu {
    position: absolute;
    top: 50px;
    right: 0;

    width: 180px;
    background: var(--card);
    box-shadow: 0 10px 25px var(--shadow);
    border-radius: 12px;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;

    z-index: 1100;
}

.options-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.options-menu a {
    display: block;
    padding: 12px 15px;
    font-size: 14px;
    color: var(--text);
    transition: background 0.2s;
}

.options-menu a:hover {
    background: var(--hover);
}