input, select {
    transition: all 0.2s ease-in-out;
}

input:focus, select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

input:disabled,
select:disabled,
button:disabled {
    background-color: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none !important;
}

.modal-center {
    inset: 0;
    display: none;
    animation: modalFadeIn 0.2s ease-out;
}

.modal-center.flex {
    display: flex;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.year-validation-error,
.rating-validation-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    background-color: #fef2f2;
}

#playerResults::-webkit-scrollbar {
    width: 6px;
}

#playerResults::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

#playerResults::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#playerResults::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

button:not(:disabled) {
    transition: all 0.2s ease-in-out;
}

button:not(:disabled):hover {
    transform: translateY(-2px);
}

#playerResults li {
    transition: all 0.2s ease-in-out;
    border-radius: 12px;
    margin: 4px 0;
}

#playerResults li:hover {
    background: #f8fafc !important;
    transform: translateX(4px);
    border-left: 4px solid #3b82f6;
}

@media (max-width: 768px) {
    .modal-center .bg-white {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    #confirmationModal .bg-white {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* lichess username */
/* Lichess autocomplete styles */
#lichessResults {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.lichess-option:hover {
    background-color: #f0f9ff !important;
    border-left: 4px solid #3b82f6;
    margin-left: -4px;
}

.lichess-option:first-child:hover {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.lichess-option:last-child:hover {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}