:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #003366;
  --text-dim: #4b638d;
  --accent: #0055aa;
  --accent-light: #e6f0ff;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --shadow: 0 6px 16px rgba(0,0,0,.15);
  --radius: 16px;
}

body {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  background-image: url("../../assets/Background.png");
}
header {
  color: white;
  padding: 50px;
  position: relative;
}

.header-inline h1 {
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.back-link {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  background-color: #ffffff;
  color: #003366;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  margin-top: 10px;
}

.back-link:hover {
  background-color: #cce0ff;
}

.nav-buttons {
  display: flex;
  justify-content: center; /* Center below header */
  gap: 12px;
  margin: 20px 0;
}

.chip {
  background: #f0f4fa;
  border: 1px solid #ccd6e6;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.chip:hover {
  background: #e6eef9;
}

.chip.active {
  background: #003366;
  color: white;
  border-color: #003366;
}

/* main {
  margin: 30px;
  padding: 30px;
  border-radius: 12px;
  background-color: #ffffff;
} */

main {
  /* max-width: 1500px; */
  margin: 0px 30px 30px 30px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
/* Summary cards */
#hull-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.summary-card {
  background: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex: 1;
  text-align: center;
  font-size: 14px;
}

/* Collapsible container */
#baseline-collapse {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
#baseline-collapse summary {
  font-weight: bold;
  cursor: pointer;
  color: #003366;
  margin-bottom: 12px;
}

/* Buttons */
.baseline-actions button {
  padding: 6px 16px;
  font-weight: bold;
  margin-right: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #1976d2;
  color: white;
}
.baseline-actions .reset {
  background: #eee;
  color: #003366;
}
.baseline-actions .download {
  background: #e3f2fd;
  color: #003366;
}
.note {
  font-size: 0.9em;
  color: #888;
  margin-left: 12px;
}

/* Status */
.baseline-status {
  margin: 16px 0;
}
.baseline-status span {
  margin-left: 18px;
}
.highlight {
  color: #1976d2;
  font-weight: bold;
}

/* History */
.baseline-history {
  margin: 16px 0;
}
.baseline-history select {
  margin-left: 8px;
}
.hint {
  margin-left: 12px;
  color: #888;
  font-size: 0.9em;
}

/* Tables */
.table-section {
  margin: 20px 0;
}
table {
  border-collapse: collapse;
  margin-top: 6px;
  width: 100%;
  background: #fff;
}
th, td {
  padding: 6px 10px;
  border: 1px solid #ccc;
  text-align: left;
  font-size: 14px;
}
thead tr {
  background: #f7f7f7;
}
td.on { color: #388e3c; font-weight: bold; }
td.delay { color: #f57c00; font-weight: bold; }
td.early { color: #388e3c; font-weight: bold; }

/* Form */
.form-section {
  margin: 20px 0;
}
.form-section form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.form-section label {
  font-size: 14px;
}
.form-section input,
.form-section select {
  width: 160px;
  padding: 4px 6px;
  border: 1px solid #ccd6e6;
  border-radius: 6px;
}
.form-section button {
  padding: 6px 12px;
  border-radius: 6px;
  background: #ddd;
  cursor: not-allowed;
  border: none;
}

/* Notes */
.notes-section {
  margin: 20px 0;
}
.notes-section ul {
  margin: 8px 0 0 20px;
}
.notes-section li {
  margin-bottom: 6px;
}






.card {
  background: var(--panel);
  border: 1px solid #cfd8e6;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  margin: 0px 0 30px 0;
}

.card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #dbe4f0;
  color: var(--text);
}

.card-h h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .3px;
}

.card-b {
  padding: 16px;
}

.btn {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--text);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: .2s;
}
.btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}
.btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: #004080;
}

#reqForm {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  gap: 16px 24px; /* row gap | column gap */
}

.field {
  display: flex;
  flex-direction: column; /* label on top, input below */
}

.field label {
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 16px;
  color: #003366;
}

.field input,
.field select,
.field textarea {
  width: 100%;              /* full width of the grid cell */
  box-sizing: border-box;   /* include padding in width */
  padding: 6px 10px;
  border: 1px solid #ccd6e6;
  border-radius: 6px;
  font-size: 14px;
}

/* make text area span both columns */
.field textarea {
  grid-column: span 2;
  min-height: 80px;
}



label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
input, select, textarea {
  width: 70%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #b3c2d6;
  background: white;
  color: var(--text);
  outline: none;
  transition: .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,85,170,0.15);
}
textarea { min-height: 84px; resize: vertical; }

table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #dbe4f0;
  font-size: 14px;
  color: var(--text);
}
th { color: var(--text-dim); font-weight: 600; letter-spacing: .3px; }
tbody tr:hover { background: var(--accent-light); }

.status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #ccd6eb;
  display: inline-block;
}
.ok { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.45);} 
.warn { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.45);} 
.bad { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.45);} 

.popup-msg {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4caf50; /* green for success */
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 9999;
  animation: fadeInOut 3s forwards;
}
.popup-msg.warn { background: #f39c12; }
.popup-msg.bad { background: #e74c3c; }

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-10px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}
