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

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

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 800px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.2rem;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.prediction-form {
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

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

label {
    color: #34495e;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

input {
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

input:hover {
    border-color: #bdc3c7;
    transform: translateY(-1px);
}

.predict-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.predict-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
}

.predict-btn:active {
    transform: translateY(-1px);
}

.prediction-result {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    color: white;
    margin-top: 25px;
    animation: slideIn 0.5s ease;
}

.prediction-result h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.result-value {
    font-size: 1.2rem;
    font-weight: 500;
}

.prediction-score {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-top: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-card {
        padding: 25px;
        margin: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    input {
        padding: 12px 16px;
    }
    
    .predict-btn {
        padding: 15px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}