/* ─── Gamma Alpha Chore Tracker — Design System ─── */

:root {
  /* Cornell Palette */
  --cornell-red: #B31B1B;
  --cornell-red-dark: #8B1515;
  --cornell-red-light: #D44848;

  /* Dark Theme */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(22, 22, 35, 0.75);
  --bg-card-hover: rgba(30, 30, 48, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(179, 27, 27, 0.3);

  /* Text */
  --text-primary: #f0f0f5;
  --text-secondary: #9595a8;
  --text-muted: #5e5e72;
  --text-accent: #ff6b6b;

  /* Status Colors */
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.1);
  --green-border: rgba(34, 197, 94, 0.3);
  --yellow: #f59e0b;
  --yellow-bg: rgba(245, 158, 11, 0.1);
  --yellow-border: rgba(245, 158, 11, 0.3);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.1);
  --red-border: rgba(239, 68, 68, 0.3);

  /* Sizing */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(179, 27, 27, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(100, 50, 150, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(30, 30, 80, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ─── Glass Effect ─── */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ─── Navbar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--cornell-red);
  background: rgba(179, 27, 27, 0.15);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.5px;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.nav-btn.active {
  background: rgba(179, 27, 27, 0.15);
  color: var(--cornell-red-light);
}

/* ─── View Toggle ─── */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* ─── Container ─── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

/* ─── Hero Card ─── */
.hero-card {
  padding: 32px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid var(--border-glow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cornell-red), var(--cornell-red-light), var(--cornell-red));
}

.hero-card h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.subtitle strong {
  color: var(--cornell-red-light);
}

/* ─── Cycle Badge ─── */
.cycle-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.cycle-badge.large {
  font-size: 0.95rem;
  padding: 10px 22px;
}

/* ─── Step Cards ─── */
.step-card {
  padding: 28px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--cornell-red), var(--cornell-red-dark));
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* ─── Input Group ─── */
.input-group {
  display: flex;
  gap: 10px;
}

.input-group input[type="text"],
.input-group input[type="password"] {
  flex: 1;
}

input[type="text"],
input[type="password"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cornell-red);
  box-shadow: 0 0 0 3px rgba(179, 27, 27, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* Override browser autofill/password-manager styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px rgba(22, 22, 35, 1) inset;
  border: 1px solid var(--border-subtle);
  transition: background-color 5000s ease-in-out 0s;
}

input[type="password"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.error-text {
  color: var(--red);
  font-size: 0.82rem;
  margin-top: 8px;
  min-height: 1.2em;
}

/* ─── Select Wrapper ─── */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
}

select option {
  background: #1a1a2e;
  color: #e0e0e0;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cornell-red), var(--cornell-red-dark));
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--cornell-red-light), var(--cornell-red));
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(179, 27, 27, 0.3);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--green), #16a34a);
  color: white;
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-danger {
  background: linear-gradient(135deg, var(--red), #dc2626);
  color: white;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.btn-danger:active {
  transform: translateY(0);
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  box-shadow: none;
}

.btn-email {
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: white;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-email:hover {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.btn-email:active {
  transform: translateY(0);
  background: linear-gradient(135deg, #5b21b6, #6d28d9);
  box-shadow: none;
}

.btn-extend {
  padding: 6px 12px;
  font-size: 0.75rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--yellow-border);
  color: var(--yellow);
  border-radius: var(--radius-sm);
}

.btn-extend:hover {
  background: rgba(245, 158, 11, 0.25);
}

.btn-view {
  padding: 6px 12px;
  font-size: 0.75rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  border-radius: var(--radius-sm);
}

.btn-view:hover {
  background: rgba(99, 102, 241, 0.25);
}

/* ─── Subtask List ─── */
.subtask-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.subtask-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.subtask-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.subtask-item.checked {
  background: var(--green-bg);
  border-color: var(--green-border);
}

.subtask-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--text-muted);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-top: 1px;
}

.subtask-item.checked .subtask-checkbox {
  background: var(--green);
  border-color: var(--green);
}

.subtask-item.checked .subtask-checkbox::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.subtask-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.subtask-item.checked .subtask-text {
  color: var(--text-primary);
}

.checklist-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 14px;
  font-style: italic;
}

/* ─── Progress Bar ─── */
.progress-bar-container {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cornell-red), var(--green));
  border-radius: 10px;
  transition: width 0.4s ease;
  width: 0%;
}

.progress-text {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 8px;
}

/* ─── Submit Section ─── */
.submit-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

/* ─── Confirmation ─── */
.confirmation-content {
  text-align: center;
  padding: 20px 0;
}

.confirmation-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.confirmation-content h2 {
  margin-bottom: 8px;
}

.confirmation-details {
  margin: 20px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.8;
}

.confirmation-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.confirmation-details .detail-label {
  color: var(--text-muted);
}

.confirmation-details .detail-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* ─── Dashboard Specific ─── */
.dashboard-hero {
  text-align: left;
}

.dashboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.deadline-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.deadline-label {
  color: var(--text-muted);
  margin-right: 6px;
}

.deadline-time {
  color: var(--text-primary);
  font-weight: 600;
}

.deadline-countdown {
  font-weight: 600;
  font-size: 0.85rem;
}

.deadline-countdown.overdue {
  color: var(--red);
}

.deadline-countdown.upcoming {
  color: var(--yellow);
}

.deadline-countdown.ok {
  color: var(--green);
}

/* ─── Stats Row ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.stat-value.stat-late {
  color: var(--red);
}

.stat-value.stat-pending {
  color: var(--yellow);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ─── Cycle Selector ─── */
.cycle-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.cycle-selector label {
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.cycle-selector input {
  max-width: 140px;
}

/* ─── Table ─── */
.table-card {
  padding: 24px;
}

.table-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

thead th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border-subtle);
}

tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-submitted {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
}

.badge-late {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--red);
}

.badge-pending {
  background: var(--yellow-bg);
  border: 1px solid var(--yellow-border);
  color: var(--yellow);
}

.badge-unassigned {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.badge-extension {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.fine-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--red);
  margin-left: 6px;
}

/* Late row highlight */
tr.late-row {
  background: rgba(239, 68, 68, 0.04) !important;
}

tr.late-row td {
  border-bottom-color: var(--red-border);
}

/* Extension info */
.extension-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #a78bfa;
}

/* Actions column */
.actions-cell {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ─── Modals ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.25s ease;
}

.modal-wide {
  max-width: 600px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Detail modal subtask list */
.detail-subtask-list {
  list-style: none;
}

.detail-subtask-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.detail-subtask-item:last-child {
  border-bottom: none;
}

.detail-check {
  flex-shrink: 0;
  font-size: 1rem;
}

.detail-check.done {
  color: var(--green);
}

.detail-check.not-done {
  color: var(--text-muted);
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: var(--green-border);
  color: var(--green);
}

.toast.error {
  border-color: var(--red-border);
  color: var(--red);
}

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border-subtle);
}

/* ─── Utility ─── */
.hidden {
  display: none !important;
}

/* ─── Chore assignment info ─── */
.chore-info-card {
  padding: 16px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.chore-info-card.no-chore {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-subtle);
}

.chore-info-card .chore-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green);
}

.chore-info-card.no-chore .chore-name {
  color: var(--text-muted);
}

.chore-info-card .chore-detail {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ─── Loading ─── */
.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-muted);
  border-top-color: var(--cornell-red);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 14px;
  }

  .brand-text {
    display: none;
  }

  .nav-btn span:not(.brand-icon) {
    display: inline;
  }

  .container {
    padding: 16px 10px 80px;
  }

  .hero-card {
    padding: 24px 18px;
  }

  .hero-card h1 {
    font-size: 1.4rem;
  }

  .step-card {
    padding: 20px 16px;
  }

  .input-group {
    flex-direction: column;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-header-row {
    flex-direction: column;
  }

  .deadline-bar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .cycle-selector {
    flex-wrap: wrap;
  }

  table {
    font-size: 0.78rem;
  }

  thead th,
  tbody td {
    padding: 10px 8px;
  }

  .actions-cell {
    flex-direction: column;
  }

  .modal {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-btn {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-value {
    font-size: 1.5rem;
  }
}

/* ─── Extension Request Link ─── */
.ext-request-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.ext-request-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ─── Extension Request Cards (Dashboard) ─── */
.ext-request-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.ext-req-info {
  flex: 1;
}

.ext-req-reason {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 4px;
}

.ext-req-actions {
  display: flex;
  gap: 6px;
  margin-left: 16px;
  flex-shrink: 0;
}

.btn-small {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
}

/* ─── House Chore Status Board ─── */
.status-board-subtitle {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 16px;
  font-style: italic;
}

.status-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.status-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.status-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.5px;
}

.status-stat-value.status-stat-pending {
  color: var(--yellow);
}

.status-stat-value.status-stat-late {
  color: var(--red);
}

.status-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.status-progress-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.status-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #16a34a);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0%;
}

.status-board-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-board-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.status-board-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.status-board-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.status-board-item.status-done {
  border-color: var(--green-border);
  background: rgba(34, 197, 94, 0.04);
}

.status-board-item.status-late-item {
  border-color: var(--red-border);
  background: rgba(239, 68, 68, 0.04);
}

.status-board-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-done .status-board-avatar {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
}

.status-pending-item .status-board-avatar {
  background: var(--yellow-bg);
  border: 1px solid var(--yellow-border);
  color: var(--yellow);
}

.status-late-item .status-board-avatar {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--red);
}

.status-unassigned-item .status-board-avatar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.status-board-info {
  flex: 1;
  min-width: 0;
}

.status-board-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-board-chore {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.status-board-badge {
  flex-shrink: 0;
}

.status-board-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.status-board-item.clickable {
  cursor: pointer;
}

.status-board-item.clickable:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(2px);
}

.status-board-item.status-done.clickable:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: var(--green-border);
}

.status-board-item.status-late-item.clickable:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--red-border);
}

.status-board-chevron {
  color: var(--text-muted);
  opacity: 0.4;
  margin-left: 6px;
  transition: var(--transition);
  vertical-align: middle;
}

.status-board-item.clickable:hover .status-board-chevron {
  opacity: 0.8;
  transform: translateX(2px);
}

.status-board-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 480px) {
  .status-stats-row {
    gap: 6px;
  }

  .status-stat {
    padding: 8px 4px;
  }

  .status-stat-value {
    font-size: 1.2rem;
  }

  .status-board-item {
    padding: 8px 10px;
    gap: 8px;
  }

  .status-board-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
  }

  .status-board-name {
    font-size: 0.82rem;
  }
}
