/* Core layout */
.notification-bell {
    position: relative;
    display: inline-block;
}

.notification-bell .bell-icon {
    cursor: pointer;
    width: 20px;
    height: auto;
    position: relative;
}

.notification-bell .notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: red;
    color: white;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 50%;
}

/* Dropdown list (default: desktop) */
.notification-list {
    display: none;
    position: absolute;
    top: 110%;
    /* just below bell */
    right: 50%;
    /* center relative to bell */
    transform: translateX(50%);
    /* move it back to center */
    background: #1f1f1f;
    color: #fff;
    border: 1px solid #424242;
    width: 300px;
    max-height: 300px;
    border-radius: 5px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.notification-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notification-list li {
    border-bottom: 1px solid #424242;
}

.notification-list li a {
    display: block;
    padding: 10px;
    color: #fff;
    text-decoration: none;
}

.notification-list li:hover {
    background: #333;
}

.notification-list p {
    display: block;
    padding: 10px;
    margin: 0;
    text-align: center;
}

.clear-all-container {
    text-align: center;
    padding: 8px;
}

.clear-all-btn {
    background: #e53935;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.clear-all-btn:hover {
    background: #c62828;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .notification-list {
        right: 0;
        /* align to left edge of bell container */
        transform: none;
        /* cancel desktop centering */
    }
}