﻿.tagbox-container {
    width: 100%;
    position: relative;
    font-family: inherit;
}

.tagbox-selected {
    min-height: 42px;
    border: 2px solid #e0e8f0;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    cursor: text;
    background: #f9fbfc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tagbox-selected:focus-within {
    border-color: #00bcd4;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.tagbox-tag {
    background: linear-gradient(135deg, #00bcd4 0%, #1565c0 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tagbox-remove {
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.tagbox-remove:hover {
    opacity: 0.7;
}

.tagbox-input {
    border: none;
    outline: none;
    flex-grow: 1;
    min-width: 120px;
    background: transparent;
    font-size: 0.95rem;
    padding: 4px 0;
}

.tagbox-dropdown {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 2px solid #00bcd4;
    border-top: none;
    z-index: 10000;
    right: 0;
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.15);
    border-radius: 0 0 8px 8px;
}

.tagbox-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    color: #333;
    font-size: 0.95rem;
}

.tagbox-item:last-child {
    border-bottom: none;
}

.tagbox-item:hover {
    background: #f0f7ff;
    color: #1565c0;
    padding-right: 16px;
}

.tagbox-noitems {
    padding: 12px;
    color: #999;
    text-align: center;
    font-size: 0.9rem;
}

/* Scrollbar Styling */
.tagbox-dropdown::-webkit-scrollbar {
    width: 6px;
}

.tagbox-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tagbox-dropdown::-webkit-scrollbar-thumb {
    background: #00bcd4;
    border-radius: 3px;
}

.tagbox-dropdown::-webkit-scrollbar-thumb:hover {
    background: #1565c0;
}
