/* Notification Bell */
.notification-bell-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bell-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bell-btn img {
    width: 24px;
    height: 24px;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background-color: #ff4444;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Notification Overlay */
.notification-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.notification-overlay.open {
    display: block;
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 390px;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
}

.notification-panel.open {
    right: 0;
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.notification-panel-header h3 {
    margin: 0;
    font-family: Pretendard, "Noto Sans KR", sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #222;
}

.notification-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-header-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-panel-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Empty State */
.notification-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 0 20px;
}

.notification-empty p {
    font-family: Pretendard, "Noto Sans KR", sans-serif;
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Notification Items */
.notification-list {
    padding: 0;
}

.notification-item {
    display: flex;
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #fafafa;
}

.notification-item.unread {
    background-color: #f8f7ff;
}

.notification-item.unread:hover {
    background-color: #f0eeff;
}

.notification-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
}

.notification-item.unread .notification-item-icon {
    background-color: #eeecff;
}

.notification-item-icon i {
    font-size: 14px;
    color: #666;
}

.notification-actor-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.notification-item.unread .notification-item-icon i {
    color: #7371FC;
}

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

.notification-item-title {
    font-family: Pretendard, "Noto Sans KR", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item-message {
    font-family: Pretendard, "Noto Sans KR", sans-serif;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-item-time {
    font-family: Pretendard, "Noto Sans KR", sans-serif;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* Center the panel on larger screens */
@media (min-width: 768px) {
    .notification-panel {
        right: calc(-390px);
        left: auto;
    }

    .notification-panel.open {
        right: calc(50% - 195px);
    }
}

@media (max-width: 440px) {
    .notification-panel {
        max-width: 100%;
    }
}