
/* ===== Public Tag Picker Modal ===== */
.vd-tag-picker-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 20000;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vdOverlayIn 0.2s ease;
}
.vd-tag-picker-overlay.hidden { display: none; }

.vd-tag-picker {
    background: #fff;
    border-radius: 12px;
    width: 680px;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    animation: vdCardIn 0.25s ease;
    overflow: hidden;
}

.vd-tag-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.vd-tag-picker-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vd-tag-picker-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: #6c63ff;
    border-radius: 2px;
}
.vd-tag-picker-close {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: #bbb;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.vd-tag-picker-close:hover { background: #f5f5f5; color: #666; }

.vd-tag-picker-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Left column - tag groups */
.vd-tag-group-col {
    flex: 0 0 200px;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.vd-tag-picker-col-header {
    padding: 12px 14px 8px;
    font-size: 13px;
    color: #999;
    font-weight: 500;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
    flex-shrink: 0;
}
.vd-tag-group-search {
    padding: 8px 12px;
    flex-shrink: 0;
}
.vd-tag-group-search input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 12px;
    color: #333;
    outline: none;
}
.vd-tag-group-search input:focus { border-color: #6c63ff; }
.vd-tag-group-search input::placeholder { color: #ccc; }

.vd-tag-group-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}
.vd-tag-group-item {
    padding: 9px 14px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vd-tag-group-item:hover { background: #f9f8ff; }
.vd-tag-group-item.active {
    background: #f0edff;
    color: #6c63ff;
    font-weight: 500;
}
.vd-tag-group-item .vd-req-star {
    color: #e74c3c;
    font-size: 11px;
    margin-left: 4px;
}

/* Middle column - tags */
.vd-tag-list-col {
    flex: 0 0 220px;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.vd-tag-list-header {
    padding: 12px 14px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
    flex-shrink: 0;
}
.vd-tag-list-header span {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}
.vd-add-subtag-btn {
    font-size: 12px;
    color: #6c63ff;
    cursor: pointer;
    border: none;
    background: none;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    gap: 2px;
}
.vd-add-subtag-btn:hover { opacity: 0.7; }

.vd-tag-search {
    padding: 8px 12px;
    flex-shrink: 0;
}
.vd-tag-search input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 12px;
    color: #333;
    outline: none;
}
.vd-tag-search input:focus { border-color: #6c63ff; }
.vd-tag-search input::placeholder { color: #ccc; }

.vd-tag-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}
.vd-tag-item {
    padding: 7px 14px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.1s;
}
.vd-tag-item:hover { background: #f9f8ff; }
.vd-tag-item input[type="checkbox"] {
    accent-color: #6c63ff;
    width: 14px;
    height: 14px;
    cursor: pointer;
}
.vd-tag-item.checked {
    color: #6c63ff;
    font-weight: 500;
}

/* Right column - selected tags */
.vd-tag-selected-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}
.vd-selected-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 14px;
}
.vd-selected-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f8f8f8;
}
.vd-selected-tag:last-child { border-bottom: none; }
.vd-selected-tag-remove {
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s;
}
.vd-selected-tag-remove:hover { background: #f5f5f5; color: #e74c3c; }

.vd-selected-empty {
    padding: 30px 14px;
    text-align: center;
    color: #ddd;
    font-size: 13px;
}

/* Footer */
.vd-tag-picker-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    flex-shrink: 0;
}
.vd-tag-picker-footer button {
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
}
.vd-tf-cancel {
    background: #fff;
    color: #999;
    border: 1px solid #e5e5e5 !important;
}
.vd-tf-cancel:hover { background: #f9f9f9; color: #666; }
.vd-tf-confirm {
    background: #6c63ff;
    color: #fff;
}
.vd-tf-confirm:hover { background: #5a52e0; }

/* Scrollbar */
.vd-tag-group-list::-webkit-scrollbar,
.vd-tag-list::-webkit-scrollbar,
.vd-selected-list::-webkit-scrollbar { width: 4px; }
.vd-tag-group-list::-webkit-scrollbar-track,
.vd-tag-list::-webkit-scrollbar-track,
.vd-selected-list::-webkit-scrollbar-track { background: transparent; }
.vd-tag-group-list::-webkit-scrollbar-thumb,
.vd-tag-list::-webkit-scrollbar-thumb,
.vd-selected-list::-webkit-scrollbar-thumb { background: #e8e8e8; border-radius: 2px; }

/* Loading state */
.vd-tag-picker-loading {
    padding: 40px;
    text-align: center;
    color: #ccc;
    font-size: 13px;
}
