/* Brooke's Job Dashboard — mobile-first, green/white brand */
:root {
  --green-deep:   #1a4d3a;
  --green-mid:    #2a7d5a;
  --green-bright: #35a070;
  --green-soft:   #e8f5ee;
  --green-pale:   #f2faf6;
  --white:        #ffffff;
  --gray-100:     #f0f4f2;
  --gray-200:     #dde6e2;
  --gray-400:     #9aaeaa;
  --gray-600:     #5c7470;
  --gray-800:     #2c3836;
  --ink:          #1a2823;
  --radius:       14px;
  --shadow-sm:    0 2px 8px rgba(26,77,58,0.08);
  --shadow-md:    0 8px 32px rgba(26,77,58,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--green-pale);
  color: var(--ink);
  min-height: 100vh;
}

/* Header */
.brooke-header {
  background: var(--green-deep);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(26,77,58,0.2);
}
.brooke-header h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.brooke-header .logout-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.brooke-header .logout-btn:hover { background: rgba(255,255,255,0.25); }

/* Section headers */
.section-header {
  padding: 16px 20px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--green-mid);
}

/* Cards */
.card-list {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.card-address {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 10px;
}
.card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-green { background: var(--green-soft); color: var(--green-deep); }
.badge-gray  { background: var(--gray-100); color: var(--gray-600); }
.badge-blue  { background: #e0f0ff; color: #1a5fa0; }

.card-notes {
  background: var(--gray-100);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.5;
}
.card-notes strong { color: var(--gray-800); }

.card-scheduled {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 14px;
}
.card-scheduled strong { color: var(--green-deep); }

/* Actions */
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:active { transform: scale(0.97); }

.btn-green  { background: var(--green-bright); color: #fff; }
.btn-green:hover { background: #2d8a60; }

.btn-dark   { background: var(--green-deep); color: #fff; }
.btn-dark:hover { background: #163828; }

.btn-outline { background: transparent; border: 2px solid var(--gray-200); color: var(--gray-600); }
.btn-outline:hover { border-color: var(--green-bright); color: var(--green-bright); }

.btn-red { background: #fff0f0; color: #c0392b; border: 1.5px solid #ffc0c0; }
.btn-red:hover { background: #ffe0e0; }

.btn-gray { background: var(--gray-100); color: var(--gray-600); }
.btn-gray:hover { background: var(--gray-200); }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.empty-state p { font-size: 15px; margin-top: 8px; }

/* Reschedule modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.modal h3 { font-size: 18px; margin-bottom: 20px; color: var(--green-deep); }
.modal form { display: flex; flex-direction: column; gap: 14px; }
.modal input[type="datetime-local"] {
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  width: 100%;
  background: var(--gray-100);
}
.modal-actions { display: flex; gap: 10px; }

/* Status colors */
.status-badge-scheduled { background: #fff9e6; color: #7a5c00; }
.status-badge-in_progress { background: #e8f5ee; color: #1a4d3a; }
.status-badge-stopped { background: #fff0f0; color: #c0392b; }
.status-badge-completed { background: #e0f0ff; color: #1a5fa0; }
.status-badge-invoiced { background: #f5eeff; color: #6a1b9a; }
.status-badge-paid { background: #e8f5ee; color: #1a4d3a; }

/* Invoice success banner */
.invoice-banner {
  background: #f5eeff;
  border: 1.5px solid #d0a8ff;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #6a1b9a;
  margin-top: 10px;
  display: none;
}
.invoice-banner.visible { display: block; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--green-deep);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  z-index: 200;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Loading state */
.loading { opacity: 0.5; pointer-events: none; }

/* Responsive */
@media (min-width: 640px) {
  .card-list { padding: 0 24px 24px; }
  .section-header { padding: 20px 24px 10px; }
}