.tag-selection-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.3);
    padding: 10px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    max-height: 150px;
    overflow-y: auto;
    padding: 5px;
}

.selected-tag {
    background: #1e293b;
    color: white;
    border-radius: 8px;
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.remove-tag {
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.remove-tag:hover {
    background: rgba(255, 255, 255, 0.4);
}

.tag-selection-container input[type="text"] {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.tag-selection-container input[type="text"]:focus {
    border-color: rgba(255, 255, 255, 0.2);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.tag-dropdown {
    position: fixed;
    width: auto;
    min-width: 220px;
    background: #1e293b;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    display: none;
    border: 1px solid rgba(255,255,255,0.1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.tag-dropdown::-webkit-scrollbar {
    width: 6px;
}

.tag-dropdown::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.tag-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.tag-dropdown.active {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tag-option {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-option:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.tag-option.selected {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* For bots, display options by default */
#botTagDropdown {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 10px;
    padding: 10px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 150px;
    overflow-y: auto;
    box-shadow: none;
}

#botTagDropdown .tag-option {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    padding: 6px 14px;
    margin: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

#botTagDropdown .tag-option:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

#botTagDropdown .tag-option.selected {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Remove unused keyframes */

#botTagDropdown .tag-option:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

/* Guild tag style to match existing styles */
.guild-tag {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-selection-hint {
    color: #a0aec0;
    font-size: 0.85rem;
    margin: 8px 0;
    text-align: center;
    font-style: italic;
}
