/* Market Assignment Tags Styling */
.market-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}

.market-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
    white-space: nowrap;
    min-width: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.market-tag.bg-success {
    background-color: #198754 !important;
    color: white;
}

.market-tag.bg-primary {
    background-color: #0d6efd !important;
    color: white;
}

/* Responsive market tags */
@media (max-width: 768px) {
    .market-tags {
        gap: 2px;
    }
    
    .market-tag {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
}

/* Market tags for top 100 agents page */
.top-100-agents .market-tags {
    margin-top: 6px;
}

.agent-card .market-tags .market-tag {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.agent-card:hover .market-tags .market-tag {
    opacity: 1;
}

/* Special styling for highlighted agents */
.highlighted-agent .market-tag {
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.priority-agent .market-tag {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    }
}