/* --- Top bar (sidebar toggle left; language, theme, account right) --- */
.adv-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
}

.adv-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.adv-topbar-actions .rz-button {
    color: var(--adv-topbar-icon) !important;
    padding: 0.2rem 0.3rem !important;
}

.adv-topbar-actions .rz-button:hover {
    color: var(--adv-primary) !important;
    background: var(--adv-topbar-hover-bg) !important;
}

/* ==========================================================================
   TopBar Timer Widget
   ========================================================================== */
.topbar-timer-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.3rem;
    cursor: pointer;
    color: var(--adv-topbar-icon);
    transition: color 0.15s;
}

.topbar-timer-btn:hover {
    color: var(--adv-primary);
}

.topbar-timer-btn .rzi {
    font-size: 20px;
}

.topbar-timer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    color: var(--adv-white);
    background: var(--adv-danger);
    border-radius: 99px;
    padding: 0 4px;
}

/* Timer list dialog items */
.timer-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.timer-list-item:hover {
    background: var(--rz-base-200, rgba(0,0,0,0.04));
}

.timer-list-item.running {
    background: rgba(var(--adv-primary-rgb), 0.06);
}

.timer-list-item.running:hover {
    background: rgba(var(--adv-primary-rgb), 0.12);
}

.timer-list-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timer-list-item-desc {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timer-list-item-case {
    font-size: 0.75rem;
    color: var(--rz-text-disabled-color);
}

.timer-list-item-elapsed {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: var(--rz-text-disabled-color);
    white-space: nowrap;
}

.timer-list-item-elapsed.running {
    color: var(--adv-primary);
    font-weight: 600;
}
