/* Custom styles for Domain Value Estimator */

/* Smooth transitions for all interactive elements */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Custom focus styles */
input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button hover effects */
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
}

/* Card hover effects */
.bg-white:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Progress bar animations */
.progress-bar {
    transition: width 1s ease-out;
}

/* Custom gradient backgrounds for different score ranges */
.score-excellent {
    background: linear-gradient(135deg, #10B981, #059669);
}

.score-good {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

.score-average {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.score-poor {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
}

/* Loading animation for buttons */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    border-color: #ffffff transparent #ffffff transparent;
    animation: loading 1.2s linear infinite;
}

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

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

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

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white !important;
    }
    
    .shadow, .shadow-sm, .shadow-lg {
        box-shadow: none !important;
        border: 1px solid #e5e7eb;
    }
}
