/* House Price Predictor Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    color: #1f77b4;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    color: #666;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.input-section, .results-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.input-section h2, .results-section h2 {
    color: #1f77b4;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1f77b4;
}

.form-group input[type="range"] {
    padding: 0;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
}

#ageValue {
    margin-top: 8px;
    font-weight: 600;
    color: #1f77b4;
}

.predict-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1f77b4, #2e8b57);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.predict-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 119, 180, 0.3);
}

.price-display {
    text-align: center;
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 5px solid #1f77b4;
}

.price-label {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

.price-value {
    font-size: 3rem;
    font-weight: bold;
    color: #2e8b57;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.metric-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f77b4;
}

.feature-impact h3 {
    color: #1f77b4;
    margin-bottom: 20px;
}

.impact-bar {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.impact-label {
    width: 120px;
    font-weight: 600;
    color: #555;
}

.impact-visual {
    flex: 1;
    height: 25px;
    background: linear-gradient(90deg, #1f77b4, #87ceeb);
    border-radius: 12px;
    margin: 0 10px;
    position: relative;
}

.impact-value {
    font-weight: 600;
    color: #1f77b4;
    min-width: 80px;
    text-align: right;
}

.info-section {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    color: #1f77b4;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.info-card li:last-child {
    border-bottom: none;
}

.footer {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.footer p {
    color: #666;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .price-value {
        font-size: 2rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section {
    animation: fadeIn 0.5s ease-in-out;
}

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

.loading .predict-btn {
    background: #ccc;
}

.loading .predict-btn::after {
    content: " Loading...";
}
