/* Tag Selector Styles */
.tag-selector {
    position: relative;
    margin: 1.5rem 0;
}

.selected-tags-display {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.add-tag-btn {
    background: #f5f5f5;
    border: 2px dashed #166a6a;
    color: #166a6a;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-tag-btn:hover {
    background: #166a6a;
    color: white;
}

.tag-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    padding: 1rem;
}

.tag-search {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.tag-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-title {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-option {
    background: white;
    border: 2px solid;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
}

.tag-option:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tag-option.selected {
    color: white;
    border-color: transparent;
}

.tag-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.check-icon {
    margin-left: 0.5rem;
    font-weight: bold;
}

/* Chevron Tag Styles */
.tag-display {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0.5rem 0;
}

.tag-chevron:hover {
    opacity: 1;
}

.tag-filter:hover {
    opacity: 1;
}

.tag-filter{
    display: inline-block;
    border-radius: 10px;
    opacity: .8;
    padding: 0.5rem 1.25rem 0.5rem 1rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

.tag-chevron {
    position: relative;
    padding: 0.5rem 1.25rem 0.5rem 1rem;
    opacity: .8;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    margin-right: -0.5rem;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
    transition: all 0.3s ease;
}

.tag-chevron:first-child {
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    padding-left: 1rem;
}

.tag-chevron.clickable {
    cursor: pointer;
}

.tag-chevron.clickable:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.tag-chevron .remove-icon {
    margin-left: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .tag-chevron {
        font-size: 0.75rem;
        padding: 0.4rem 1rem 0.4rem 0.8rem;
    }
}
