* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --navy: #0f1a2b;
  --navy2: #172338;
  --navy3: #22324a;

  --teal: #1a7a7a;
  --teal2: #22a3a3;
  --teal-light: #e0f4f4;

  --sand: #f6f1ea;
  --sand2: #eee6da;

  /* Azalea brand pinks */
  --pink: #d94f86;
  --pink-light: #f7d7e4;
  --pink-mid: #c74376;

  /* FIX: text should NOT be pink-based */
  --text: #2b2b2f;
  --text2: #3a3a40;
  --text3: #6f6f78;

  --border: #e2d3d8;

  --white: #ffffff;
  --danger: #c0392b;
  --danger-mid: #800020
  --success: #0f6e56;
}
body {
  font-family: "Montserrat", sans-serif;
  background: var(--sand);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
}
h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", serif;
}

/* AUTH */
#auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--pink-mid) 0%,
    var(--pink) 50%,
    var(--pink-light) 100%
  );
}
.auth-card {
  background: var(--white);
  border-radius: 16px;
  padding: 48px 40px;
  width: 420px;
  max-width: 95vw;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.auth-logo h1 {
  font-size: 26px;
  color: var(--pink);
  margin-top: 12px;
  letter-spacing: 0.5px;
}
.auth-logo p {
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 8px;
}
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--pink);
}
.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--pink);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: var(--pink-mid);
}
.auth-error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.auth-note {
  font-size: 11px;
  color: var(--text3);
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}

/* FORCE RESET */
#reset-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink) 0%, var(--teal) 100%);
}
.reset-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  width: 420px;
  max-width: 95vw;
}
.reset-card h2 {
  font-size: 22px;
  color: var(--pink);
  margin-bottom: 6px;
}
.reset-card p {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 24px;
  line-height: 1.6;
}
.pw-strength {
  height: 4px;
  border-radius: 2px;
  margin-top: 6px;
  background: #e5e7eb;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition:
    width 0.3s,
    background 0.3s;
}

/* APP SHELL */
#app {
  display: none;
  min-height: 100vh;
  background: var(--sand);
  width: 100%;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  background: var(--pink-mid);
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.sidebar-logo h1 {
  font-size: 18px;
  color: var(--white);
  margin-top: 8px;
}
.sidebar-logo p {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}
.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}
.nav-section {
  padding: 0 12px;
  margin-bottom: 6px;
}
.nav-section-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  padding: 0 8px;
  margin-bottom: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 2px;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}
.nav-item.active {
  background: var(--pink-light);
  color: var(--pink-mid);
}
.nav-item .icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
  flex-shrink: 0;
}
.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pink);
  stroke: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
}
.user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
}
.user-role {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}
.btn-logout {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-logout:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* MAIN */
.main {
  margin-left: 240px;
  min-height: 100vh;
  padding: 32px;
  width: calc(100% - 240px);
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.page-title {
  font-size: 28px;
  color: var(--pink);
  font-weight: 500;
}
.page-subtitle {
  font-size: 13px;
  color: var(--text3);
  margin-top: 4px;
  font-family: "Montserrat", sans-serif;
}
.btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-sm {
  padding: 7px 14px;
  font-size: 11px;
}
.btn-navy {
  background: var(--pink);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--pink-mid);
}
.btn-teal {
  background: var(--teal);
  color: var(--white);
}
.btn-teal:hover {
  background: var(--pink-mid);
}
.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: var(--sand2);
}
.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-pink {
  background: var(--pink);
  color: var(--white);
}

/* CARDS */
.card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
}
.card-sm {
  padding: 16px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px;
}
.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}
.stat-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  color: var(--pink);
  line-height: 1;
}
.stat-sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 4px;
}

/* TABLE */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
th {
  padding: 12px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  background: var(--sand);
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0ece6;
  font-size: 13px;
  color: var(--text2);
}
tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: #faf8f5;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-green {
  background: var(--teal-light);
  color: var(--success);
}
.badge-pink {
  background: var(--pink-light);
  color: var(--pink-mid);
}
.badge-warn {
  background: #fef3c7;
  color: #92400e;
}
.badge-danger {
  background: #fee2e2;
  color: var(--danger);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 46, 0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.modal {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  width: 500px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 {
  font-size: 22px;
  color: var(--pink);
  margin-bottom: 6px;
}
.modal p.sub {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 24px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
}
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
}

/* TEMP PW BOX */
.temp-pw-box {
  background: var(--teal-light);
  border: 1.5px solid var(--teal2);
  border-radius: 10px;
  padding: 20px;
  margin-top: 16px;
}
.temp-pw-box p {
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.temp-pw-display {
  font-family: "Courier New", monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 3px;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  display: inline-block;
}
.temp-pw-note {
  font-size: 11px;
  color: var(--text3);
  margin-top: 8px;
  line-height: 1.5;
}
.copy-btn {
  margin-left: 10px;
  padding: 4px 12px;
  font-size: 11px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

/* MEETING */
.meeting-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.meeting-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.meeting-date {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--pink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.meeting-date .day {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.meeting-date .mon {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
}
.meeting-info h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  color: var(--pink);
  font-weight: 500;
}
.meeting-info p {
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
}
.meeting-tags {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* DOCS */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.doc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.doc-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.doc-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
}
.doc-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-mid);
  font-weight: bold;
  margin-bottom: 4px;
}
.doc-card p {
  font-size: 11px;
  color: var(--text3);
}

/* VOTES */
.vote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
}
.vote-card h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  color: var(--pink);
  margin-bottom: 6px;
}
.vote-meta {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 16px;
}
.vote-bar {
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  overflow: hidden;
  margin: 8px 0;
}
.vote-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--teal);
}
.vote-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.vote-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.vote-for {
  background: #dcfce7;
  color: #166534;
}
.vote-for:hover {
  background: #bbf7d0;
}
.vote-against {
  background: #fee2e2;
  color: var(--danger);
}
.vote-against:hover {
  background: #fecaca;
}
.vote-abstain {
  background: #f3f4f6;
  color: #374151;
}
.vote-abstain:hover {
  background: #e5e7eb;
}

/* ACTIVITY */
.activity-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0ece6;
}
.activity-item:last-child {
  border-bottom: none;
}
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 4px;
  flex-shrink: 0;
}
.activity-text {
  font-size: 13px;
  color: var(--text2);
}
.activity-time {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--pink);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s;
  max-width: 300px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success {
  background: var(--success);
}
.toast.error {
  background: var(--danger);
}

/* EMPTY */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text3);
}
.empty-state h3 {
  font-size: 18px;
  color: var(--text2);
  text-align: center;
  margin-top: 12px;
}
.empty-state p {
  font-size: 13px;
  margin-top: 6px;
}
.empty-center {
  display: flex;
  justify-content: center;  /* horizontal only */
  align-items: flex-start;  /* prevents vertical centering */
  text-align: center;
  width: 100%;
  padding: 40px 0;
}
#documents-grid {
  justify-items: start;
}
/* PROFILE */
.profile-header {
  background: linear-gradient(135deg, var(--pink-mid), var(--pink-light));
  border-radius: 12px;
  padding: 32px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.gap-2 {
  gap: 8px;
}
.gap-3 {
  gap: 12px;
}
.mt-1 {
  margin-top: 4px;
}
.mt-2 {
  margin-top: 8px;
}
.mt-3 {
  margin-top: 12px;
}
.mb-3 {
  margin-bottom: 12px;
}
.text-sm {
  font-size: 12px;
}
.text-xs {
  font-size: 11px;
}
.text-muted {
  color: var(--text3);
}
.fw-600 {
  font-weight: 600;
}
.w-full {
  width: 100%;
}
.page {
  display: none;
}
.page.active {
  display: block;
}

@media (max-width: 768px) {
  .sidebar {
    width: 200px;
  }
  .main {
    margin-left: 200px;
    padding: 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

.doc-card {
  position: relative;
}

.doc-menu-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text3);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.doc-menu-btn:hover {
  background: var(--sand2);
  color: var(--pink-mid);
}
