/* =========================================
   NOTIFICATION DROPDOWN
========================================= */
.notification-dropdown {
    min-width: 350px;
    max-width: 400px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    background: var(--dropdown-bg);
    color: var(--dropdown-text);
    position: absolute;
    z-index: 1050;
    transform: translate3d(0, 0, 0);
    border-radius: var(--border-radius);
}

.notification-dropdown.show {
    display: block;
}

/* Notification Items */
.notification-item {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

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

.notification-item:hover {
    background-color: var(--card-hover-bg);
    transform: translateX(5px);
}

.notification-item.unread {
    background-color: rgba(13, 110, 253, 0.1);
    border-left: 3px solid #0d6efd;
}

.notification-item.unread:hover {
    background-color: rgba(13, 110, 253, 0.15);
}

/* Notification Content */
.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.notification-details {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    line-height: 1.3;
}

.notification-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid var(--navbar-bg);
    z-index: 1051;
}

.notification-icon-wrapper {
    position: relative;
    display: inline-block;
}

.notification-bell {
    font-size: 1.3rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1041;
}

.notification-bell:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Empty State */
.notification-empty {
    padding: 2.5rem 1.25rem;
    text-align: center;
    color: var(--text-muted);
}

.notification-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Header */
.notification-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-hover-bg);
}

.notification-header h6 {
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
}

.mark-all-read {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.mark-all-read:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Dark Mode Enhancements */
[data-theme="dark"] .notification-item.unread {
    background-color: rgba(13, 110, 253, 0.2);
    border-left-color: #0dcaf0;
}

[data-theme="dark"] .notification-item.unread:hover {
    background-color: rgba(13, 110, 253, 0.25);
}

[data-theme="dark"] .notification-bell:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .notification-dropdown {
        min-width: 300px;
        max-width: 90vw;
        position: fixed !important;
        top: 60px !important;
        right: 10px !important;
        left: auto !important;
        z-index: 1060;
    }

    .notification-badge {
        top: -5px;
        right: -5px;
        font-size: 0.7rem;
        min-width: 18px;
        height: 18px;
    }

    .notification-content {
        padding: 0.75rem;
    }
}

/* Dropdown Animation */
.nav-item.dropdown .dropdown-menu {
    display: none;
    animation: dropdownFadeIn 0.2s ease;
}

.nav-item.dropdown .dropdown-menu.show {
    display: block;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}