/* wsp.ai - Notifications System - Material Design 3 */

/* ============================================
   NOTIFICATIONS CONTAINER
   ============================================ */

.notifications-container {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: var(--md-sys-color-error);
    color: var(--md-sys-color-on-error);
    font-size: 11px;
    font-weight: 500;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

/* ============================================
   NOTIFICATIONS DROPDOWN
   ============================================ */

.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 360px;
    max-height: 480px;
    background-color: rgba(37, 37, 37, 0.95);
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1000;
}

.notifications-dropdown.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.notifications-header h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.text-button {
    background: transparent;
    border: none;
    color: var(--md-sys-color-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    transition: all var(--transition-fast);
}

.text-button:hover {
    background-color: rgba(168, 199, 250, 0.1);
}

/* ============================================
   NOTIFICATIONS LIST
   ============================================ */

.notifications-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.notification-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.notification-item:hover {
    background-color: #2a2a2a;
    transform: translateX(4px);
}

.notification-item.unread {
    background-color: rgba(144, 202, 249, 0.08);
    border-left: 3px solid #90caf9;
}

.notification-item.unread:hover {
    background-color: rgba(144, 202, 249, 0.12);
}

/* Ripple effect for notifications */
.notification-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(144, 202, 249, 0.2);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    pointer-events: none;
}

.notification-item:active::after {
    animation: ripple 0.6s ease-out;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--md-sys-color-primary);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.notification-icon.review {
    background-color: rgba(168, 199, 250, 0.2);
    color: var(--md-sys-color-primary);
}

.notification-icon.comment {
    background-color: rgba(217, 188, 223, 0.2);
    color: var(--md-sys-color-tertiary);
}

.notification-icon.approval {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.notification-icon.info {
    background-color: rgba(188, 199, 220, 0.2);
    color: var(--md-sys-color-secondary);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 4px;
}

.notification-text {
    font-size: 13px;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: var(--md-sys-color-on-surface-variant);
}

/* ============================================
   NOTIFICATIONS FOOTER
   ============================================ */

.notifications-footer {
    padding: var(--spacing-sm);
    border-top: 1px solid var(--md-sys-color-outline-variant);
    text-align: center;
}

.notifications-footer .text-button {
    width: 100%;
    padding: var(--spacing-sm);
}
