/*
 * Basic stylesheet for the modernised LabDB application.
 *
 * This style uses a warm colour palette inspired by the user's
 * provided palette.  The design emphasises readability, clarity and
 * simplicity.  Feel free to fine-tune colours or spacing to suit
 * specific preferences.
 */

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #FFF6E8; /* very light beige background */
    color: #333;
    height: 100%;
}

/* Navigation bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #A65400; /* warm brown */
    color: #fff;
    padding: 0.5rem 1rem;
}
.navbar .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
}
.navbar nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
.navbar nav a:hover,
.navbar nav a.active {
    background-color: #FE7D00; /* highlight orange */
}

/* Main content area */
.content {
    /*
     * Give the main content area horizontal breathing room by adding
     * padding on the left and right.  Using percentages keeps the
     * spacing responsive relative to the viewport width.  Adjust
     * these values if you prefer more or less margin.  A top and
     * bottom padding is also applied to separate content from the
     * navigation bar and footer.
     */
    padding: 1rem 10% 2rem 10%;
    min-height: calc(100vh - 100px); /* adjust for navbar and footer */
}

/* Footer */
.footer {
    background-color: #FDCB9E; /* pale orange */
    text-align: center;
    padding: 0.5rem;
    color: #5D4037;
    font-size: 0.9rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
th, td {
    padding: 0.5rem;
    border: 1px solid #D7CCC8;
    text-align: left;
}
th {
    background-color: #A65400;
    color: #fff;
}
tr:nth-child(even) {
    background-color: #FFE6CC;
}
tr:hover {
    background-color: #FFD8B2;
}

/* Forms */
form {
    margin: 1rem 0;
}
label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: bold;
}
input[type="text"],
input[type="email"],
input[type="password"],
select, textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #D7CCC8;
    border-radius: 4px;
    background-color: #FFF;
}
textarea {
    height: 100px;
}
button,
input[type="submit"],
a.button {
    background-color: #FE7D00;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    margin-right: 0.5rem;
}
button:hover,
input[type="submit"]:hover,
a.button:hover {
    background-color: #A65400;
}

/* Alerts */
.alert {
    background-color: #FFCDD2;
    color: #C62828;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Success messages */
.success {
    background-color: #C8E6C9;
    color: #2E7D32;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Landing/hero section */
.hero {
    text-align: center;
    padding: 2rem 1rem;
}
.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #A65400;
}
.hero .intro {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}
.hero img {
    max-width: 70%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}
.hero .cta .button {
    margin: 0.5rem;
}

/*
 * Login form styling
 *
 * Centre the login form in a modestly sized box with a subtle border
 * and slight drop shadow.  This helps distinguish the form from the
 * page background while keeping the design consistent with the rest
 * of the site.  The max-width prevents the form from stretching too
 * wide on large screens, and the auto margins centre it within the
 * content area.
 */
.login-box {
    max-width: 400px;
    margin: 2rem auto;
    padding: 1rem 1.5rem;
    border: 1px solid #D7CCC8;
    border-radius: 8px;
    background-color: #FFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.login-box h2 {
    margin-top: 0;
    text-align: center;
    color: #A65400;
}
.login-box .signin-link {
    text-align: center;
}

/* Signup form styling */
.signup-box {
    max-width: 500px;
    margin: 2rem auto;
    padding: 1rem 1.5rem;
    border: 1px solid #D7CCC8;
    border-radius: 8px;
    background-color: #FFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.signup-box h2 {
    margin-top: 0;
    text-align: center;
    color: #A65400;
}
.signup-box .note {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
    text-align: center;
}
.required {
    color: #C62828;
}

/* Honeypot input is hidden from real users.  Bots will often fill in
 * all visible fields, including this one.  If it contains any data on
 * submission we treat the sign-up as spam. */
.honeypot {
    display: none;
}

/*
 * Settings page layout
 *
 * These classes style the "My Settings" page so that the details
 * and password forms are presented as separate cards centred on the
 * page.  Each card is limited to half the width of its container on
 * large screens, with a maximum width to ensure readability.
 */
.settings-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.details-box, .password-box {
    width: 50%;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border: 1px solid #D7CCC8;
    border-radius: 8px;
    background-color: #FFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.details-box h2, .password-box h2 {
    margin-top: 0;
    text-align: center;
    color: #A65400;
}
/* Note element for informational messages */
.note {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
    text-align: center;
}