:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-light: #fff7ed;
    --orange-border: #fed7aa;
    --text: #3b2a20;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, sans-serif;
    color: var(--text);
    background: var(--orange-light);
}

/* header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: var(--orange);
    color: #fff;
}

.brand { font-size: 20px; letter-spacing: 1px; }

.profile {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fff;
    color: var(--orange-dark);
    font-weight: bold;
    cursor: not-allowed;
}

/* sidebar + content */
.layout { flex: 1; display: flex; }

aside {
    width: 200px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border-right: 1px solid var(--orange-border);
}

aside a {
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
}

aside a:hover { background: var(--orange-light); }
aside a.active { background: var(--orange); color: #fff; }
aside .logout { margin-top: auto; color: var(--orange-dark); }

main { flex: 1; min-width: 0; padding: 24px; }
main.narrow { max-width: 380px; margin: 40px auto 0; }
h1 { margin-top: 0; font-size: 22px; }

/* white card used for forms and tables */
.card, form, table {
    background: #fff;
    border: 1px solid var(--orange-border);
    border-radius: 8px;
}

form { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.filters { flex-direction: row; align-items: center; margin-bottom: 16px; padding: 12px; }
.filters label { flex-direction: row; align-items: center; white-space: nowrap; }
.filters input[type="email"] { flex: 1; }

input, select, button { padding: 8px 10px; font: inherit; }
input, select { border: 1px solid var(--orange-border); border-radius: 6px; }
input:focus, select:focus { outline: 2px solid var(--orange); border-color: var(--orange); }

button {
    border: none;
    border-radius: 6px;
    background: var(--orange);
    color: #fff;
    cursor: pointer;
}
button:hover { background: var(--orange-dark); }

.password-field { position: relative; display: flex; }
.password-field input { flex: 1; padding-right: 40px; }
.toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 10px;
    display: flex;
    align-items: center;
    background: none;
    color: var(--orange-dark);
}
.toggle-password:hover { background: none; color: var(--orange); }

table { width: 100%; border-collapse: separate; border-spacing: 0; margin-bottom: 16px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--orange-light); }
th { background: var(--orange-light); }

.message { margin: 0; min-height: 1em; color: var(--orange-dark); }

/* footer */
footer {
    padding: 12px 24px;
    text-align: center;
    font-size: 14px;
    background: #fff;
    border-top: 1px solid var(--orange-border);
}
