:root {
    --primary-color: #007bff; /* Blue */
    --secondary-color: #6c757d; /* Grey */
    --success-color: #28a745; /* Green */
    --danger-color: #dc3545; /* Red */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* --- Form Sections --- */
.form-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-section h3 {
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    color: #495057;
    font-size: 1.1rem;
}

/* --- Grid Layout --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

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

.input-group label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-group input, 
.input-group select {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.input-group input:focus, 
.input-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

/* --- Button --- */
button#predictBtn {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

button#predictBtn:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
}

/* --- Result Card --- */
.result-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 5px solid var(--secondary-color); /* Default border */
    transition: all 0.3s ease-in-out;
}

.hidden {
    display: none;
}

.result-content {
    font-size: 1.5rem;
    margin-top: 15px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    background-color: var(--secondary-color);
}

.badge-success {
    background-color: var(--success-color);
}

.badge-danger {
    background-color: var(--danger-color);
}

#statusText {
    font-weight: bold;
    color: #555;
    margin-left: 10px;
}