/* Upeddy shared light gray theme with monospaced typography */
/* Typography: Roboto Mono from Google Fonts (linked in pages), with robust monospace fallbacks */
:root{
  --bg: #fafafa;
  --panel: #ffffff;
  --fg: #1f1f1f;
  --muted: #6b6b6b;
  --border: #e0e0e0;
  --border-strong: #d0d0d0;
  --btn-bg: #2f2f2f;
  --btn-bg-secondary: #5a5a5a;
  --btn-text: #ffffff;
  --ok: #117a37;
  --down: #a62727;
  --table-header: #f2f2f2;
}

html, body {
  margin: 20px;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 15px;
  line-height: 1.5;
}

body.container, body > .container { /* optional wrapper if used later */
  margin: 20px;
}

h1, h2, h3 {
  margin: 0 0 16px 0;
  font-weight: 600;
}

p { margin: 0 0 12px 0; }
small { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 14px;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.btn.secondary { background: var(--btn-bg-secondary); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* Forms */
label { display: block; margin-top: 8px; }
input[type=text], input[type=url], input[type=number], input[type=password] {
  width: 100%;
  max-width: 720px;
  padding: 12px 14px;
  border: 1px solid #000;
  border-radius: 2px;
  background: #fff;
  color: var(--fg);
  font-size: 16px;
}

fieldset {
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px;
  background: var(--panel);
}
legend { color: #222; }

.hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.error { color: #a00; margin-bottom: 10px; }

/* Layout helpers */
.top { display:flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.actions a { margin-right: 8px; }
.panel { background: var(--panel); padding: 16px; border: 1px solid var(--border); border-radius: 8px; }

/* Tables */
table { border-collapse: collapse; width: 100%; background: var(--panel); }
th, td { border: 1px solid var(--border); padding: 8px 10px; vertical-align: top; }
th { background: var(--table-header); text-align: left; }
.ok { color: var(--ok); font-weight: bold; }
.down { color: var(--down); font-weight: bold; }

/* Modal/overlay used on status selection pages */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal { background: #fff; width: 100%; max-width: 920px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2); display:flex; flex-direction: column; max-height: 90vh; }
.modal-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display:flex; justify-content: space-between; align-items: center; }
.modal-title { font-weight: 600; }
.modal-body { padding: 12px 16px; overflow: auto; }
.modal-footer { padding: 12px 16px; border-top: 1px solid var(--border); display:flex; justify-content: flex-end; gap: 8px; }
.close { background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: #333; }

/* Grid for status checkboxes */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.status-item { display:flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.summary { color: #333; font-size: 13px; }

/* Links */
a { color: #222; }
a:hover { color: #000; }

/* Utility spacing for pages that previously had body margin */
.page { margin: 20px; }
