/* Notification styles */
.notification-dropdown {
    width: 350px;
    max-height: 400px;
    padding: 0;
    overflow-y: auto;
}

.notification-header {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}

.notification-footer {
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: var(--sidebar-hover);
}

.notification-item.unread {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    font-weight: 500;
}

.notification-item.unread:hover {
    background-color: rgba(var(--accent-color-rgb), 0.15);
}

.notification-content {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-time {
    font-size: 0.8rem;
    opacity: 0.7;
}

.notification-type {
    font-size: 0.75rem;
    padding: 2px 5px;
    border-radius: 3px;
}

.notification-type-status {
    background-color: var(--secondary-accent);
    color: white;
}

.notification-type-comment {
    background-color: var(--accent-color);
    color: white;
}

.notification-type-log {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 50%;
    background-color: var(--secondary-accent);
    color: white;
    transform: translate(25%, -25%);
}

/* Notification popup styles */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    z-index: 9999;
}

.notification-toast {
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .notification-dropdown {
        width: 300px;
        position: fixed !important;
        left: auto !important;
        right: 10px !important;
        top: 60px !important;
        transform: none !important;
    }
    
    .notification-popup {
        width: calc(100% - 40px);
        right: 20px;
    }
}

/* Add these styles to notification.css */

@keyframes blink-animation {
    0% { background-color: rgba(var(--accent-color-rgb), 0.3); }
    50% { background-color: rgba(var(--accent-color-rgb), 0.7); }
    100% { background-color: rgba(var(--accent-color-rgb), 0.3); }
}

@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes flash-background {
    0% { background-color: rgba(255, 0, 0, 0); }
    50% { background-color: rgba(255, 0, 0, 0.3); }
    100% { background-color: rgba(255, 0, 0, 0); }
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.notification-badge.has-new {
    animation: pulse-animation 1s infinite;
}

.notification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-width: 90vw;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1070;
    overflow: hidden;
}

.notification-toast.new-notification {
    animation: blink-animation 2s 3;
}

.notification-toast .toast-header {
    background-color: transparent;
    border-bottom-color: var(--border-color);
    color: var(--text-color);
}

.notification-toast .toast-body {
    padding: 12px;
}

/* Enhance visibility of unread notifications */
.notification-item.unread {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    border-left: 3px solid var(--accent-color);
}

/* Make notification dropdown more noticeable when it has unread notifications */
#notificationDropdown.has-unread {
    color: var(--accent-color);
    animation: pulse-animation 2s infinite;
}

/* Flash overlay for attention-grabbing */
#notificationFlash {
    animation: flash-background 0.5s infinite;
}

/* Make the notification toast more attention-grabbing */
.notification-toast.new-notification {
    animation: blink-animation 1s infinite;
    box-shadow: 0 0 15px rgba(var(--accent-color-rgb), 1);
}

/* Badge animation for unread count */
.notification-count.has-unread, 
.notification-sidebar-count.has-unread {
    animation: pulse-animation 1s infinite;
    background-color: #ff0000 !important;
}