/* Option A — Brand Warmth (pulls from the eezi move logo's teal + gold) */
* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  background: #faf6f0;
  color: #26313a;
}

a { color: #c2760f; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #143a4d;
  color: #fff;
  padding: 0.85rem 1.75rem;
  flex-wrap: wrap;
  border-bottom: 3px solid #e8a23c;
}

.topbar .brand a { color: #fff; font-weight: 700; font-size: 1.15rem; }

.topnav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; flex: 1; }
.topnav a { color: #cfe3ea; }
.topnav a:hover { color: #fff; }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: none;
  border: none;
  color: #cfe3ea;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.nav-dropdown-trigger:hover { color: #fff; }
.nav-dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.6rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(20,58,77,0.25);
  padding: 0.5rem 0;
  min-width: 190px;
  z-index: 20;
}
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}
.nav-dropdown-menu a {
  color: #26313a;
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: #fdf1e0; text-decoration: none; }

.logout-form { display: flex; align-items: center; gap: 0.75rem; }
.whoami { color: #cfe3ea; font-size: 0.9rem; }
.logout-form button {
  background: transparent;
  border: 1px solid #cfe3ea;
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
}

.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.login-box, .clockin-box {
  max-width: 380px;
  margin: 4rem auto;
  background: #fff;
  padding: 2.25rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(20,58,77,0.12);
}

.login-logo {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 1.5rem;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.page-head-actions { display: flex; gap: 0.75rem; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
}

.section-heading { margin: 2.25rem 0 1rem; font-size: 1.3rem; color: #143a4d; font-weight: 700; }

.tile {
  background: linear-gradient(180deg, var(--accent-bg, #fdf1e0) 0%, #fff 55%);
  border-radius: 14px;
  border: 1px solid rgba(20,58,77,0.08);
  border-top: 4px solid var(--accent, #e8a23c);
  padding: 1.35rem;
  box-shadow: 0 2px 10px rgba(20,58,77,0.06);
  color: #26313a;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tile:hover { box-shadow: 0 10px 24px rgba(20,58,77,0.14); transform: translateY(-3px); text-decoration: none; }

.tile-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent-bg, #fdf1e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}
.tile-title { font-weight: 700; font-size: 1rem; color: #143a4d; }
.tile-desc { font-weight: 400; font-size: 0.85rem; color: #6b7a84; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20,58,77,0.06);
}

th, td {
  text-align: left;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f1e6d6;
}

th { background: #fdf1e0; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: #8a5a1a; }

.row-actions { display: flex; gap: 0.75rem; }
.link-btn {
  background: none;
  border: none;
  color: #c2760f;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}

.empty { color: #9aa5ab; font-style: italic; }

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
  background: #fff;
  padding: 1.75rem;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20,58,77,0.08);
}

.inline-form {
  flex-direction: row;
  align-items: flex-end;
  max-width: none;
  flex-wrap: wrap;
}

.form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; }
.form label small { font-weight: 400; color: #9aa5ab; }
.form input, .form select { padding: 0.55rem; border: 1px solid #e2d3bc; border-radius: 8px; font-size: 1rem; }
.form label.checkbox { flex-direction: row; align-items: center; gap: 0.5rem; }

.clockin-lookup-type { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.clockin-lookup-type legend { font-weight: 600; font-size: 0.9rem; padding: 0; }
.clockin-lookup-type-options { display: flex; gap: 1.25rem; }
.clockin-lookup-type .radio-inline { flex-direction: row; align-items: center; gap: 0.4rem; font-weight: 400; }

.checkbox-group { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.checkbox-group legend { font-weight: 600; font-size: 0.9rem; padding: 0; margin-bottom: 0.1rem; }
.checkbox-group label.checkbox { font-weight: 400; }

.form-actions { display: flex; gap: 1rem; align-items: center; }

button, .btn, .btn-secondary {
  background: #e8a23c;
  color: #26313a;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}
.btn-secondary { background: #dde6ea; color: #143a4d; }
button:hover, .btn:hover, .btn-secondary:hover { opacity: 0.88; text-decoration: none; }

.filter-form { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filter-form label { display: flex; flex-direction: column; font-size: 0.85rem; font-weight: 600; gap: 0.25rem; }
.filter-form select { padding: 0.45rem; border-radius: 8px; border: 1px solid #e2d3bc; }

.error { color: #a13a2b; background: #fbe4de; padding: 0.6rem 0.9rem; border-radius: 8px; }
.success { color: #276149; background: #e2f3e9; padding: 0.6rem 0.9rem; border-radius: 8px; }
.warning { color: #8a5a1a; background: #fdf1e0; padding: 0.6rem 0.9rem; border-radius: 8px; }

.status-badge { display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.status-badge.status-online { color: #276149; background: #e2f3e9; }
.status-badge.status-offline { color: #a13a2b; background: #fbe4de; }

.diary-board { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; }
.diary-column {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20,58,77,0.06);
  min-width: 170px;
  padding: 0.85rem;
  flex-shrink: 0;
}
.diary-column-head { display: flex; flex-direction: column; gap: 0.15rem; font-weight: 700; margin-bottom: 0.6rem; color: #143a4d; }
.diary-column-head span { font-weight: 400; font-size: 0.75rem; color: #9aa5ab; }
.diary-crew { padding: 0.45rem 0.55rem; border-radius: 8px; margin-bottom: 0.4rem; font-size: 0.9rem; }
.diary-crew small { display: block; color: #566268; font-size: 0.75rem; }
.diary-crew.clocked-in { background: #cdeedc; }
.diary-crew.not-clocked-in { background: #f7d9d2; }
.diary-crew.breath-alert { background: #f6cd8b; }

.diary-legend { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: #566268; }
.diary-swatch { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 4px; margin-left: 0.5rem; }
.diary-swatch.clocked-in { background: #cdeedc; margin-left: 0; }
.diary-swatch.not-clocked-in { background: #f7d9d2; }
.diary-swatch.breath-alert { background: #f6cd8b; }

tr.breath-alert-row { background: #f6cd8b; }
