body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f9f9f9; /* Light background for elegance */
}

header {
    background: #004080; /* Dark blue header */
    color: white;
    padding: 20px 0;
    border-bottom: 4px solid #ccc;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img {
    max-width: 120px; /* Reduce logo size */
    height: auto;
    margin: 0 auto;
}

nav {
        background-color: #333;
        padding: 10px;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    nav a {
        color: white;
        text-decoration: none;
        margin-right: 15px;
        font-size: 16px;
        font-family: Arial, sans-serif;
        padding: 5px 10px;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    nav a:hover {
        background-color: #555;
    }

    nav a:active {
        background-color: #777;
    }

h1 {
    margin: 10px 0;
    font-size: 24px;
}

main {
    flex: 1; /* Ensures the main content takes up remaining space */
    padding: 20px;
}

footer {
    background: #333;
    color: #fff;
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
    border-top: 4px solid #ccc;
}

footer p {
    margin: 0;
}

footer a {
    color: #fff; /* White color for the link */
    text-decoration: none; /* Keeps it visually distinct */
}

footer a:hover {
    color: #ccc; /* Light gray when hovered */
    text-decoration: underline; /* Underline only on hover for better UX */
}

#plot {
    margin-top: 20px;
    max-width: 100%;
    height: auto;
    border: 2px solid #ccc; /* Border around the plot for better visibility */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for elegance */
}

button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #003366;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

table {
    margin: 20px auto;
    border-collapse: collapse;
    width: 80%;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #f9f9f9;
    color: black;
    font-weight: normal;
}

td {
    background-color: #f9f9f9;
}

td:focus {
    outline: 2px solid #004080;
}

.transform-data {
    margin-top: 20px;
    padding: 15px;
    border: 2px solid #ccc;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.transform-data p {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.transform-data button {
    margin: 5px;
    padding: 10px 15px;
    font-size: 14px;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.transform-data button:hover {
    background-color: #003366;
}

/* QC Container */
#qc-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    justify-content: space-evenly; /* Even spacing between items */
    align-items: flex-start; /* Align items to the top */
    gap: 20px; /* Space between items */
    margin-top: 20px; /* Space above the container */
}

/* QC and Pairplot Images */
#plot, #pairplot {
    max-width: 100%; /* Scale to fit within container */
    height: auto; /* Maintain aspect ratio */
    border: 2px solid #ccc; /* Add a border for better visibility */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for elegance */
}

/* Plot Titles */
#qc-container h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #004080; /* Match header color for consistency */
}
