/* ============================================================
   NAVBAR – Menü-Dropdown + Breadcrumbs + Logo rechts
   ============================================================ */

.top-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 16px;
}

/* --- Logo rechts --- */
.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.nav-brand:hover .nav-logo {
    opacity: 1;
}

/* ============================================================
   MENÜ-BUTTON
   ============================================================ */

.menu-wrapper {
    position: relative;
    flex-shrink: 0;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.menu-btn:hover,
.menu-btn.open {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.menu-btn:hover svg,
.menu-btn.open svg {
    stroke: white;
}

.menu-chevron {
    transition: transform 0.25s ease;
}

.menu-btn.open .menu-chevron {
    transform: rotate(180deg);
}

/* ============================================================
   MENÜ-PANEL (Dropdown)
   ============================================================ */

.menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13);
    border: 1px solid #e2e8f0;
    min-width: 240px;
    padding: 8px;
    z-index: 2000;
}

.menu-panel.open {
    display: block;
    animation: menuFadeIn 0.15s ease;
}

@keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.menu-header {
    padding: 10px 14px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.menu-separator {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 4px;
}

/* Normale Menüpunkte (Home, Passwort, Logout) */
.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.menu-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.menu-item:hover,
.menu-item.active {
    background: #eff6ff;
    color: #2563eb;
}

.menu-item:hover svg,
.menu-item.active svg {
    opacity: 1;
}

.menu-item-danger {
    color: #ef4444;
}

.menu-item-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* App-Zeilen mit [+]-Button */
.menu-app-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    transition: background 0.15s;
}

.menu-app-row:hover,
.menu-app-row.active {
    background: #eff6ff;
}

.menu-app-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    flex-grow: 1;
    border-radius: 8px 0 0 8px;
}

.menu-app-row.active .menu-app-link {
    color: #2563eb;
    font-weight: 600;
}

.menu-app-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.menu-plus-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 6px;
    border-radius: 6px;
    background: #ecfdf5;
    color: #10b981;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #d1fae5;
    transition: all 0.15s;
    flex-shrink: 0;
}

.menu-plus-btn:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* ============================================================
   BREADCRUMBS (Mitte der Navbar)
   ============================================================ */

.nav-breadcrumb {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.85rem;
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}

.nav-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.nav-breadcrumb a:hover {
    color: #2563eb;
    background: #eff6ff;
}

.bc-sep {
    color: #cbd5e1;
    font-size: 0.8rem;
    padding: 0 2px;
}

.bc-dim {
    color: #94a3b8;
}

.bc-current {
    color: #1e293b;
    font-weight: 600;
}

.bc-title {
    color: #64748b;
    font-style: italic;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
