/* Notifications panel */
.notifications-panel {
    position: absolute;
    top: 10px;
    right: 70px;
    width: 360px;
    max-height: 500px;
    background: #F2F4FF;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
}

.notifications-panel.open {
    display: flex;
}

.notifications-panel-header {
    padding: 22px 24px 16px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notifications-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: #999;
    flex-shrink: 0;
}

.notifications-close-btn:hover {
    background: rgba(0,0,0,0.05);
    color: #333;
}

.notifications-close-btn svg {
    pointer-events: none;
}

#notifications-list {
    overflow-y: auto;
    flex: 1;
    padding: 0 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Single notification item — card style */
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    cursor: pointer;
    transition: box-shadow 0.15s;
    gap: 12px;
}

.notification-item:hover {
    box-shadow: 0 2px 12px rgba(108, 99, 255, 0.1);
}

.notification-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
    background: transparent;
    margin-top: 6px;
}

.notification-item.unread .notification-dot {
    background: #6c63ff;
}

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

.notification-title {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a2e;
    margin-bottom: 3px;
    line-height: 1.3;
}

.notification-message {
    font-size: 13px;
    font-weight: 400;
    color: #555;
    line-height: 1.4;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-time {
    font-size: 12px;
    font-weight: 500;
    color: #6c63ff;
}

.notification-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: #e74c3c;
    padding: 2px;
    border-radius: 6px;
    transition: opacity 0.15s;
    flex-shrink: 0;
    opacity: 0.7;
    line-height: 0;
}

.notification-delete:hover {
    opacity: 1;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

/* Badge on the bell icon */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    pointer-events: none;
}

/* Accept invite action */
.notification-actions {
    margin-top: 8px;
}

.notification-accept-btn {
    background: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}

.notification-accept-btn:hover {
    background: #5a52e0;
}

.notification-accepted {
    font-size: 13px;
    color: #27ae60;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .notifications-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 100vh;
        border-radius: 0 0 20px 20px;
    }
}
