/* DeveLander Meet — Clean, Professional */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a5632;
  --primary-hover: #14432a;
  --primary-light: #f0faf4;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --muted: #6b7280;
  --bg: #f8faf9;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-light: #64748b;
  --radius: 8px;
  --zoom-blue: #2D8CFF;
}

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;
}

/* Booking Header */
.booking-header {
  text-align: center;
  padding: 40px 0 24px;
}
.booking-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.booking-header .subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 6px;
}

/* Sections */
.section { margin-bottom: 24px; }
.section h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }

/* TZ Badge */
.tz-badge {
  display: inline-block;
  padding: 2px 10px;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}

/* Date Grid */
.date-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.date-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 18px; border: 2px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text); transition: all 0.15s;
  min-width: 75px;
}
.date-card:hover { border-color: var(--primary); }
.date-card.active { border-color: var(--primary); background: var(--primary); color: white; }
.date-weekday { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.date-day { font-size: 0.9rem; font-weight: 500; margin-top: 2px; }

/* Time Grid */
.time-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.time-slot {
  position: relative; cursor: pointer;
}
.time-slot input[type="radio"] { display: none; }
.time-label {
  display: block; padding: 12px; border: 2px solid var(--border); border-radius: var(--radius);
  text-align: center; font-weight: 600; font-size: 1rem; transition: all 0.15s;
  background: var(--card);
}
.time-slot:not(.taken):hover .time-label { border-color: var(--primary); }
.time-slot.selected .time-label,
.time-slot input:checked + .time-label {
  border-color: var(--primary); background: var(--primary); color: white;
}

/* Taken / booked slots */
.time-slot.taken {
  cursor: default;
}
.time-slot.taken .time-label {
  background: #f1f5f9; color: #94a3b8; border-color: #e2e8f0;
  text-decoration: line-through; font-weight: 500;
}

/* Slots remaining indicator */
.slots-warning {
  color: #dc2626; font-size: 0.9rem; margin-bottom: 10px;
}
.slots-remaining {
  color: var(--text-light); font-size: 0.85rem; margin-bottom: 10px;
}

/* Forms */
.form-section {
  background: var(--card); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border); margin-top: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 4px; font-size: 0.9rem; }
.form-group .optional { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.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(26,86,50,0.1);
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

/* 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-zoom { background: var(--zoom-blue); color: white; border-color: var(--zoom-blue); font-weight: 600; }
.btn-zoom:hover { background: #1a7ae8; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

/* Empty State */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-light); }

/* Confirmation Page */
.confirmation-page { text-align: center; padding: 40px 20px; }
.confirmation-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 50%; background: #dcfce7; color: #16a34a;
  font-size: 2.5rem; margin-bottom: 20px;
}
.confirmation-subtitle { color: var(--text-light); font-size: 1.1rem; margin: 12px 0 24px; }
.confirmation-details {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; max-width: 420px; margin: 0 auto 24px; text-align: left;
}
.detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-light); }
.detail-value { font-weight: 600; }

.zoom-link-section { margin: 24px 0; }
.zoom-note { color: var(--text-light); font-size: 0.9rem; margin-top: 12px; }

.next-steps { text-align: left; max-width: 500px; margin: 24px auto; }
.next-steps h3 { margin-bottom: 10px; color: var(--primary); }
.next-steps ul { padding-left: 20px; }
.next-steps li { margin-bottom: 8px; color: var(--text); }

/* 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; }

/* 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; }
.nav-links { display: flex; gap: 8px; align-items: center; }

/* 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-no { border-left: 3px solid var(--danger); }

/* Date Nav */
.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); }
.inline { display: inline; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.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-completed { background: #e0e7ff; color: #3730a3; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; text-decoration: line-through; }
.badge-no_show { background: #fee2e2; color: #991b1b; }
.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; }

/* Status row coloring */
tr.status-no_show { background: #fef2f2; }
tr.status-cancelled { background: #f9fafb; opacity: 0.6; }
tr.status-completed { background: #f0fdf4; }

/* Responsive */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .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; }
}
