/* ============================================
   LIVE DRAFT MODAL STYLES
   Fantasy Draft Board v4.0 - On The Clock Picker
   ============================================ */

/* ========== CLICKABLE ON-THE-CLOCK CELL ========== */

.on-the-clock-clickable {
    cursor: pointer !important;
    animation: pulse-glow-gold 1.5s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.on-the-clock-clickable:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.9) !important;
}

.on-the-clock-clickable::after {
    content: 'Click to Pick';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 6px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.on-the-clock-clickable:hover::after {
    opacity: 1;
}

@keyframes pulse-glow-gold {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5),
                    inset 0 0 5px rgba(255, 215, 0, 0.1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                    inset 0 0 10px rgba(255, 215, 0, 0.2);
    }
}

/* ========== MODAL OVERLAY ========== */

.live-draft-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
    backdrop-filter: blur(2px);
}

/* ========== MODAL CONTENT ========== */

.live-draft-modal-content {
    background: var(--surface-color, #1a1a2e);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color, #2d2d4a);
    margin: auto;
    animation: modal-slide-in 0.3s ease-out;
}

@keyframes modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== MODAL HEADER ========== */

.live-draft-modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color, #2d2d4a);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, #1a1a2e, #252542);
    border-radius: 12px 12px 0 0;
}

.live-draft-header-title h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary, #fff);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-draft-pick-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.live-draft-pick-info span {
    font-size: 0.9rem;
    color: var(--text-secondary, #a0a0b0);
}

.ldm-team-name {
    color: var(--accent-gold, #ffc107) !important;
    font-weight: 600;
}

.live-draft-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary, #a0a0b0);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.live-draft-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #fff);
}

/* ========== MODAL BODY ========== */

.live-draft-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ========== SECTION STYLING ========== */

.ldm-section {
    background: var(--card-bg, #252542);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color, #2d2d4a);
}

.ldm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.ldm-section-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary, #fff);
}

/* ========== SEARCH BAR ========== */

.ldm-search-bar {
    position: relative;
    margin-bottom: 0.75rem;
}

.ldm-search-input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 0.75rem;
    border: 1px solid var(--border-color, #3d3d5c);
    border-radius: 6px;
    background: var(--input-bg, #1a1a2e);
    color: var(--text-primary, #fff);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ldm-search-input:focus {
    border-color: var(--accent-primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.ldm-search-input::placeholder {
    color: var(--text-muted, #6b7280);
}

.ldm-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary, #a0a0b0);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.ldm-search-clear:hover {
    opacity: 1;
}

/* ========== POSITION FILTERS ========== */

.ldm-position-filters,
.ldm-idp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.ldm-pos-btn {
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--border-color, #3d3d5c);
    border-radius: 4px;
    background: transparent;
    color: var(--text-secondary, #a0a0b0);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ldm-pos-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #fff);
}

.ldm-pos-btn.active {
    background: var(--accent-primary, #6366f1);
    border-color: var(--accent-primary, #6366f1);
    color: #fff;
}

/* Position-specific colors when active */
.ldm-pos-btn.active[data-position="QB"] { background: #e74c3c; border-color: #e74c3c; }
.ldm-pos-btn.active[data-position="RB"] { background: #2ecc71; border-color: #2ecc71; }
.ldm-pos-btn.active[data-position="WR"] { background: #3498db; border-color: #3498db; }
.ldm-pos-btn.active[data-position="TE"] { background: #f39c12; border-color: #f39c12; }
.ldm-pos-btn.active[data-position="K"] { background: #9b59b6; border-color: #9b59b6; }
.ldm-pos-btn.active[data-position="DEF"] { background: #1abc9c; border-color: #1abc9c; }

.ldm-idp-toggle {
    border-style: dashed;
}

/* ========== SORT CONTROLS ========== */

.ldm-sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ldm-sort-label {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
}

.ldm-sort-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: var(--text-secondary, #a0a0b0);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ldm-sort-btn:hover {
    color: var(--text-primary, #fff);
}

.ldm-sort-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #fff);
    font-weight: 600;
}

/* ========== PLAYER COUNT ========== */

.ldm-players-count {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    margin-bottom: 0.5rem;
}

.ldm-players-count span {
    color: var(--accent-gold, #ffc107);
    font-weight: 600;
}

/* ========== PLAYER LIST ========== */

.ldm-player-list-container {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-color, #2d2d4a);
    border-radius: 6px;
    background: var(--input-bg, #1a1a2e);
}

.ldm-player-list {
    padding: 0.25rem;
}

.ldm-player-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
    gap: 0.75rem;
}

.ldm-player-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ldm-player-row.selected {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--accent-primary, #6366f1);
}

.ldm-player-radio {
    flex-shrink: 0;
}

.ldm-player-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-primary, #6366f1);
}

.ldm-player-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ldm-player-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ldm-injury-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.3rem;
    font-size: 0.65rem;
    font-weight: 600;
    background: #ef4444;
    color: #fff;
    border-radius: 2px;
    vertical-align: middle;
}

.ldm-player-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.ldm-position {
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.7rem;
}

/* Position colors */
.ldm-position.position-QB { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.ldm-position.position-RB { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.ldm-position.position-WR { background: rgba(52, 152, 219, 0.2); color: #3498db; }
.ldm-position.position-TE { background: rgba(243, 156, 18, 0.2); color: #f39c12; }
.ldm-position.position-K { background: rgba(155, 89, 182, 0.2); color: #9b59b6; }
.ldm-position.position-DEF { background: rgba(26, 188, 156, 0.2); color: #1abc9c; }
.ldm-position.position-DL,
.ldm-position.position-LB,
.ldm-position.position-DB { background: rgba(142, 68, 173, 0.2); color: #8e44ad; }

.ldm-team {
    color: var(--text-secondary, #a0a0b0);
}

.ldm-bye {
    color: var(--text-muted, #6b7280);
}

.ldm-player-adp {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    text-align: right;
    min-width: 60px;
}

.ldm-no-players,
.ldm-more-players {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted, #6b7280);
    font-size: 0.85rem;
}

/* ========== PREMIUM SECTION ========== */

.ldm-premium-section {
    background: linear-gradient(135deg, #1a1a2e, #1f1f3a);
    border: 1px solid #3d3d5c;
}

.ldm-premium-header {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), transparent);
    padding: 0.5rem 0.75rem;
    margin: -1rem -1rem 0.75rem -1rem;
    border-radius: 7px 7px 0 0;
}

.ldm-premium-badge {
    padding: 0.15rem 0.4rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Premium Upgrade Prompt */
.ldm-upgrade-prompt {
    text-align: center;
    padding: 1rem;
}

.ldm-upgrade-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.ldm-upgrade-prompt h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary, #fff);
    font-size: 1.1rem;
}

.ldm-upgrade-prompt p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary, #a0a0b0);
    font-size: 0.85rem;
}

.ldm-premium-features-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
    text-align: left;
}

.ldm-premium-features-list li {
    padding: 0.35rem 0;
    color: var(--text-secondary, #a0a0b0);
    font-size: 0.8rem;
}

.ldm-upgrade-price {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    margin-top: 0.75rem !important;
}

.ldm-upgrade-btn {
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ldm-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Premium Features (for premium users) */
.ldm-premium-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ldm-feature-section {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.ldm-feature-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
}

.ldm-loading,
.ldm-coming-soon {
    padding: 0.5rem;
    color: var(--text-muted, #6b7280);
    font-size: 0.8rem;
    text-align: center;
}

/* ========== MODAL FOOTER ========== */

.live-draft-modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color, #2d2d4a);
    background: var(--card-bg, #252542);
    border-radius: 0 0 12px 12px;
}

/* Selected Player Display */
.ldm-selected-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--accent-primary, #6366f1);
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.ldm-selected-label {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
}

.ldm-selected-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary, #fff);
    font-size: 0.9rem;
}

.ldm-clear-selection {
    background: transparent;
    border: none;
    color: var(--text-secondary, #a0a0b0);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.ldm-clear-selection:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #fff);
}

/* Comment Field */
.ldm-comment-field {
    margin-bottom: 0.75rem;
}

.ldm-comment-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color, #3d3d5c);
    border-radius: 6px;
    background: var(--input-bg, #1a1a2e);
    color: var(--text-primary, #fff);
    font-size: 0.85rem;
}

.ldm-comment-input::placeholder {
    color: var(--text-muted, #6b7280);
}

/* Action Buttons */
.ldm-action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.ldm-btn {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ldm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ldm-btn-cancel {
    background: transparent;
    border: 1px solid var(--border-color, #3d3d5c);
    color: var(--text-secondary, #a0a0b0);
}

.ldm-btn-cancel:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #fff);
}

.ldm-btn-skip {
    background: #f59e0b;
    color: #000;
}

.ldm-btn-skip:hover:not(:disabled) {
    background: #fbbf24;
}

.ldm-btn-submit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.ldm-btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ========== RESPONSIVE STYLES ========== */

@media (max-width: 600px) {
    .live-draft-modal-overlay {
        padding: 10px;
    }
    
    .live-draft-modal-content {
        max-height: 95vh;
        border-radius: 10px;
    }
    
    .live-draft-modal-header {
        padding: 0.75rem 1rem;
    }
    
    .live-draft-header-title h2 {
        font-size: 1.1rem;
    }
    
    .ldm-position-filters {
        gap: 0.3rem;
    }
    
    .ldm-pos-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .ldm-player-list-container {
        max-height: 200px;
    }
    
    .ldm-action-buttons {
        flex-wrap: wrap;
    }
    
    .ldm-btn {
        flex: 1;
        min-width: 100px;
    }
}

/* ========== DARK MODE ADJUSTMENTS ========== */

[data-theme="light"] .live-draft-modal-content {
    background: #fff;
    border-color: #e5e7eb;
}

[data-theme="light"] .ldm-section {
    background: #f9fafb;
    border-color: #e5e7eb;
}

[data-theme="light"] .ldm-search-input,
[data-theme="light"] .ldm-comment-input {
    background: #fff;
    border-color: #d1d5db;
    color: #111827;
}

[data-theme="light"] .ldm-player-list-container {
    background: #fff;
    border-color: #e5e7eb;
}

[data-theme="light"] .ldm-player-name {
    color: #111827;
}

/* ========== MULTI-SELECT COMPARISON ========== */

.ldm-player-checkbox {
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.ldm-compare-check {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-gold, #ffc107);
}

.ldm-player-profile-link {
    cursor: pointer;
    transition: color 0.2s ease;
}

.ldm-player-profile-link:hover {
    color: var(--accent-primary, #6366f1) !important;
    text-decoration: underline;
}

.ldm-compare-btn {
    margin-left: auto;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 4px;
    color: #000;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ldm-compare-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Compare Modal */
.ldm-compare-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.ldm-compare-modal-content {
    background: var(--surface-color, #1a1a2e);
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: auto;
    border: 1px solid var(--border-color, #2d2d4a);
}

.ldm-compare-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color, #2d2d4a);
}

.ldm-compare-modal-header h3 {
    margin: 0;
    color: var(--text-primary, #fff);
}

.ldm-compare-close {
    background: transparent;
    border: none;
    color: var(--text-secondary, #a0a0b0);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.ldm-compare-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ldm-compare-clear-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.ldm-compare-clear-btn:hover {
    background: #b91c1c;
}

.ldm-compare-modal-body {
    padding: 1rem;
}

.ldm-compare-table {
    width: 100%;
    border-collapse: collapse;
}

.ldm-compare-table th,
.ldm-compare-table td {
    padding: 0.6rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color, #2d2d4a);
    color: #fff;  /* White text for visibility */
}

.ldm-compare-table th {
    background: var(--card-bg, #252542);
}

.ldm-compare-header {
    min-width: 100px;
}

.ldm-compare-player-name {
    font-weight: 600;
    color: var(--text-primary, #fff);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.ldm-compare-player-pos {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
}

.ldm-compare-label {
    text-align: left !important;
    font-weight: 600;
    color: var(--text-secondary, #a0a0b0);
    background: var(--card-bg, #252542);
}

.ldm-compare-tip {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    text-align: center;
}

/* ========== ADD TO DRAFT LIST BUTTON ========== */

.ldm-player-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ldm-add-to-list-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid transparent;
    border-radius: 4px;
    color: #3b82f6;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ldm-add-to-list-btn:hover:not(.in-list) {
    background: #3b82f6;
    color: #fff;
}

.ldm-add-to-list-btn.in-list {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    cursor: default;
}

/* ========== COMPARE BUTTON ========== */

.ldm-compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    padding: 0.35rem 0.65rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 5px;
    color: #000;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ldm-compare-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Ensure sort controls is a flex container */
.ldm-sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ldm-compare-player-name.clickable {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.ldm-compare-player-name.clickable:hover {
    color: #60a5fa;
}

/* Injury filter dropdown for Live Draft Modal */
.ldm-injury-filter {
    padding: 0.4rem 0.6rem;
    border: 1px solid #4b5563;
    border-radius: 4px;
    background: #374151;
    color: #f9fafb;
    font-size: 0.8rem;
    min-width: 110px;
    cursor: pointer;
    margin-left: auto; /* Push to right side of filter row */
}

.ldm-injury-filter:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.ldm-injury-filter:hover {
    border-color: #6b7280;
}

/* Ensure filter row accommodates the dropdown */
.ldm-filter-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

.ldm-sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}