/* Custom Styles for Fish Insurance Simulator */

/* Header component styling */
.fish-insurance-header {
    position: relative;
    overflow: hidden;
}

.fish-insurance-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}

.fish-icon {
    position: relative;
    transition: transform 0.3s ease;
}

.fish-icon:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Steps indicator */
.steps-indicator {
    position: relative;
}

.step-circle {
    transition: all 0.3s ease;
}

.step.active .step-circle {
    box-shadow: 0 0 0 3px rgba(var(--primary-500-rgb), 0.3);
}

.step-connector {
    position: relative;
    overflow: hidden;
}

.step-connector .h-full {
    transition: width 0.8s ease;
}

.step:hover .step-circle:not(.active) {
    transform: scale(1.1);
    background-color: rgba(var(--primary-300-rgb), 0.5);
}

/* Premium display component */
.premium-display {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-display:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(var(--primary-500-rgb), 0.1),
    0 10px 10px -5px rgba(var(--primary-500-rgb), 0.04);
}

.premium-value {
    position: relative;
}

.premium-value::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(to right,
    rgba(var(--primary-200-rgb), 0),
    rgba(var(--primary-500-rgb), 1),
    rgba(var(--primary-200-rgb), 0));
}

/* Enhanced forms styling */
.filament-forms-field-wrapper {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filament-forms-field-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.filament-forms-field-wrapper label {
    transition: color 0.2s ease;
}

.filament-forms-field-wrapper:focus-within label {
    color: rgba(var(--primary-600-rgb), 1);
}

/* Custom slider styling */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(to right,
    rgba(var(--primary-500-rgb), 1) 0%,
    rgba(var(--primary-500-rgb), 1) 50%,
    rgba(var(--gray-200-rgb), 1) 50%,
    rgba(var(--gray-200-rgb), 1) 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-600);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-600);
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

input[type=range]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Animation classes */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Enhanced buttons */
.filament-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.filament-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.filament-button:hover::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Add responsive adjustments */
@media (max-width: 640px) {
    .steps-indicator {
        display: none;
    }

    .premium-value {
        font-size: 1.875rem;
    }
}
