/* Notification Bell Styles */
.notification-bell {
    position: relative;
    margin-left: 10px;
}

.notification-bell-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.notification-bell-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.notification-bell-btn:active {
    transform: scale(0.95);
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #dc3545; /* Red color for high priority */
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Notification dropdown */
.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-width: 90vw;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 8px;
}

.notification-bell:hover .notification-dropdown {
    display: block;
}

.notification-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    border-radius: 8px 8px 0 0;
}

.notification-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

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

.notification-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

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

.notification-item:hover {
    background-color: var(--bg-tertiary);
}

.notification-item[data-priority="high"] {
    border-left: 4px solid #dc3545;
}

.notification-item[data-priority="medium"] {
    border-left: 4px solid #ffc107;
}

.notification-item[data-priority="low"] {
    border-left: 4px solid #28a745;
}

.notification-content {
    flex: 1;
    margin-right: 12px;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.notification-action {
    flex-shrink: 0;
}

.notification-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-secondary);
}

.notification-empty p {
    margin: 0;
    font-style: italic;
}

/* Dark mode specific styles */
[data-theme="dark"] .notification-badge {
    border-color: #1a1a1a;
}

[data-theme="dark"] .notification-dropdown {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 280px;
        right: -10px;
    }

    .notification-item {
        padding: 10px 12px;
    }

    .notification-content {
        margin-right: 8px;
    }

    .notification-title {
        font-size: 0.9rem;
    }

    .notification-message {
        font-size: 0.8rem;
    }

    .notification-action .btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

/* Ensure notification bell works in mobile nav */
@media (max-width: 768px) {
    .main-nav .notification-bell {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav .notification-bell-btn {
        color: var(--text-primary);
        background: var(--bg-tertiary);
        width: auto;
        height: auto;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        font-size: 1rem;
    }

    .main-nav .notification-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        max-width: 400px;
        max-height: 80vh;
        z-index: 1001;
    }

    .main-nav .notification-bell:hover .notification-dropdown {
        display: block;
    }
}
