/* === Base Layout === */
/* Created by Brett Caudill :) */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #003366;
    color: white;
    padding: 1rem;
    text-align: center;
}

nav {
    background-color: #00509e;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 80px; /* Lift content above sticky footer */
}

input,
select,
button {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    font-size: 1rem;
}

button {
    background-color: #003366;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

th {
    background-color: #003366;
    color: white;
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #003366;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    font-size: 13px;
    border-top: 2px solid #002244;
    z-index: 1000;
}

.site-footer p {
    margin: 0;
}

.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 60px;
}

.login-box {
    max-width: 600px;
    width: 100%;
}

.btn {
    padding: 8px 14px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

.btn:hover {
    background-color: #0056b3;
}

/* === Task Planner === */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.task-card {
    background: #f8fbff;
    border: 1px solid #d6e4ff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.task-card--full {
    grid-column: 1 / -1;
}

.task-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.task-card h3 {
    margin: 0;
}

.task-badge {
    background: #003366;
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.task-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.task-item label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
}

.task-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.task-item--empty {
    font-style: italic;
    color: #555;
    justify-content: flex-start;
}

.task-form {
    margin-bottom: 1rem;
}

.task-form button {
    width: auto;
    margin-top: 0.5rem;
}

.link-button {
    background: transparent;
    color: #003366;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.link-button:hover {
    color: #002244;
}