/* Arrowpoint Team Portal — themed to match arrowpointengineering.com exactly.
   Tokens, fonts, radii, and shadows are copied verbatim from the public site. */
:root {
  --navy:        #1a2744;
  --navy-dark:   #111c32;
  --steel:       #8fa4bf;
  --steel-light: #b8c8d8;
  --steel-pale:  #dce4ec;
  --white:       #f4f6f8;
  --text:        #222;
  --text-light:  #555;
  --accent:      #4a6fa5;
  --card: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }

/* Top bar — same treatment as the public site header */
.topbar {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  flex-wrap: wrap;
  gap: 8px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand img { height: 38px; width: 38px; border-radius: 6px; }
.brand-text { font-weight: 700; font-size: 1.15rem; letter-spacing: .5px; }
.brand-sub { font-weight: 400; color: var(--steel-light); }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--steel-light); text-decoration: none;
  padding: 8px 16px; border-radius: 6px;
  font-size: .95rem; font-weight: 500;
  transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-admin { color: #fff !important; font-weight: 600 !important; }
.nav-user { color: var(--steel); font-size: .9rem; padding: 8px 6px; }
.nav-signout { font-size: .85rem; }
.main { flex: 1; width: 100%; max-width: 1000px; margin: 0 auto; padding: 28px 24px 56px; }
.footer { background: var(--navy-dark); color: var(--steel); text-align: center; padding: 20px 24px; font-size: .9rem; }
.footer a { color: var(--steel-light); }

/* Landing — mirrors the public site hero */
.landing {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--accent) 100%);
  color: #fff;
  text-align: center;
  padding: 90px 24px 80px;
  border-radius: 10px;
}
.landing-card { max-width: 520px; margin: 0 auto; }
.landing-mark img { height: 72px; width: 72px; border-radius: 6px; margin-bottom: 18px; }
.landing-card h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: .5px; margin-bottom: 12px; color: #fff; }
.landing-card p { color: var(--steel-light); margin-bottom: 26px; font-size: 1.05rem; }
.landing-note { font-size: .85rem; margin-top: 18px; color: var(--steel-light); }

/* Buttons — public site .btn family */
.btn {
  display: inline-block; border: none; border-radius: 6px; cursor: pointer;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 10px 22px;
  background: var(--steel-pale); color: var(--navy);
  transition: background .2s, transform .1s;
  font-family: inherit;
}
.btn:hover { background: var(--steel-light); }
.btn-primary { background: var(--steel); color: var(--navy-dark); }
.btn-primary:hover { background: var(--steel-light); }
.btn-small { padding: 6px 14px; font-size: .85rem; background: var(--steel); color: var(--navy-dark); }
.btn-small:hover { background: var(--steel-light); }
.btn-link { background: none; border: none; color: #b04a4a; cursor: pointer; font-size: .8rem; text-decoration: underline; font-family: inherit; }

.page-head { margin-bottom: 22px; }
.page-head h1 { color: var(--navy); font-size: 1.8rem; font-weight: 700; margin-bottom: 4px; }
.page-sub { color: var(--text-light); }
.flash { color: #2e7d46; font-size: .9rem; margin-top: 6px; }

/* Tiles — public site .card */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.tile {
  background: var(--card);
  border: 1px solid var(--steel-pale);
  border-radius: 10px;
  padding: 26px 24px;
  transition: box-shadow .2s, transform .15s;
}
.tile:hover { box-shadow: 0 6px 20px rgba(26,39,68,.1); transform: translateY(-3px); }
.tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.tile h2 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.tile-blurb { color: var(--text); font-size: .95rem; margin-bottom: 10px; }
.tile-details summary { color: var(--accent); font-size: .88rem; cursor: pointer; }
.tile-details p { color: var(--text-light); font-size: .9rem; margin-top: 6px; }

.admin-box {
  background: var(--card); border: 1px dashed var(--steel); border-radius: 10px;
  padding: 18px 20px; margin-bottom: 20px;
}
.admin-box h3 { color: var(--navy); font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-row input[type="text"] { flex: 1; min-width: 140px; }
.form-grid { display: flex; flex-direction: column; gap: 10px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--text-light); }
input[type="text"], input[type="url"], input[type="number"], input[type="date"], textarea, select {
  padding: 8px 12px; border: 1px solid var(--steel-pale); border-radius: 6px;
  font-size: .95rem; font-family: inherit; width: 100%; background: #fff; color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--steel-light); outline-offset: 0; border-color: var(--steel); }
select, input[type="date"], input[type="number"] { width: auto; }
.form-actions { margin-top: 6px; }
.inline { display: inline; }

.doc-cat { color: var(--navy); font-size: 1.15rem; font-weight: 700; margin: 22px 0 10px; }
.doc-list { list-style: none; }
.doc-list li {
  background: var(--card); border: 1px solid var(--steel-pale); border-radius: 6px;
  padding: 10px 16px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 14px;
  transition: box-shadow .2s;
}
.doc-list li:hover { box-shadow: 0 6px 20px rgba(26,39,68,.1); }
.doc-list a { color: var(--accent); text-decoration: none; font-weight: 500; flex: 1; }
.doc-list a:hover { text-decoration: underline; }
.doc-meta { color: var(--text-light); font-size: .8rem; }
.empty { color: var(--text-light); }

@media (max-width: 600px) {
  .nav-user { display: none; }
  .landing { padding: 60px 18px 54px; }
}

.week-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 22px 0 14px; }
.week-nav h2 { font-size: 1.1rem; font-weight: 700; color: var(--navy); flex: 1; text-align: center; }
.timer-box { border-style: solid; border-color: var(--accent); }
.timer-running { color: #2e7d46; font-weight: 600; flex: 1; }
.time-table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: 6px; }
.time-table th, .time-table td { border: 1px solid var(--steel-pale); padding: 8px 12px; text-align: center; font-size: .9rem; }
.time-table th { background: var(--navy); color: #fff; font-weight: 600; }
.time-table td:first-child, .time-table th:first-child { text-align: left; }

.avatar, .avatar-img {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
}
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--steel-pale); color: var(--navy);
  font-weight: 700; font-size: 1.3rem; letter-spacing: .5px;
}
.avatar-img { object-fit: cover; border: 1px solid var(--steel-pale); }

.badge { padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; text-transform: capitalize; }
.badge-pending { background: var(--steel-pale); color: var(--navy); }
.badge-approved { background: #e2f2e6; color: #2e7d46; }
.badge-denied { background: #f7e3e3; color: #b04a4a; }
.btn-deny { background: #b04a4a; color: #fff; }
.btn-deny:hover { background: #8f3a3a; }
.date-pair { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--text-light); }
