/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

main {
    min-width: 0;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-left-color: #999;
}

.sidebar .nav-link.active {
    color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
    border-left-color: #198754;
}

.sidebar .nav-link.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

.sidebar .bi {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Mobile xs: Sidebar ausblenden */
@media (max-width: 575px) {
    .sidebar {
        display: none;
    }
}

/* Dark Mode — greift nur wenn App-Toggle auf dark gesetzt (data-theme="dark") */
[data-theme="dark"] .sidebar {
    background-color: #0f1f17 !important;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .sidebar .nav-link {
    color: #a8c9b5;
    border-left-color: transparent;
}

[data-theme="dark"] .sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-left-color: #4caf82;
    color: #c8e6d4;
}

[data-theme="dark"] .sidebar .nav-link.active {
    color: #5ecb8e;
    background-color: rgba(61, 186, 118, 0.15);
    border-left-color: #3dba76;
}

[data-theme="dark"] .sidebar .nav-link.text-danger {
    color: #f87171 !important;
}

[data-theme="dark"] .sidebar .nav-link.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.15);
    border-left-color: #ef4444;
    color: #fca5a5 !important;
}

[data-theme="dark"] .sidebar .text-muted {
    color: #6b8c78 !important;
}

[data-theme="dark"] .sidebar small,
[data-theme="dark"] .sidebar .small {
    color: #6b8c78;
}

[data-theme="dark"] .sidebar hr {
    border-color: rgba(255, 255, 255, 0.1);
}
