/* ==================== NOTIFICATIONS WIDGET ==================== */

.notifications-widget {
    position: relative;
    margin-right: 15px;
}

.notifications-bell {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.notifications-bell:hover {
    background-color: rgba(var(--accent-rgb), 0.1);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 360px;
    max-height: 500px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: fadeInDown 0.3s ease;
}

.notifications-dropdown.show {
    display: flex;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.notifications-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.mark-all-read:hover {
    background-color: rgba(var(--accent-rgb), 0.1);
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.notification-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background-color: rgba(var(--accent-rgb), 0.05);
}

.notification-item.unread {
    background-color: rgba(var(--accent-rgb), 0.08);
}

.notification-item:last-child {
    border-bottom: none;
}

.notif-icon {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.notif-message {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.unread-dot {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.notifications-footer {
    padding: 12px 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.notifications-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.notifications-footer a:hover {
    text-decoration: underline;
}

.loading,
.no-notifications,
.error-notifications {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.error-notifications {
    color: var(--danger-color);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .notifications-dropdown {
        right: -50px;
        width: 320px;
    }
}

@media (max-width: 425px) {
    .notifications-dropdown {
        position: fixed;
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}
