/* Custom styles for ValuationPro */

/* Table improvements */
.property-row input:focus {
    outline: 2px solid #3B82F6;
    outline-offset: -2px;
    border-radius: 4px;
}

.property-row input::placeholder {
    color: #9CA3AF;
}

/* Weight bar animations */
.weight-fill {
    transition: width 0.3s ease;
}

/* Hover effects */
.property-row:hover {
    background-color: #F9FAFB;
}

/* Number formatting */
.currency::before {
    content: '€';
}

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

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3B82F6;
    border-radius: 50%;
    border-top: 2px solid transparent;
    animation: spin 1s linear infinite;
}

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

/* Responsive improvements */
@media (max-width: 640px) {
    .property-row td {
        padding: 12px 8px;
    }
    
    .property-row input {
        font-size: 14px;
    }
}

/* Impact indicators */
.positive-impact {
    color: #10B981;
}

.negative-impact {
    color: #EF4444;
}

/* Property icon styling */
.property-row .bg-green-100 {
    background-color: #DCFCE7;
}

.property-row .text-green-600 {
    color: #16A34A;
}

/* Adjustment impact styling to match image */
.adjustment-impact {
    font-weight: 500;
}

/* Better number input styling */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

/* Custom table styling */
.table-fixed {
    table-layout: fixed;
}

/* Smooth transitions */
* {
    transition: all 0.2s ease;
}

/* Mobile collapse functionality */
.mobile-property-card {
    transition: opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease;
}

.mobile-property-card.mobile-collapsed {
    opacity: 1;
    transform: translateY(0);
}

.mobile-collapse-toggle {
    transition: all 0.3s ease;
}

.mobile-collapse-toggle .toggle-btn {
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.mobile-collapse-toggle .toggle-btn:hover {
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-collapse-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.mobile-collapse-toggle .toggle-icon.rotate-180 {
    transform: rotate(180deg);
}

/* Ensure mobile cards are hidden smoothly */
@media (max-width: 768px) {
    .mobile-property-card {
        animation: fadeIn 0.3s ease-in-out;
    }
}

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