:root {
  --charcoal: #2b2f31;
  --charcoal-light: #3a3f42;
  --lime: #a4d233;
  --lime-dark: #8bb32a;
  --white: #ffffff;
  --grey-bg: #f4f5f4;
  --red: #c0392b;
  --amber: #b8860b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Myriad Pro", Helvetica, Arial, sans-serif;
  background: var(--grey-bg);
  color: var(--charcoal);
}

.topbar {
  background: var(--charcoal);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
}

.brand { font-weight: 600; font-size: 1.1rem; }
.brand-sub { color: var(--lime); font-weight: 400; font-size: 0.85rem; margin-left: 8px; }

nav a {
  color: var(--white);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}
nav a:hover { color: var(--lime); }
nav .whoami { margin-left: 18px; color: #bbb; font-size: 0.9rem; }
nav .logout { color: #e08080; }

.content {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 20px;
}

h1 { color: var(--charcoal); }
h2 { color: var(--charcoal-light); margin-top: 2rem; }

.card {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #555;
  gap: 4px;
}

input, select {
  padding: 9px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  background: var(--lime);
  color: var(--charcoal);
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}
button:hover { background: var(--lime-dark); }
button:disabled { background: #ccc; cursor: not-allowed; }
button.danger { background: var(--red); color: var(--white); padding: 4px 10px; font-size: 0.85rem; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9rem;
}
table.log th, table.log td, table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
}
table.log th { background: var(--charcoal); color: var(--white); }

.status-ok { color: #2e7d32; font-weight: 600; }
.status-error { color: var(--red); font-weight: 600; }
.status-skipped { color: var(--amber); font-weight: 600; }

.error { color: var(--red); font-weight: 600; }
.warn { color: var(--amber); }
.hint, .note { color: #777; font-size: 0.85rem; }
code { background: #eee; padding: 1px 5px; border-radius: 3px; }

/* login page */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--charcoal);
  font-family: "Segoe UI", "Myriad Pro", Helvetica, Arial, sans-serif;
}
.login-box {
  background: var(--white);
  padding: 36px 40px;
  border-radius: 8px;
  width: 320px;
  text-align: center;
}
.login-box h1 { font-size: 1.2rem; margin-bottom: 0; }
.login-box .brand-sub { display: block; margin: 4px 0 20px; color: var(--lime-dark); }
.login-box form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
