/**
 * Notifications CSS
 * Styling für das Benachrichtigungssystem
 */

.notification-dropdown {
    max-width: 350px;
    display: none; /* Standardmäßig versteckt */
    flex-direction: column;
    overflow: hidden;
    max-height: 500px; /* Erhöhte Höhe für mehr Platz */
}

/* Bootstrap zeigt Dropdown mit .show Klasse an */
.notification-dropdown.show {
    display: flex !important;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* Wichtig für Flexbox-Scrolling */
    padding-bottom: 12px; /* Mehr Padding am Ende für bessere Sichtbarkeit */
}

/* Entferne border-bottom vom letzten Item */
.notification-list .notification-item:last-child {
    border-bottom: none !important;
}

.notification-item {
    transition: background-color 0.2s, opacity 0.3s;
    cursor: pointer;
}

.notification-item:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.notification-item.read {
    opacity: 0.6;
}

.notification-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.notification-item h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-item p {
    font-size: 13px;
    line-height: 1.4;
}

.notification-item small {
    font-size: 11px;
}

#notificationBadge {
    font-size: 10px;
    padding: 2px 6px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Mode Support */
[data-bs-theme="dark"] .notification-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .notification-item.read {
    opacity: 0.5;
}

/* Custom Scrollbar für Notification List - Verstecke Standard-Scrollbar */
.notification-list {
    /* Verstecke Standard-Scrollbar in Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

[data-bs-theme="dark"] .notification-list {
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Custom Scrollbar für Chrome, Safari, Opera */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .notification-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

