/* Custom styles for better SVG rendering */
.svg-container svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* Smooth animations */
.transition-all {
    transition: all 0.2s ease-in-out;
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

/* Gradient text support for older browsers */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Custom scrollbar for settings modal */
.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Hover effects for cards */
.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Focus states for accessibility */
input:focus,
button:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Better button disabled state */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* SVG error state styling */
.text-red-500 {
    color: #ef4444;
}

/* Tier badge styling */
.bg-green-100 {
    background-color: #dcfce7;
}

.text-green-800 {
    color: #166534;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.text-blue-800 {
    color: #1e40af;
}

.bg-purple-100 {
    background-color: #f3e8ff;
}

.text-purple-800 {
    color: #6b21a8;
}

/* Sample prompt chips styling */
.border-purple-500 {
    border-color: #8b5cf6;
}

.bg-purple-50 {
    background-color: #faf5ff;
}

.text-purple-700 {
    color: #7c3aed;
}

/* Authentication status styling */
.text-green-600 {
    color: #059669;
}

.text-blue-600 {
    color: #2563eb;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

/* Enhanced card styling for tier indicators */
.model-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.model-card:hover {
    transform: translateY(-2px);
}

/* Better visual hierarchy for model information */
.model-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Enhanced settings modal styling */
.settings-modal {
    backdrop-filter: blur(4px);
}

/* Better contrast for disabled states */
.disabled-filter {
    opacity: 0.4;
    pointer-events: none;
}

/* Improved prompt chip hover states */
.prompt-chip {
    transition: all 0.15s ease-in-out;
}

.prompt-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}