/* ---- LeaderShift Addendum App ---- */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-700.woff2') format('woff2');
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #f8f9fa;
  color: #1A1A1A;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1000px; margin: 0 auto; padding: 32px 24px; }
.container.narrow { max-width: 680px; }

/* Topbar */
header.topbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E8E6E1;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
header.topbar .brand { display: flex; align-items: center; gap: 12px; }
header.topbar .brand a {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  text-decoration: none;
}
header.topbar .brand a:hover,
header.topbar .brand a:focus,
header.topbar .brand a:active {
  background: transparent;
  opacity: 1;
}
header.topbar .brand img { height: 45px; width: auto; display: block; }
header.topbar .right { display: flex; align-items: center; gap: 12px; }
header.topbar .user-email { font-size: 13px; color: #6B6B66; }

header.topbar .right a, header.topbar button.topbar-btn {
  color: #1A1A1A;
  background: transparent;
  border: 1px solid #D4D2CC;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
header.topbar .right a:hover, header.topbar button.topbar-btn:hover {
  background: #F2F0EB;
}
header.topbar form { display: inline; }

h1 { font-size: 28px; margin: 0 0 8px 0; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 18px; margin: 28px 0 10px 0; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 14px 0; }
.muted { color: #6B6B66; font-size: 14px; }
a { color: #1A1A1A; }

.card {
  background: #FFFFFF;
  border: 1px solid #E8E6E1;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background: #1A1A1A;
  color: #FFFFFF;
  border: 1px solid #1A1A1A;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn:hover { background: #000; }
.btn.secondary { background: #FFFFFF; color: #1A1A1A; border: 1px solid #D4D2CC; }
.btn.secondary:hover { background: #F2F0EB; }
.btn.danger { background: #FFFFFF; color: #B91C1C; border: 1px solid #F4C6C6; }
.btn.danger:hover { background: #FEF2F2; }
.btn.small { padding: 6px 12px; font-size: 13px; }

label { display: block; font-size: 14px; font-weight: 500; color: #3A3A36; margin: 14px 0 6px 0; }
input[type=text], input[type=email], input[type=date], input[type=number], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D4D2CC;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: #FFFFFF;
  color: #1A1A1A;
  transition: border-color 0.15s ease;
}
textarea { min-height: 90px; resize: vertical; font-family: inherit; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #1A1A1A;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #f8f9fa; }
th { font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: #6B6B66; background: #FAFAF7; }
tbody tr:hover td { background: #f8f9fa; }
tbody tr:last-child td { border-bottom: none; }

.flash { padding: 14px 18px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; border: 1px solid transparent; }
.flash.success { background: #F0F9F2; color: #14532D; border-color: #C9E7CF; }
.flash.error { background: #FDF3F3; color: #7F1D1D; border-color: #F4C6C6; }
.flash.info { background: #F2F5FB; color: #1E3A8A; border-color: #D5DFF1; }

.copy-box {
  background: #F5F3EE;
  border: 1px solid #E4E2DC;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 12px;
  word-break: break-all;
  margin: 10px 0 8px 0;
  color: #3A3A36;
}

.badge { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.badge.green { background: #E7F4EA; color: #14532D; }
.badge.gray  { background: #EFEDE8; color: #4B4B45; }
.badge.red   { background: #FBE6E6; color: #7F1D1D; }
.badge.blue  { background: #E0EDFF; color: #1D3A7F; }

.auth-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.auth-wrap .card { width: 100%; max-width: 420px; text-align: center; }
.auth-logo { height: 36px; width: auto; display: block; margin: 0 auto 20px auto; }
