/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #333;
    background-color: #f9f9f9;
}

a {
    color: #005bb5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---------- Layout ---------- */

header {
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 40px;
}

header h1 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 600;
}

header h2 {
    margin-top: 10px;
    font-size: 1.3em;
    font-weight: 400;
    color: #555;
}

main,
section {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

h2 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #222;
}

/* ---------- Cards ---------- */

.card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* ---------- Tables ---------- */

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

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

th {
    background: #f2f2f2;
    text-align: center;
}

.schedule-tables {
    display: flex;
    gap: 20px;              /* space between tables */
    align-items: flex-start;
}

.schedule-tables table {
    width: auto;            /* allow natural width */
    flex: 1;                /* distribute available space */
    min-width: 0;           /* avoids overflow issues */
    flex-direction: row;
}

.schedule-tables table:first-child {
    flex: 0 0 260px;        /* fixed, readable width */
}

.schedule-tables table:last-child {
    flex: 1;
}

@media (max-width: 768px) {
    .schedule-tables {
        flex-direction: column;
    }

    .schedule-tables table {
        width: 100%;
    }
}


/* ---------- Forms ---------- */

form {
    max-width: 600px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[readonly] {
    background: #f2f2f2;
}

button {
    background: #005bb5;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #004494;
}


/*---------- better form --------*/
.card form input,
.card form select {
    width: 100%;
    box-sizing: border-box;
}


/* ---------- Admin ---------- */

.deleted {
    background-color: #f5c6cb;
}

.actions form {
    display: inline;
}


/* ---------- Acknowledgements ---------- */

.acknowledgements {
    text-align: center;
}

.acknowledgements img {
    max-height: 100px;
    margin: 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    header h2 {
        font-size: 1.1em;
    }

    h2 {
        font-size: 1.4em;
    }
}
