/*
 * House Hunting Tools UK - Custom Styles
 * Minimal custom CSS to complement Tailwind
 */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Remove number input spinners for cleaner look */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Focus styles for accessibility */
input:focus,
select:focus,
button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Custom animation for results */
.result-appear {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles for calculators */
@media print {
    header,
    footer,
    .no-print {
        display: none;
    }

    .print-only {
        display: block;
    }
}

/* Utility classes */
.currency-input {
    font-variant-numeric: tabular-nums;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error state */
.error-shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Responsive table wrapper */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Better mobile tap targets */
@media (max-width: 768px) {
    button,
    a.button,
    input,
    select {
        min-height: 44px;
    }
}
