/* ==========================================================================
   HEADER — Fixed Top Bar
   ========================================================================== */
.top-header {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: var(--header-height);
    background: var(--card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 999;
    transition: left var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}
.top-header.full-width { left: 0; }

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title-dynamic {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Hamburger */
.sidebar-hamburger-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.sidebar-hamburger-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

/* ===== JAM / TANGGAL ===== */
#currentDate {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--primary-soft);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
    min-width: 235px;
    text-align: center;
    display: inline-block;
    user-select: none;
    transition: all var(--transition-fast);
}
#currentDate:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.time-separator {
    margin: 0 5px;
    opacity: 0.5;
}
.live-clock {
    color: var(--primary);
    font-weight: 700;
}

/* ===== PROFILE DROPDOWN ===== */
.profile-dropdown-wrapper { position: relative; }

.profile-trigger-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    font-family: var(--font-sans);
}
.profile-trigger-btn:hover { background: var(--primary-soft); }

.profile-avatar {
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}
.profile-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
}
.profile-arrow {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.profile-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 190px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    display: none;
    flex-direction: column;
    z-index: 1000;
}
.profile-menu-dropdown.show { display: flex; }

.profile-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.profile-menu-dropdown a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}
.profile-menu-dropdown a i {
    color: var(--text-muted);
    width: 16px;
}

.dropdown-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 6px 0;
}

.profile-menu-dropdown .logout-link:hover {
    background: var(--danger-soft);
    color: var(--danger);
}
.profile-menu-dropdown .logout-link:hover i {
    color: var(--danger);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .top-header { left: 0; padding: 0 16px; }
    #currentDate { display: none; }
    .profile-name { display: none; }
}