/* OnAdJob — Clean, Mobile-First */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --muted: #6b7280;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-light: #64748b;
  --radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

/* Header */
.header { text-align: center; padding: 32px 0 16px; }
.header h1 { font-size: 1.75rem; font-weight: 700; }
.subtitle { color: var(--text-light); margin-top: 4px; }
.tz-note { color: var(--text-light); font-size: 0.85rem; margin-bottom: 8px; }

/* Nav Bar */
.nav-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.nav-bar h1 { font-size: 1.25rem; flex: 1; }

/* Sections */
.section { margin-bottom: 24px; }
.section h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }

/* Date Grid */
.date-grid {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.date-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 16px; border: 2px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text); transition: all 0.15s;
  min-width: 70px;
}
.date-card:hover { border-color: var(--primary); }
.date-card.active { border-color: var(--primary); background: var(--primary); color: white; }
.date-day { font-size: 0.8rem; text-transform: uppercase; font-weight: 600; }
.date-num { font-size: 0.9rem; }

/* Time Grid */
.time-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.time-btn {
  padding: 8px 6px; border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--card); cursor: pointer; font-weight: 500;
  transition: all 0.15s; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.time-btn:hover { border-color: var(--primary); }
.time-btn.active { border-color: var(--primary); background: var(--primary); color: white; }
.time-et { font-size: 0.95rem; font-weight: 600; }
.time-ph { font-size: 0.8rem; color: var(--text-light); }
.time-btn.active .time-ph { color: rgba(255,255,255,0.8); }
.tz-label { font-weight: 600; }

/* Forms */
.form-section { background: var(--card); padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 4px; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.selected-time { font-weight: 600; color: var(--primary); margin-bottom: 16px; font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 20px; border: none; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: all 0.15s; text-align: center;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-xs { padding: 4px 10px; font-size: 0.8rem; background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-confirm { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.btn-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.btn-score { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Empty State */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-light); }
.empty-state h2 { margin-bottom: 8px; }

/* Confirmation */
.confirmation-box { text-align: center; padding: 40px 20px; }
.check-icon { font-size: 3rem; color: var(--success); margin-bottom: 16px; }
.details-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin: 20px auto; max-width: 400px; text-align: left;
}
.detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: var(--text-light); font-size: 0.9rem; }
.detail-row .value { font-weight: 500; }
.next-steps { text-align: left; max-width: 500px; margin: 20px auto; }
.next-steps h3 { margin-bottom: 8px; }
.next-steps ul { padding-left: 20px; }
.next-steps li { margin-bottom: 6px; }
.note { color: var(--text-light); font-size: 0.85rem; margin-top: 20px; }

/* Login */
.login-box { max-width: 360px; margin: 80px auto; background: var(--card); padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); }
.login-box h1 { text-align: center; margin-bottom: 24px; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 20px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-align: center; }
.stat-num { display: block; font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; }
.stat-pass { border-left: 3px solid var(--success); }
.stat-maybe { border-left: 3px solid var(--warning); }
.stat-no { border-left: 3px solid var(--danger); }

/* Date Navigation */
.date-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.date-pill {
  padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; text-decoration: none;
  color: var(--text); background: var(--card); border: 1px solid var(--border); white-space: nowrap;
}
.date-pill.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: var(--bg); padding: 10px 8px; text-align: left; font-weight: 600; border-bottom: 2px solid var(--border); font-size: 0.8rem; text-transform: uppercase; }
td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
td.empty { text-align: center; color: var(--text-light); padding: 24px; }
td a { color: var(--primary); text-decoration: none; }
td a:hover { text-decoration: underline; }
.time-cell { font-weight: 600; white-space: nowrap; }
.muted { color: var(--muted); }
.wa-link { font-size: 0.85rem; }
.inline { display: inline; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.actions { white-space: nowrap; }
.actions form { display: inline; margin-left: 4px; }

/* Badges */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 12px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
}
.badge-available { background: #f0fdf4; color: #166534; }
.badge-booked { background: #dbeafe; color: #1e40af; }
.badge-confirmed { background: #dcfce7; color: #166534; }
.badge-interviewed { background: #e0e7ff; color: #3730a3; }
.badge-scored { background: #fef3c7; color: #92400e; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; text-decoration: line-through; }
.badge-no_show, .badge-no-show { background: #fee2e2; color: #991b1b; }
.badge-pass { background: #dcfce7; color: #166534; }
.badge-maybe { background: #fef3c7; color: #92400e; }
.badge-no { background: #fee2e2; color: #991b1b; }

/* Scoring */
.score-form { background: var(--card); padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); }
.score-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.score-row label { font-weight: 500; flex: 1; }
.star-group { display: flex; gap: 4px; }
.star-group input[type="radio"] { display: none; }
.star-label {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer;
  font-weight: 600; font-size: 0.9rem; transition: all 0.15s;
}
.star-group input:checked + .star-label { background: var(--primary); color: white; border-color: var(--primary); }
.star-label:hover { border-color: var(--primary); }

/* Decision Group */
.decision-group { display: flex; gap: 8px; margin-top: 8px; }
.decision-group input[type="radio"] { display: none; }
.btn-decision { flex: 1; padding: 12px; font-size: 1rem; font-weight: 700; border: 2px solid var(--border); }
.btn-pass { color: var(--success); }
.btn-maybe { color: var(--warning); }
.btn-no { color: var(--danger); }
.decision-group input:checked + .btn-pass { background: #dcfce7; border-color: var(--success); }
.decision-group input:checked + .btn-maybe { background: #fef3c7; border-color: var(--warning); }
.decision-group input:checked + .btn-no { background: #fee2e2; border-color: var(--danger); }

/* Status row coloring */
tr.status-no_show { background: #fef2f2; }
tr.status-cancelled { background: #f9fafb; opacity: 0.6; }
tr.status-scored { background: #fffbeb; }

/* Status Actions */
.status-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Nav Links */
.nav-links { display: flex; gap: 8px; align-items: center; }

/* Meet button */
.btn-meet { background: #059669; color: white; border-color: #059669; font-weight: 600; }
.btn-meet:hover { background: #047857; }
.btn-warning { background: #f59e0b; color: white; border-color: #f59e0b; }
.btn-remind { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.btn-remind:hover { background: #dbeafe; }
.btn-wa { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.btn-wa:hover { background: #bbf7d0; }
.meet-link-big { display: inline-block; padding: 8px 16px; background: #059669; color: white; border-radius: var(--radius); text-decoration: none; font-weight: 600; }

/* Interviewer badge */
.badge-interviewer { background: #e0e7ff; color: #3730a3; }

/* Assign dropdown */
.assign-select { padding: 3px 6px; font-size: 0.75rem; border: 1px solid var(--border); border-radius: 4px; }

/* Notifications */
.notifications-section { background: #eff6ff; padding: 12px 16px; border-radius: var(--radius); border: 1px solid #bfdbfe; }
.notif-list { display: flex; flex-direction: column; gap: 6px; }
.notif-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; padding: 4px 0; }
.notif-icon { font-size: 1rem; }

/* Form row */
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }

/* Responsive */
@media (max-width: 600px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .score-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .time-grid { grid-template-columns: repeat(3, 1fr); }
  table { font-size: 0.8rem; }
  th, td { padding: 8px 4px; }
  .actions .btn-xs { padding: 3px 6px; font-size: 0.7rem; }
}
