/* Notification related styles */
.notification-item {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification-item.unread {
    border-left: 4px solid #ff0015;
    background-color: rgba(255, 0, 21, 0.1);
}

.notification-title {
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
}

.notification-content {
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.5;
}

.notification-time {
    color: #888;
    font-size: 0.9em;
}

.notification-actions {
    margin-top: 10px;
}

.notification-actions .btn {
    margin-right: 5px;
    padding: 5px 10px;
    font-size: 12px;
}

/* Notification icon styles */
.notification-item-block {
    position: relative;
    display: inline-block;
}

.notification-btn {
    position: relative;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 8px 12px;
    text-decoration: none;
}

.notification-btn:hover {
    color: #ff0015;
    text-decoration: none;
}

.notification-count {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #ff0015;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notification-count.has-notifications {
    animation: pulse 2s infinite;
}

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

/* Hide count when there are no unread notifications */
.notification-count:empty,
.notification-count[data-count="0"] {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-item-block {
        margin: 1px 3px;
    }
    
    .notification-btn {
        padding: 5px 7px;
        font-size: 14px;
    }
    
    .notification-btn i {
        font-size: 16px;
    }
    
    .notification-count {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        line-height: 16px;
    }
}

/* Animation for new notifications */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.notification-count.new {
    animation: pulse 1s ease-in-out 3;
}

/* Dark theme compatibility */
.header-section .notification-btn {
    color: #ffffff;
}

.header-section .notification-btn:hover {
    color: #ff0015;
}

/* Light theme compatibility */
.header-section.light .notification-btn {
    color: #1d2025;
}

.header-section.light .notification-btn:hover {
    color: #ff0015;
}