/* ============================================
   Notification Bell Component Styles
   ============================================ */

.notification-bell-container {
    position: relative;
    display: inline-block;
}

.notification-bell {
    position: relative;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: scale(1.1);
}

.notification-bell:active {
    transform: scale(0.95);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Backdrop */
.notification-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: transparent;
}

/* Dropdown */
.notification-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: 380px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border: 1px solid var(--company-border-light, #e5e7eb);
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.notification-header {
    padding: 1rem 1.25rem;
    background: var(--company-bg-secondary, #f9fafb);
    border-bottom: 1px solid var(--company-border-light, #e5e7eb);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--company-text-primary, #111827);
}

.btn-mark-all {
    background: transparent;
    border: none;
    color: var(--company-primary-600, #2563eb);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.btn-mark-all:hover {
    background: var(--company-primary-50, #eff6ff);
}

/* Notification List */
.notification-list {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar Styles */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: var(--company-bg-secondary, #f9fafb);
}

.notification-list::-webkit-scrollbar-thumb {
    background: var(--company-border-color, #d1d5db);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: var(--company-text-secondary, #9ca3af);
}

/* Notification Item */
.notification-item {
    position: relative;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--company-border-light, #f3f4f6);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.notification-item:hover {
    background: var(--company-bg-secondary, #f9fafb);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: var(--company-primary-50, #eff6ff);
}

.notification-item.unread:hover {
    background: #e0f2fe;
}

/* Notification Icon */
.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification-icon.celebration {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.notification-icon.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.notification-icon.warning {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}

.notification-icon.error {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
}

.notification-icon.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--company-text-primary, #111827);
    line-height: 1.4;
}

.notification-message {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    color: var(--company-text-secondary, #6b7280);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.notification-from {
    font-size: 0.75rem;
    color: var(--company-primary-600, #2563eb);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.meta-separator {
    font-size: 0.75rem;
    color: var(--company-text-tertiary, #9ca3af);
}

.notification-time {
    font-size: 0.75rem;
    color: var(--company-text-tertiary, #9ca3af);
    display: flex;
    align-items: center;
}

/* Unread Indicator */
.unread-indicator {
    width: 8px;
    height: 8px;
    background: var(--company-primary-600, #2563eb);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

/* Empty State */
.notification-empty {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--company-text-tertiary, #9ca3af);
}

.notification-empty i {
    font-size: 3rem;
    color: var(--company-border-color, #d1d5db);
    margin-bottom: 1rem;
    display: block;
}

.notification-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Footer */
.notification-footer {
    padding: 0.75rem 1.25rem;
    background: var(--company-bg-secondary, #f9fafb);
    border-top: 1px solid var(--company-border-light, #e5e7eb);
}

.btn-view-all {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--company-primary-600, #2563eb);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-view-all:hover {
    background: var(--company-primary-50, #eff6ff);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-dropdown {
        width: calc(100vw - 2rem);
        right: -1rem;
    }

    .notification-list {
        max-height: 300px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .notification-dropdown {
        background: #1f2937;
        border-color: #374151;
    }

    .notification-header,
    .notification-footer {
        background: #111827;
        border-color: #374151;
    }

    .notification-title {
        color: #f9fafb;
    }

    .notification-item {
        border-color: #374151;
    }

    .notification-item:hover {
        background: #374151;
    }

    .notification-item.unread {
        background: #1e3a5f;
    }

    .notification-item-title {
        color: #f9fafb;
    }

    .notification-message {
        color: #d1d5db;
    }

    .notification-time {
        color: #9ca3af;
    }
}
