/* Common utilities shared across themes */
.badge-level {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}
.alert-toast {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Header Notification Bell & Dropdown */
.noti-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.noti-bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
}
.noti-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
}
.noti-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: var(--surface, #ffffff);
    color: var(--text, #0f172a);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
    z-index: 900;
    overflow: hidden;
}
.noti-dropdown.open {
    display: block;
}
.noti-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    font-size: 14px;
    font-weight: 700;
}
.noti-read-all-btn {
    background: transparent;
    border: none;
    color: var(--primary, #3b82f6);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}
.noti-read-all-btn:hover {
    background: var(--surface-hover, rgba(128, 128, 128, 0.12));
}
.noti-list {
    max-height: 360px;
    overflow-y: auto;
}
.noti-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}
.noti-item:last-child {
    border-bottom: none;
}
.noti-item:hover {
    background: var(--surface-hover, rgba(128, 128, 128, 0.1));
}
.noti-item.unread {
    background: rgba(59, 130, 246, 0.08);
}
.noti-item-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(59, 130, 246, 0.14);
    color: var(--primary, #3b82f6);
    font-size: 13px;
}
.noti-item-body {
    flex: 1;
    min-width: 0;
}
.noti-item-msg {
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}
.noti-item-time {
    font-size: 11px;
    opacity: 0.65;
    margin-top: 4px;
}
.noti-empty {
    padding: 28px 16px;
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
}
