/* Quill Rich Text Editor */
.ql-toolbar {
    border: 1px solid #d0d7de !important;
    border-radius: 4px 4px 0 0;
    border-bottom: none;
}

#quill-editor {
    font-family: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla";
    font-size: 1rem;
    border: 1px solid #d0d7de;
    border-radius: 0 0 4px 4px;
    border-top: none;
    height: 200px;
}

/* Tag Input Components */
.tag-input-container {
    position: relative;
}

.tag-input-wrapper {
    border: 1px solid var(--bs-border-color, #d0d7de);
    border-radius: 4px;
    padding: 8px;
    min-height: 40px;
    background: var(--bs-body-bg, #fff);
}

.tag-input-field {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 1rem;
    padding: 0;
    margin: 0;
}

.tag-input-field::placeholder {
    color: #656d76;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    background: var(--bs-secondary-bg, #f6f8fa);
    border: 1px solid var(--bs-border-color, #d0d7de);
    border-radius: 16px;
    padding: 4px 8px 4px 12px;
    font-size: 0.875rem;
    color: var(--bs-body-color, #24292f);
    max-width: 200px;
}

.tag-item .tag-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 6px;
}

.tag-item .tag-remove {
    background: none;
    border: none;
    color: #656d76;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.tag-item .tag-remove:hover {
    background: var(--bs-border-color, #d0d7de);
    color: var(--bs-body-color, #24292f);
}

.tag-item .tag-remove:focus {
    outline: 2px solid #0969da;
    outline-offset: 2px;
}

.tag-list:empty {
    display: none;
}

.tag-input-wrapper:not(:focus-within) .tag-input-field:not(:placeholder-shown)+.tag-list:empty {
    display: block;
}
