/* TagWidget Styles */

/* 共通バッジスタイル */
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

/* 共有タグ (＃付き) */
.tag-shared {
    background-color: #fff3cd; /* Bootstrap warning-subtle */
    color: #664d03;
    border-color: #ffecb5;
}

/* 個人タグ */
.tag-personal {
    background-color: #cff4fc; /* Bootstrap info-subtle */
    color: #055160;
    border-color: #b6effb;
}

/* ホバー時の微調整 */
.tag-badge:hover {
    filter: brightness(0.95);
}

/* 削除ボタン */
.tag-remove-btn {
    margin-left: 0.4em;
    cursor: pointer;
    opacity: 0.6;
    border: none;
    background: none;
    padding: 0;
    color: inherit;
    font-weight: bold;
}

.tag-remove-btn:hover {
    opacity: 1;
}

.tag-outline {
    background-color: transparent;
}

.tag-outline.tag-shared {
    color: #664d03;
    border-color: #ffecb5;
}

.tag-outline.tag-personal {
    color: #055160;
    border-color: #b6effb;
}

.tag-outline:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.cursor-pointer {
    cursor: pointer;
}

.x-small {
    font-size: 0.7rem;
}

/* announce editor: バッジ直後に追加アクションを配置 */
.tag-widget-layout-inline-after-badges > .d-flex {
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.375rem !important;
}

.tag-widget-layout-inline-after-badges > .d-flex > div:first-child {
    flex: 0 1 auto !important;
    margin-bottom: 0 !important;
}

.tag-widget-layout-inline-after-badges > .d-flex > .dropdown {
    flex: 0 0 auto;
    position: relative;
    z-index: 1090;
}

.tag-widget-layout-inline-after-badges > .d-flex > .dropdown > .dropdown-menu {
    z-index: 1095 !important;
}
