/* Notification Bell in Navbar */
.notification-bell-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-right: 10px;
}

.notification-bell {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    padding: 5px;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.notification-bell svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.notification-bell-text {
    display: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 400;
}

.notification-bell:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-danger, #FF3B30);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
}

.notification-count.show {
    visibility: visible;
    opacity: 1;
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 70px;
    right: 0;
    width: 400px;
    max-height: 600px;
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    transform: translateX(450px);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-panel.active {
    transform: translateX(0);
}

.notification-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-default);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-panel-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.notification-panel-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-btn:hover {
    color: var(--text-primary);
}

.notification-panel-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.notification-panel-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

/* Notification Item */
.notification-item {
    padding: 12px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--surface-elevated);
    transition: all 0.2s;
}

.notification-item:hover {
    background: rgba(158, 175, 143, 0.05);
    border-color: var(--accent-primary);
}

.notification-item.unread {
    background: rgba(158, 175, 143, 0.1);
    border-left: 3px solid var(--accent-primary);
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.notification-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.notification-message {
    margin: 8px 0 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-close:hover {
    color: var(--accent-danger, #FF3B30);
}

/* Notification Overlay */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.notification-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-panel {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
        top: 0;
        right: 0;
        transform: translateX(100%);
    }
    
    .notification-panel.active {
        transform: translateX(0);
    }
    
    .notification-bell-wrapper {
        width: 100%;
        margin-left: 0;
        padding: 0;
        border-bottom: 1px solid var(--border-default);
    }
    
    .notification-bell {
        width: 100%;
        min-height: 56px;
        padding: 16px 20px;
        justify-content: flex-start;
        border-radius: 0;
        transition: background 0.2s;
        background: transparent;
    }
    
    .notification-bell:hover {
        background: var(--surface-hover, rgba(0, 0, 0, 0.03));
        transform: none;
    }
    
    .notification-bell svg {
        width: 20px;
        height: 20px;
        margin-right: 12px;
        flex-shrink: 0;
    }
    
    .notification-bell-text {
        display: block;
        flex-grow: 1;
        text-align: left;
    }
    
    .notification-count {
        position: static;
        margin-left: auto;
        width: 24px;
        height: 24px;
        font-size: 11px;
        flex-shrink: 0;
    }
}

/* Scrollbar styling */
.notification-panel-list::-webkit-scrollbar {
    width: 6px;
}

.notification-panel-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-panel-list::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 3px;
}

.notification-panel-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}
