/* Notifications Bell Component */

.notifications-bell-container {
    position: relative;
    margin-right: 12px;
}

.notifications-bell {
    position: relative;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-bell:hover {
    color: #fff;
    background: #2a2a2a;
}

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

/* Dropdown */
.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 360px;
    max-height: 480px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.notifications-dropdown.open,
.notifications-dropdown.active {
    display: flex;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.notifications-mark-all {
    background: transparent;
    border: none;
    color: #4a9eff;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.notifications-mark-all:hover {
    background: #4a9eff20;
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
}

/* Empty state */
.notifications-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.notifications-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.notifications-empty p {
    font-size: 14px;
}

/* Notification items */
.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
}

.notification-item:hover {
    background: #222;
}

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

.notification-item.unread {
    background: #1e293b;
}

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

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    border-radius: 50%;
}

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

.notification-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-message {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

/* Unread indicator dot */
.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #4a9eff;
    border-radius: 50%;
}

.notification-item {
    position: relative;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .notifications-dropdown {
        position: fixed;
        top: 60px;
        left: 8px;
        right: 8px;
        width: auto;
        max-height: calc(100vh - 80px);
    }
}
