/* Notification Center Styles */
.notification-container {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-primary, #ffffff);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 15px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
    /* Hidden by default if count is 0 */
}

/* Mail Badge specifically for the message icon */
.mail-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 5;
}

.badge-new-pulse {
    animation: badge-bounce 0.5s ease;
}

@keyframes badge-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }
}

.notification-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    width: 320px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    overflow: hidden;
    animation: fadeInSlide 0.3s ease forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-dropdown.active {
    display: block;
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.notification-header .mark-all-btn {
    font-size: 0.8rem;
    color: #3498db;
    text-decoration: none;
    cursor: pointer;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
    background: rgba(52, 152, 219, 0.08);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #3498db;
    border-radius: 50%;
}

.notification-item .notif-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 5px;
    display: block;
}

.notification-item .notif-message {
    font-size: 0.8rem;
    color: #a0aec0;
    line-height: 1.4;
    display: block;
}

.notification-item .notif-time {
    font-size: 0.7rem;
    color: #718096;
    margin-top: 8px;
    display: block;
}

/* Type variations */
.notification-item.notif-warning .notif-title {
    color: #f6ad55;
}

.notification-item.notif-danger .notif-title {
    color: #fc8181;
}

.notification-item.notif-success .notif-title {
    color: #68d391;
}

/* Priority styles */
.priority-high {
    border-left: 3px solid #fc8181;
}

/* Calendar Reminder Highlights */
.trade-calendar-day-event.reminder-low {
    background: #3498db !important;
    border-color: #2980b9 !important;
    color: #fff !important;
}

.trade-calendar-day-event.reminder-medium {
    background: #f6ad55 !important;
    border-color: #dd6b20 !important;
    color: #1a202c !important;
}

.trade-calendar-day-event.reminder-high {
    background: #fc8181 !important;
    border-color: #e53e3e !important;
    color: #fff !important;
}

/* Urgent Pulse Animation for the Bell Button */
.urgent-pulse {
    animation: bell-pulse 2s infinite;
}

@keyframes bell-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px #ff4757);
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 8px #ff4757);
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px #ff4757);
    }
}

.no-notifications {
    padding: 30px;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.6;
}

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

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

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}