/**
 * Smart Select Component Styles for UGC Competition
 */
.tapi-smartselect {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.tapi-smartselect-input {
    margin-bottom: 0 !important;
}


.tapi-smartselect-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Higher z-index to ensure it's above other elements */
    padding: 0;
    margin: 0;
    list-style: none;
}

.tapi-smartselect-item {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.tapi-smartselect-item:last-child {
    border-bottom: none;
}

.tapi-smartselect-btn {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    transition: background-color 0.2s ease;
}

.tapi-smartselect-btn:hover,
.tapi-smartselect-item.is-active .tapi-smartselect-btn {
    background-color: #f5f5f5;
}

/* Add a dropdown arrow indicator */
/* .tapi-smartselect::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #999;
    pointer-events: none;
} */

/* Loading indicator */
.js-ugc-loading {
    display: inline-block;
    position: relative;
    width: 100%;
    height: 20px;
    text-align: center;
}

.js-ugc-loading:after {
    content: " ";
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto;
    border-radius: 50%;
    border: 2px solid #333;
    border-color: #333 transparent #333 transparent;
    animation: ugc-loading-animation 1.2s linear infinite;
}

@keyframes ugc-loading-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
