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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a, #111827);
    color: white;
    min-height: 100vh;
    padding: 40px 20px;
}

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

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

header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

header p {
    color: #cbd5e1;
    margin-bottom: 10px;
    line-height: 1.6;
}

header small {
    color: #94a3b8;
}

.form-card,
.result-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

h2 {
    margin: 25px 0 15px;
    color: #38bdf8;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: bold;
}

input,
select {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 8px;
}

button {
    width: 100%;
    margin-top: 25px;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: #38bdf8;
    color: #0f172a;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    background: #7dd3fc;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.result-card {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.result-card.show {
    opacity: 1;
    transform: translateY(0);
}

.high-risk {
    border: 2px solid #ef4444;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.35);
}

.low-risk {
    border: 2px solid #22c55e;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.35);
}

#predictionText {
    font-size: 1.5rem;
    margin-top: 15px;
}

#probabilityText {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-top: 10px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .form-card,
    .result-card {
        padding: 20px;
    }
}