:root {
  --navy: #0b2a52;
  --navy-dark: #071b38;
  --azure: #1f6fd1;
  --azure-light: #eaf2fc;
  --ink: #1a2733;
  --muted: #5b6b7a;
  --white: #ffffff;
  --border: #dde6f0;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 42, 82, 0.08);
  --red: #c0392b;
  --green: #1e824c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--azure-light);
  line-height: 1.5;
  padding-bottom: 40px;
}

.app-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header img { height: 36px; }
.app-header h1 { font-size: 1.1rem; margin: 0; }
.app-header .logout-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.container { max-width: 560px; margin: 0 auto; padding: 20px 16px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

h2 { color: var(--navy); font-size: 1.3rem; margin: 0 0 16px; }
h3 { color: var(--navy); font-size: 1rem; margin: 0 0 8px; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin: 14px 0 6px;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea,
select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
}

textarea { resize: vertical; min-height: 60px; }

.pin-input {
  font-size: 2rem;
  text-align: center;
  letter-spacing: 0.5em;
  padding: 14px;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  margin-top: 16px;
}

.btn-primary { background: var(--azure); color: var(--white); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.checklist-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}

.checklist-item label.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin: 0;
  cursor: pointer;
}

.checklist-item input[type="checkbox"] { width: 20px; height: 20px; }

.checklist-item textarea { margin-top: 8px; }

.file-input-row {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin-top: 8px;
}

.file-input-row input { width: 100%; }

.file-count {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}

.error-banner {
  background: #fdecea;
  color: var(--red);
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.success-banner {
  background: #e8f5e9;
  color: var(--green);
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  text-align: center;
}

.hidden { display: none !important; }

.shift-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.shift-row:last-child { border-bottom: none; }

.shift-row .meta { font-size: 0.85rem; color: var(--muted); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-new { background: #fff3cd; color: #856404; }
.badge-reviewed { background: #d4edda; color: var(--green); }
.badge-flagged { background: #fdecea; color: var(--red); margin-bottom: 4px; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.media-grid img, .media-grid video {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
