/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

header {
    background-color: #343a40;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    background-image: url('../images/header-bg.jpg');
    background-size: cover;
    background-position: center;
}

header h1 {
    margin: 0;
    font-size: 3em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
    margin: 10px 0 0 0;
    font-size: 1.5em;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Navigation Styles */
nav {
    background-color: #007bff;
    overflow: hidden;
}

nav a {
    float: left;
    color: #fff;
    text-align: center;
    padding: 16px 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
}

nav a:hover {
    background-color: #0056b3;
    color: #fff;
}

nav a.active {
    background-color: #0056b3;
}

/* Main Content Styles */
main {
    padding: 40px;
    max-width: 1200px;
    margin: auto;
}

.section {
    margin-bottom: 60px;
}

.section h2 {
    color: #007bff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    width: 50px;
    height: 4px;
    background-color: #28a745;
    position: absolute;
    left: 0;
    bottom: -10px;
}

p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
    font-size: 1.1em;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.form-control {
    flex: 1;
    padding: 12px;
    font-size: 1.1em;
    border: 2px solid #ccc;
    border-radius: 4px;
}

.button-group {
    display: flex;
}

.btn {
    background-color: #28a745;
    color: #fff;
    padding: 12px 20px;
    margin-left: 10px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    border-radius: 4px;
}

.btn i {
    margin-right: 8px;
}

.btn:hover {
    background-color: #218838;
}

/* Visualization Styles */
#chart {
    margin-top: 40px;
    text-align: center;
}

#parsed-features,
#feature-contributions {
    margin-top: 40px;
}

#prediction-result {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 20px 0;
}

.prediction-box {
    max-width: 600px;
    margin: 0 auto;
}

.prediction-box p {
    margin: 10px 0;
    line-height: 1.5;
}

.probability-display {
    color: #007bff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.features-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.features-table th,
.features-table td {
    border: 1px solid #ddd;
    padding: 14px;
    text-align: center;
}

.features-table th {
    background-color: #007bff;
    color: #fff;
}

.features-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.features-table tr:hover {
    background-color: #e9ecef;
}

/* Footer Styles */
footer {
    background-color: #343a40;
    padding: 30px 0;
    text-align: center;
    color: #ccc;
}

footer p {
    margin: 5px 0;
    font-size: 1em;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    nav a {
        float: none;
        width: 100%;
        text-align: left;
        padding-left: 20px;
    }

    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        margin-top: 10px;
        margin-left: 0;
    }
}