.notifications-dropdown {
    display: inline-block;
}

.notifications-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #d7dce2;
    border-radius: 50%;
    background: #fff;
    color: #495057;
    font-size: 18px;
    cursor: pointer;
}

.notifications-toggle:hover,
.notifications-toggle:focus {
    color: #007bff;
    outline: none;
}

.notifications-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 10px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.notifications-menu {
    width: 370px;
    max-width: calc(100vw - 24px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
}

.notifications-header form {
    margin: 0;
}

.notifications-read-all {
    padding: 0;
    border: 0;
    background: transparent;
    color: #007bff;
    font-size: 13px;
    cursor: pointer;
}

.notifications-list {
    max-height: 420px;
    overflow-y: auto;
}

.notifications-item {
    display: flex;
    gap: 11px;
    padding: 13px 14px;
    border-bottom: 1px solid #f0f1f3;
    background: #fff;
}

.notifications-item:last-child {
    border-bottom: 0;
}

.notifications-item.is-unread {
    background: #fff5f5;
}

.notifications-icon {
    display: flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9f3ff;
    color: #007bff;
}

.notifications-content {
    min-width: 0;
    flex: 1;
}

.notifications-title {
    margin-bottom: 2px;
    color: #212529;
    font-size: 14px;
    font-weight: 700;
}

.notifications-message {
    color: #626970;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
}

.notifications-time {
    margin-top: 5px;
    color: #9aa0a6;
    font-size: 11px;
}

.notifications-read-one {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #adb5bd;
    cursor: pointer;
}

.notifications-read-one:hover {
    background: #e8f5e9;
    color: #28a745;
}

.notifications-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 38px 16px;
    color: #8b9299;
}

.notifications-empty i {
    font-size: 26px;
}

@media (max-width: 575.98px) {
    .notifications-menu {
        position: fixed !important;
        top: 64px !important;
        right: 12px !important;
        left: 12px !important;
        width: auto;
        transform: none !important;
    }
}
