:root {
  --primary: #0056b3;
  --bg: #f4f7f6;
  --text: #333;
  --panel: #fff;
  --border-color: #000;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 20px;
}

.screen { display: none; }
.screen.active { display: block; }
.hidden { display: none !important; }
.mt-10 { margin-top: 10px; }

/* Dashboard & Auth */
#auth-section {
  max-width: 400px;
  margin: 100px auto;
  background: var(--panel);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

input, textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
button.secondary { background: #ccc; color: #333; }
button:hover { opacity: 0.9; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* JSEA / SWMS Document Layout for PDF */
#swms-container {
  background: var(--panel);
  padding: 30px;
  border-radius: 8px;
  max-width: 1000px;
  margin: 20px auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#swms-document {
  background: white;
  color: black;
  font-size: 12px; /* Small font to match original PDF */
}

/* Header */
.jsea-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.header-center { text-align: center; }
.header-center h2 { margin: 0; font-size: 18px; text-transform: uppercase; color: #b22222; } /* Matches Coastline Red */
.header-center p { margin: 2px 0; font-weight: bold; }
.header-right { text-align: right; }
.header-right h2 { margin: 0; font-size: 24px; }
.header-right p { margin: 0; font-weight: bold; }

/* Sections */
.section-box {
  border: 1px solid var(--border-color);
  padding: 10px;
  margin-bottom: 15px;
}
.section-box h3 {
  background: #eee;
  margin: -10px -10px 10px -10px;
  padding: 5px 10px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 5px; }

/* Checklists */
.checklist-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 5px 0;
}
.checklist-row p { margin: 0; flex-grow: 1; font-weight: bold; }
.checklist-row label { margin-left: 15px; }

/* SWMS Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
table th, table td {
  border: 1px solid var(--border-color);
  padding: 5px;
  vertical-align: top;
}
table th { background: #eee; text-align: left; font-size: 11px; }
table input, table textarea { margin: 0; padding: 4px; font-size: 11px; border: none; background: transparent; resize: vertical; }
table textarea { min-height: 50px; }

.small-text { font-size: 10px; font-style: italic; }
.export-actions { margin-top: 20px; display: flex; gap: 10px; }
