body {
    background: #f5f6fa;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    text-align: center;
    width: 320px;
}

h2 {
    margin-bottom: 20px;
    color: #333;
}

input {
    width: 90%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

button {
    width: 95%;
    padding: 10px;
    background-color: #4c84ff;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

button:hover {
    background-color: #3763d4;
}

a {
    color: #4c84ff;
    text-decoration: none;
}

.error {
    color: red;
    margin-top: 10px;
}
/* ========== DASHBOARD LAYOUT EXTENSIONS ========== */

/* Layout */
body.dashboard {
    display: block;
    height: auto;
    justify-content: unset;
    align-items: unset;
    background: #f5f6fa;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}

/* Top header bar */
.topbar {
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar .brand {
    font-weight: 700;
    color: #333;
    font-size: 18px;
}
.topbar .nav a {
    color: #4c84ff;
    margin-left: 15px;
    text-decoration: none;
    font-weight: 500;
}
.topbar .nav a:hover {
    text-decoration: underline;
}

/* Dashboard grid layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px auto;
    max-width: 1000px;
    padding: 0 20px;
}

/* Card design */
.card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    text-align: left;
}
.card h3, .card h4 {
    margin-top: 0;
}
.card p {
    color: #444;
}

/* Stat card */
.stat {
    text-align: center;
}
.stat-num {
    font-size: 40px;
    font-weight: 800;
    color: #333;
}
.stat-label {
    color: #666;
    margin-top: 6px;
}

/* Footer */
footer {
    text-align: center;
    color: #888;
    padding: 25px 0;
    margin-top: 30px;
    font-size: 14px;
}
/* ===== DASHBOARD LAYOUT ===== */
body.dashboard {
    display: block;
    height: auto;
    justify-content: unset;
    align-items: unset;
    background: #f5f6fa;
    margin: 0;
    padding: 0;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar .brand {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}
.topbar .nav a {
    margin-left: 15px;
    color: #4c84ff;
    text-decoration: none;
    font-weight: 500;
}
.topbar .nav a:hover {
    text-decoration: underline;
}

.page {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.card h3, .card h4 {
    margin-top: 0;
}
.stat {
    text-align: center;
}
.stat-num {
    font-size: 40px;
    font-weight: 800;
}
.stat-label {
    color: #666;
}
.footer {
    text-align: center;
    color: #888;
    padding: 20px 0;
    margin-top: 30px;
}
/* radio alignment */
.form-row { margin: 8px 0 12px; }
.form-label { display:block; margin-bottom:6px; }

.mode-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;        /* allows wrap on small screens */
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;    /* keeps label on one line */
}

@media (max-width: 600px) {
  .mode-row { gap: 12px; }
}
