.notification-bell .badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 3px 6px;
    font-size: 10px;
    min-width: 15px;
    text-align: center;
    z-index: 100;
}
@media (max-width: 1023px) {
    .notification-bell .badge {
        right: 0;
    }
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 300px;
    max-width: 400px;
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
    margin: 2px 0 0;
    list-style: none;
    font-size: 14px;
    text-align: left;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.notification-header h6 {
    margin: 0;
    font-weight: bold;
}

#mark-all-read {
    cursor: pointer;
    color: #007bff;
    padding: 2px 5px;
    border-radius: 3px;
    border: none;
}

#mark-all-read:hover {
    background-color: #e9ecef;
    text-decoration: underline;
}

#mark-all-read:disabled {
    color: #6c757d;
    cursor: default;
    text-decoration: none;
}

.notification-item {
    display: flex;
    padding: 10px 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
    cursor: pointer;
    align-items: flex-start;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f5f5f5;
}

.notification-item.read {
    background-color: #f8f9fa;
    opacity: 0.7;
}

.notification-image {
    margin-right: 10px;
    flex-shrink: 0;
}

.notification-image img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #e9ecef;
}

.notification-content {
    flex: 1;
}

.notification-message {
    margin-bottom: 5px;
    word-wrap: break-word;
}

.notification-time {
    font-size: 11px;
    color: #6c757d;
}

.notification-empty {
    padding: 15px;
    text-align: center;
    color: #6c757d;
}

.notification-footer {
    padding: 10px 15px;
    text-align: center;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.notification-footer a {
    color: #007bff;
    text-decoration: none;
}

.notification-footer a:hover {
    text-decoration: underline;
}
