:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #333;
    --card-bg: #fff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Navigation */
nav {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary-color);
}

.nav-links a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Forms & Cards */
.card,
.login-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input,
select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #0056b3;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f1f1f1;
}

/* Flashes */
.flashes {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.flashes li {
    background: #e9ecef;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-small:hover {
    background-color: #0056b3;
}

.form-row {
    margin-bottom: 10px;
}

.toggle-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 8px;
    line-height: 1.2;
}

.toggle-btn:hover {
    background-color: #f0f0f0;
}

/* Custom Status Buttons */
/* Hide the actual radio input */
.btn-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

/* Default state for custom buttons */
.btn-custom-yes {
    background-color: #28a745;
    border: 2px solid #28a745;
    color: white;
}

.btn-custom-maybe {
    background-color: #ffc107;
    border: 2px solid #ffc107;
    color: #212529;
}

.btn-custom-no {
    background-color: #dc3545;
    border: 2px solid #dc3545;
    color: white;
}

/* Selected State Styling (Thick Border & Shadow) */
.btn-check:checked+.btn-custom-yes {
    background-color: #28a745;
    border: 4px solid #155724;
    /* Darker green border */
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.6);
    transform: scale(1.05);
    font-weight: bold;
}

.btn-check:checked+.btn-custom-maybe {
    background-color: #ffc107;
    border: 4px solid #856404;
    /* Darker yellow/brown border */
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
    transform: scale(1.05);
    font-weight: bold;
}

.btn-check:checked+.btn-custom-no {
    background-color: #dc3545;
    border: 4px solid #721c24;
    /* Darker red border */
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.6);
    transform: scale(1.05);
    font-weight: bold;
}

/* Hover effects */
.btn-custom-yes:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-custom-maybe:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn-custom-no:hover {
    background-color: #c82333;
    border-color: #bd2130;
}