:root {
  --gb-navy: #142b4f;
  --gb-red: #e3342f;
  --gb-blue: #1f6feb;
  --gb-grey: #5b6b7b;
  --gb-bg: #f4f6f8;
  --gb-border: #d6dde4;
  --gb-ok: #1a7f37;
  --gb-error: #b42318;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gb-navy);
  background: var(--gb-bg);
}

.app-header {
  background: #ffffff;
  color: var(--gb-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  height: 64px;
  width: auto;
}

.brand-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gb-navy);
}

/* Red rule beneath the white header (matches the Job Reports portal). */
.brand-rule {
  height: 4px;
  background: var(--gb-red);
}

.user-area {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gb-navy);
  text-align: right;
}

.user-area .link {
  color: var(--gb-navy);
  text-decoration: none;
  font-weight: 600;
}

.user-area .link:hover {
  text-decoration: underline;
}

/* Responsive: stack the header neatly on narrow screens. */
@media (max-width: 560px) {
  .app-header {
    padding: 14px 16px;
  }

  .brand-logo {
    height: 48px;
  }

  .brand-title {
    font-size: 22px;
  }
}

.container {
  max-width: 720px;
  margin: 24px auto;
  padding: 0 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--gb-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.05);
}

h1 {
  margin-top: 0;
  font-size: 1.4rem;
}

.muted {
  color: var(--gb-grey);
  font-size: 0.9rem;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field > span {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

input[type="text"],
input[type="date"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--gb-border);
  border-radius: 6px;
  font: inherit;
  color: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

.actions {
  margin-top: 8px;
}

.btn {
  display: inline-block;
  background: var(--gb-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: #1857c4;
}

.link {
  color: #cde0ff;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.result {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.result-ok {
  background: #e6f4ea;
  border: 1px solid #b7dfc2;
  color: var(--gb-ok);
}

.result-error {
  background: #fdecea;
  border: 1px solid #f5c2bd;
  color: var(--gb-error);
}

.result-ok div {
  margin-top: 4px;
}

.link-download {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--gb-blue);
  text-decoration: none;
}

.link-download:hover {
  text-decoration: underline;
}

.result-warning {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff6e6;
  border: 1px solid #e5c07a;
  color: #7a5a00;
  font-size: 0.92rem;
}
