/* Dawam platform — interim styling in the spirit of the owner's "Organic" template (to be replaced by the
   Claude Design delivery once the design project is reachable from this machine). */
:root {
  --bg: #f6f3ec; --card: #ffffff; --ink: #1f2a24; --muted: #6b7570; --line: #e6e1d6;
  --accent: #2f6b4f; --accent-2: #8fb58a; --warn: #a8611a; --danger: #a33b2e; --ok: #2f6b4f; --sand: #eee7d8;
  --radius: 18px; --shadow: 0 10px 30px rgba(31, 42, 36, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Naskh Arabic", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth .card { width: 100%; max-width: 440px; }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.brand .mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.brand h1 { font-size: 20px; margin: 0; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=email], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf7; font: inherit; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-2); border-color: var(--accent); }
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 600; cursor: pointer; background: var(--accent); color: #fff; }
.btn.secondary { background: var(--sand); color: var(--ink); }
.btn.danger { background: var(--danger); }
.btn.warn { background: var(--warn); }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.block { width: 100%; margin-top: 20px; }
.msg { border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 14px; }
.msg.error { background: #f8e4e0; color: var(--danger); }
.msg.info { background: #e8f1ea; color: var(--accent); }
.msg.warn { background: #f7ead8; color: var(--warn); }
.hint { color: var(--muted); font-size: 13px; line-height: 1.7; }
.links { margin-top: 16px; font-size: 13px; display: flex; justify-content: space-between; }
/* panel layout */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #23342b; color: #e9efe9; padding: 24px 18px; }
.side .brand h1 { color: #fff; }
.side .brand small { color: #b7c6bb; }
.side nav a { display: block; color: #d7e3d9; padding: 10px 12px; border-radius: 10px; margin: 4px 0; }
.side nav a.active, .side nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.side .foot { margin-top: 30px; font-size: 12px; color: #9fb3a5; }
main.content { padding: 28px 32px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.topbar h2 { margin: 0; font-size: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.stat b { display: block; font-size: 26px; }
.stat span { color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
th, td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
th { background: var(--sand); color: var(--muted); font-weight: 600; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.active { background: #e2efe5; color: var(--ok); }
.pill.suspended { background: #f7ead8; color: var(--warn); }
.pill.expired { background: #f8e4e0; color: var(--danger); }
.pill.provisioning, .pill.failed, .pill.queued, .pill.running { background: #e9e6f5; color: #4c3f8f; }
.pill.done { background: #e2efe5; color: var(--ok); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 18px; }
.box h3 { margin: 0 0 12px; font-size: 16px; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; direction: ltr; unicode-bidi: embed; }
.once { background: #fff8e1; border: 1px dashed var(--warn); border-radius: 12px; padding: 14px; margin: 14px 0; }
.once code { font-size: 18px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
dt { color: var(--muted); }
@media (max-width: 860px) { .shell { grid-template-columns: 1fr; } .side { padding: 14px; } .two { grid-template-columns: 1fr; } main.content { padding: 16px; } }
