body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f4f6f9;
    color: #333;
}
h1, h2 { color: #1a1a2e; }
a { color: #4361ee; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Login */
.login-box {
    max-width: 360px;
    margin: 80px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* Dashboard buttons */
.dashboard {
    max-width: 500px;
    margin: 60px auto;
    text-align: center;
}
.dashboard button {
    display: block;
    width: 100%;
    margin: 12px 0;
    padding: 18px;
    font-size: 1.2em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #4361ee;
    color: #fff;
    transition: background 0.2s;
}
.dashboard button:hover { background: #3a56d4; }

/* Forms */
form {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
label { display: block; font-weight: bold; margin-top: 12px; }
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
input[type="submit"] {
    margin-top: 16px;
    padding: 10px 24px;
    background: #4361ee;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
input[type="submit"]:hover { background: #3a56d4; }

/* Tables */
table {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #1a1a2e; color: #fff; }
tr:hover { background: #f0f0f0; }

/* Nav bar */
.navbar {
    max-width: 800px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.user-select { display: flex; flex-wrap: wrap; align-items: center; }
.user-select .user-btn {
    margin: 4px;
    padding: 6px 14px;
    background: #f77f00;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s;
}
.user-select .user-btn:hover { background: #e36c00; }
.user-select .user-btn input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.user-select .user-btn:has(input:checked) { background: #4361ee; }
/* fallback for browsers without :has() — JS-free checked state still works via label activation; color falls back to hover */
.msg { padding: 10px; border-radius: 4px; margin-bottom: 12px; text-align: center; }
.msg-error { background: #fdd; color: #b00; }
.msg-ok { background: #dfd; color: #060; }
.perm-check { width: auto; display: inline-block; margin-right: 8px; }

/* Task description textarea */
textarea.task-desc {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-size: 1em;
    min-height: 84px;
    max-height: 84px;
    overflow-y: auto;
    resize: none;
}
