/* style.css */

/* Reset + global styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #74ebd5 0%, #9face6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container */
.container {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    width: 450px;
    animation: fadeIn 0.8s ease-in-out;
}

/* Heading */
.container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #444;
    font-size: 1.9rem;
    letter-spacing: 1px;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 18px;
}

label {
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
    color: #333;
    font-size: 0.95rem;
}

input, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Input hover + focus */
input:hover, select:hover {
    border-color: #6a5acd;
}

input:focus, select:focus {
    border-color: #6a5acd;
    box-shadow: 0 0 6px rgba(106, 90, 205, 0.5);
    outline: none;
}

/* Button */
button {
    padding: 12px;
    background: linear-gradient(135deg, #6a5acd, #7b68ee);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #5a4bbf, #6a5acd);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

button:active {
    transform: translateY(0);
}

/* Prediction result box */
.result {
    margin-top: 25px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    animation: fadeIn 1s ease-in-out;
}

/* Specific colors for prediction */
.result p {
    margin: 0;
    padding: 10px;
    border-radius: 8px;
}

.result p:first-child {
    background: #ffe0e0;
    color: #d9534f;
}

.result p:last-child {
    background: #e0ffe5;
    color: #28a745;
}

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