html {
    /* Set a responsive base font size that doesn't get too small or too large */
    /* This ensures that padding and borders are included in the element's total width and height */
    box-sizing: border-box;
    font-size: 16px; /* Set a standard base font size */
}

body {
    background-color: #f0f0f0; /* Light gray background */
    /* Add a subtle, organic background pattern */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e0e0e0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: #333333; /* Dark gray text for readability */
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}
/* Inherit box-sizing for all elements, making layout management much easier */
*, *:before, *:after {
    box-sizing: inherit;
}

.container {
    background-color: #ffffff; /* White container background */
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Softer shadow */
    text-align: center;
    width: 90%;
}

.admin-container {
    width: 95%;
    max-width: 1200px;
}

h1 {
    font-family: 'Inter', sans-serif;
    color: #4A6B4D; /* Dark natural green */
    font-size: 3em;
    margin-bottom: 0.5em;
}

p {
    color: #4A6B4D; /* Dark natural green for consistency */
    font-size: 1.5em;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

select, input[type="text"], button {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    padding: 0.5em;
    border-radius: 5px;
    border: 1px solid #5A6D5C; /* Greenish-gray border */
    background-color: #f9f9f9; /* Slightly off-white background */
    color: #333333; /* Dark text */
    margin-bottom: 1em;
}

button {
    font-family: 'Inter', sans-serif; /* Using a greenish-gray for the button */
    background-color: #7b7877; /* Medium gray */
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #6c757d; /* Darker gray on hover */
}

a.button-link {
    font-family: 'Inter', sans-serif;
    font-size: 1.2em;
    padding: 0.5em 1em;
    border-radius: 5px;
    background-color: #5A6D5C; /* Greenish-gray */
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    color: #333333;
}

th, td {
    border: 1px solid #5A6D5C; /* Greenish-gray border */
    padding: 0.8em;
    text-align: left;
}

th {
    background-color: #4A6B4D; /* Dark natural green */
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    html {
        font-size: 18px; /* Slightly larger base font for mobile readability */
    }

    body {
        display: block; /* Override flex centering for a natural top-to-bottom flow */
    }

    .container {
        width: 100%;
        min-height: 100vh; /* Ensure container fills the screen if content is short */
        border-radius: 0; /* Full screen, no radius needed */
        box-shadow: none; /* No shadow needed for full screen */
        padding: 2em 1em;
    }

    h1 {
        font-size: 2.5em;
    }

    p {
        font-size: 1.3em;
    }

    label, select, input[type="text"], button, a.button-link {
        font-size: 1.2em; /* Increase font size for better readability */
    }

    /* Make table more readable on mobile */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    td {
        border: none;
        border-bottom: 1px solid #dddddd; /* Lighter border for mobile table rows */
        padding-left: 50%;
        position: relative;
        text-align: right;
    }

    td:before {
        /* Add labels to table data */
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        content: attr(data-label); /* Use the data-label attribute as content */
    }

    /* Styles for question form on mobile */
    .question-form-options {
        text-align: left;
        width: 100%; /* Use full width */
        font-size: 1.2rem; /* Increase font size for options */
    }

    .question-form-options label {
        display: block; /* Make each option take a full line */
        padding: 0.8em 0.5em;
        border-radius: 5px;
        border: 1px solid #cccccc;
        margin-bottom: 0.5em;
        background-color: #f9f9f9;
    }

    .question-form-options input[type="radio"] {
        margin-right: 10px;
        transform: scale(1.5); /* Make radio button bigger */
    }
}
