* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    /* Bright, elegant oceanic light theme */
    background: #f0f9ff;
    background-image: radial-gradient(circle at top left, #e0f2fe, #f0f9ff);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1e293b;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Glassmorphism Container (Light Version) */
.glass-container {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
    animation: fadeIn 0.8s ease-out;
}

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

h1 {
    color: #0284c7;
    font-size: 32px;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    font-size: 15px;
    color: #64748b;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 18px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: #0f172a;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input:focus, select:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Bright Theme Button */
.glow-on-hover {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.2);
}

.glow-on-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(2, 132, 199, 0.3);
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.glow-on-hover:active {
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

/* Prediction Result Styles */
#result {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    animation: popIn 0.8s cubic-bezier(0.1, 0.8, 0.2, 1);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

#result-text {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.survived { color: #059669; } /* Deep Emerald */
.perished { color: #e11d48; } /* Deep Rose */

.prob-bar-container {
    width: 100%;
    height: 16px;
    background: rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.prob-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #fb7185, #fcd34d, #34d399); /* Rose to Amber to Emerald */
    border-radius: 8px;
    transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

#prob-text {
    font-size: 15px;
    color: #475569;
}

/* Titanic Graphic */
.titanic-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 3px solid white;
}
