/* Topbar Icons Component Styles - Optimized for Mobile */

/* Navigation Logo Styles */
.nav-logo {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition-normal, all 0.3s ease);
    margin-top: auto; /* Logo nach unten drücken */
    margin-bottom: 0; /* Kein Abstand nach unten */
}

/* Mobile Navigation Logo */
@media (max-width: 768px) {
    .nav-brand {
        align-items: center !important; /* Logo zentriert am Handy */
    }
    
    .nav-logo {
        max-width: 150px;
        max-height: 65px;
        margin-top: 0 !important; /* Zurück zur zentrierten Position */
        margin-bottom: 10px;
    }
}

/* Desktop Navigation Logo */
@media (min-width: 1024px) {
    .nav-logo {
        max-width: 180px;
        max-height: 70px;
    }
}

/* Topbar Icons Container - Hauptcontainer für alle Topbar-Icons */
#topbarIconsContainer {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    position: relative !important;
    z-index: 99999999 !important;
}

/* Main Icons Container */
.topbar-icons {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-right: 15px !important;
    position: relative !important;
    z-index: 99999999 !important;
}

.topbar-icon {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    z-index: 99999999 !important;
}

.topbar-icon:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
    color: #667eea;
    text-decoration: none;
}

.topbar-icon .icon {
    font-size: 18px;
}

/* NACHRICHTEN-ICON */
#messagesIcon {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

#messagesIcon:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

#messagesIcon .icon {
    color: #667eea;
    transition: all 0.3s ease;
}

#messagesIcon.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#messagesIcon.active .icon {
    color: white;
    transform: scale(1.1);
}

#messagesIcon.active:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* BENACHRICHTIGUNGS-ICON */
#notificationsIcon {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

#notificationsIcon:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

#notificationsIcon .icon {
    color: #ff6b6b;
    transition: all 0.3s ease;
}

#notificationsIcon.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-color: #ff6b6b;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

#notificationsIcon.active .icon {
    color: white;
    transform: scale(1.1);
}

#notificationsIcon.active:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

/* FREUNDSCHAFTSANFRAGEN-ICON */
#friendsIcon {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

#friendsIcon:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

#friendsIcon .icon {
    color: #ffc107;
    transition: all 0.3s ease;
}

#friendsIcon.active {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-color: #ffc107;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

#friendsIcon.active .icon {
    color: white;
    transform: scale(1.1);
}

#friendsIcon.active:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
}

/* SPRACH-ICON */
#languageIcon {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

#languageIcon:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

#languageIcon .icon {
    color: #4caf50;
    transition: all 0.3s ease;
}

#languageIcon.active {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-color: #4caf50;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

#languageIcon.active .icon {
    color: white;
    transform: scale(1.1);
}

#languageIcon.active:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

/* Notification Badges */
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4757;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse 2s infinite;
    z-index: 999999 !important;
}

.notification-badge:empty {
    display: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
        transform: scale(1);
    }
}

/* DROPDOWN CONTAINER - BASIS-STYLES */
.topbar-dropdown {
    /* Basis-Styling beibehalten */
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    
    /* Standardmäßig versteckt */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    
    /* Verhindere Mouse-Events die die Position beeinflussen */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.topbar-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}



/* INDIVIDUELLE DROPDOWN-POSITIONIERUNG */
#messagesDropdown {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 310px;
    max-width: 310px;
    max-height: 60vh;
    z-index: 999999999;
    /* KORRIGIERT: Verhindere Springen durch sofortige korrekte Position */
    will-change: opacity, visibility;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* KORRIGIERT: Stelle sicher, dass die Position sofort korrekt ist */
    transform-origin: center top;
    /* KORRIGIERT: Deaktiviere Transitions für diese Dropdowns um Springen zu verhindern */
    transition: none !important;
}

#notificationsDropdown {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 310px;
    max-width: 310px;
    max-height: 60vh;
    z-index: 999999999;
    /* KORRIGIERT: Verhindere Springen durch sofortige korrekte Position */
    will-change: opacity, visibility;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* KORRIGIERT: Stelle sicher, dass die Position sofort korrekt ist */
    transform-origin: center top;
    /* KORRIGIERT: Deaktiviere Transitions für diese Dropdowns um Springen zu verhindern */
    transition: none !important;
}

#friendsDropdown {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 310px;
    max-width: 310px;
    max-height: 60vh;
    z-index: 999999999;
}

/* RESPONSIVE ANPASSUNGEN für alle Dropdowns */
@media (max-width: 768px) {
    #messagesDropdown,
    #notificationsDropdown {
        width: calc(100vw - 64px);
        max-width: 280px;
        top: 75px;
    }
    
    /* TESTWEISE: Freunde-Menü weiter links positionieren */
    #friendsDropdown {
        width: calc(100vw - 64px);
        max-width: 280px;
        top: 75px;
        left: -100%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    #messagesDropdown,
    #notificationsDropdown {
        width: calc(100vw - 80px);
        max-width: 240px;
        top: 70px;
    }
    
    /* TESTWEISE: Freunde-Menü weiter links positionieren */
    #friendsDropdown {
        width: calc(100vw - 80px);
        max-width: 240px;
        top: 70px;
        left: -100%;
        transform: translateX(-50%);
    }
}

@media (max-width: 360px) {
    #messagesDropdown,
    #notificationsDropdown {
        width: calc(100vw - 80px);
        max-width: 200px;
        top: 65px;
    }
    
    /* TESTWEISE: Freunde-Menü mittig positionieren */
    #friendsDropdown {
        width: calc(100vw - 80px);
        max-width: 200px;
        top: 65px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Dropdown Header */
.dropdown-header {
    padding: 20px 20px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    /* NEU: Verhindere Pointer-Events die das Dropdown schließen könnten */
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.dropdown-title {
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.dropdown-action {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.dropdown-action:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Dropdown Content */
.dropdown-content {
    max-height: 50vh;
    overflow-y: auto;
    background: var(--bg-primary);
    min-height: 150px;
}

.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.2);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.dropdown-content:hover::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.4);
}

/* Empty State */
.dropdown-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.dropdown-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
    color: var(--primary-color);
}

.dropdown-empty p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* Loading State */
.dropdown-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--primary-color);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* FRIEND REQUEST ITEMS */
.friend-request-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.friend-request-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.friend-request-item:last-child {
    border-bottom: none;
}

.friend-request-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.friend-request-info {
    flex: 1;
    overflow: hidden;
}

.friend-request-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 3px;
}

.friend-request-time {
    color: var(--text-secondary);
    font-size: 12px;
}

.friend-request-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.friend-request-actions .btn-accept,
.friend-request-actions .btn-decline {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.friend-request-actions .btn-accept {
    background: #28a745;
    color: white;
}

.friend-request-actions .btn-accept:hover {
    background: #218838;
    transform: scale(1.1);
}

.friend-request-actions .btn-decline {
    background: #dc3545;
    color: white;
}

.friend-request-actions .btn-decline:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* MESSAGE ITEMS */
.message-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.message-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.message-item:last-child {
    border-bottom: none;
}

.message-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.message-info {
    flex: 1;
    overflow: hidden;
}

.message-sender {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.message-sender .pronoun {
    font-size: 11px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 500;
}

.message-preview {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-time {
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
    font-weight: 500;
}

.message-unread {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    position: relative;
}

.message-unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 2px 2px 0;
}

.message-unread .message-sender {
    color: var(--primary-color);
}

.message-unread .message-preview {
    color: var(--text-primary);
    font-weight: 500;
}

.message-item.priority {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.05) 0%, transparent 100%);
}

.message-item.priority::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-radius: 0 2px 2px 0;
}

/* NOTIFICATION ITEMS */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.notification-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.notification-icon.like {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.notification-icon.comment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.notification-icon.follow {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
}

.notification-icon.event {
    background: linear-gradient(135deg, #ffd43b 0%, #fab005 100%);
    color: white;
}

.notification-icon.message {
    background: linear-gradient(135deg, #74c0fc 0%, #339af0 100%);
    color: white;
}

.notification-content {
    flex: 1;
}

.notification-text {
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.notification-text:hover {
    color: var(--primary-color);
}

.notification-text strong {
    font-weight: 700;
    color: var(--primary-color);
}

.notification-timestamp {
    color: var(--text-muted);
    font-size: 11px;
    margin-bottom: 8px;
    font-weight: 500;
}

.notification-unread {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    position: relative;
}

.notification-unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 2px 2px 0;
}

.notification-unread .notification-text {
    color: var(--text-primary);
    font-weight: 500;
}

/* Notification Actions */
.notification-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.notification-btn {
    background: none;
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.notification-btn.mark-read {
    color: var(--primary-color);
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.05);
}

.notification-btn.mark-read:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary-color);
}

.notification-btn.delete {
    color: var(--danger-color);
    border-color: rgba(220, 53, 69, 0.3);
    background: rgba(220, 53, 69, 0.05);
}

.notification-btn.delete:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: var(--danger-color);
}

/* LANGUAGE OPTIONS */
.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 0;
}

.language-option:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateX(4px);
}

.language-flag {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.language-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.language-option:hover .language-name {
    color: #4caf50;
}

/* Dropdown Footer */
.dropdown-footer {
    padding: 14px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.dropdown-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.3s ease;
}

.dropdown-footer a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* USER MENU */
.user-menu {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
    z-index: 99999999 !important;
}

.user-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
    z-index: 99999999 !important;
}

.user-avatar:hover {
    transform: scale(1.05);
}

/* Avatar-Bild Styling */
.user-avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.user-dropdown {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    background: var(--bg-primary) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 20px !important;
    min-width: 200px !important;
    z-index: 999999999 !important;
    border: 1px solid var(--border-light) !important;
    
    /* Versteckt standardmäßig */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-info {
    margin-bottom: 12px;
}

.user-info span {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.user-info small {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 2px;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 12px 0;
}

.user-dropdown a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
    border-radius: 8px;
    padding-left: 8px;
}

.user-dropdown a:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* MISC STATUS INDICATORS */
.user-avatar .user-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.user-avatar .user-status.online {
    background: #51cf66;
}

.user-avatar .user-status.away {
    background: #ffd43b;
}

.user-avatar .user-status.offline {
    background: #adb5bd;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    color: #667eea;
    font-style: italic;
}

.typing-dots {
    display: flex;
    gap: 2px;
}

.typing-dot {
    width: 4px;
    height: 4px;
    background: #667eea;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0.0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* CONFIRMATION MODAL */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.confirmation-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-light);
}

.confirmation-modal.show .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 56px;
    margin-bottom: 20px;
    color: #667eea;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-text {
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
    font-size: 14px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.modal-btn.cancel {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border-medium);
}

.modal-btn.cancel:hover {
    background: var(--border-light);
    transform: translateY(-1px);
}

.modal-btn.confirm {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.modal-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

/* Z-INDEX MANAGEMENT */
.feed-container,
.modal,
.report-modal,
.welcome-banner,
.post-creation,
.feed-content,
.nav-actions,
.auth-buttons,
.nav-brand,
.nav-menu,
.nav-list,
.nav-item,
.nav-link,
.hamburger,
.language-selector,
.language-selector select {
    z-index: auto !important;
}

/* Posts haben normalen z-index, außer angepinnte Posts */
.post {
    z-index: 1 !important;
}

/* Angepinnte Posts haben höheren z-index für korrekte Menü-Darstellung */
.pinned-post {
    z-index: 10 !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .topbar-icons {
        gap: 8px;
        margin-right: 8px;
    }
    
    .topbar-icon {
        width: 36px;
        height: 36px;
    }
    

    
    .dropdown-header {
        padding: 16px 16px 12px;
    }
    
    .dropdown-title {
        font-size: 15px;
    }
    
    .message-item,
    .notification-item {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .message-avatar {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    
    .notification-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .notification-btn {
        text-align: center;
        width: 100%;
    }
    
    .modal-content {
        margin: 16px;
        width: calc(100% - 32px);
        padding: 20px;
        border-radius: 14px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
    
    .dropdown-footer {
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {

    
    .dropdown-header {
        padding: 14px 14px 10px;
    }
    
    .dropdown-title {
        font-size: 14px;
    }
    
    .message-item,
    .notification-item {
        padding: 10px 14px;
        gap: 8px;
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .dropdown-content {
        max-height: 45vh;
        min-height: 120px;
    }
}

@media (max-width: 360px) {

    
    .dropdown-header {
        padding: 12px 12px 8px;
    }
    
    .dropdown-header {
        padding: 12px 12px 8px;
    }
    
    .dropdown-title {
        font-size: 13px;
    }
    
    .message-item,
    .notification-item {
        padding: 8px 12px;
        gap: 6px;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .dropdown-content {
        max-height: 40vh;
        min-height: 100px;
    }
}

/* Mobile Responsive für Topbar Icons Container */
@media (max-width: 768px) {
    #topbarIconsContainer {
        gap: 10px !important;
    }
}