:root {
  --bg: #f0f4f8;
  --surface: #fff;
  --text: #1a2b3c;
  --muted: #5c6f82;
  --primary: #0d6e4f;
  --primary-dark: #0a5a41;
  --accent: #e85d04;
  --danger: #c1121f;
  --border: #d8e2ec;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(26, 43, 60, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  background: linear-gradient(135deg, #0a3d2e, #0d6e4f);
  color: #fff;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-city { font-size: 0.75rem; opacity: 0.85; text-transform: uppercase; display: block; }
.brand-app { font-size: 1.15rem; font-weight: 700; }
.brand-app em { color: #7dffb8; font-style: normal; }

.nav { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.user-badge {
  background: rgba(255,255,255,0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

main { padding: 2rem 0 3rem; min-height: 60vh; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.card h1, .card h2 { margin: 0 0 1rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem; }

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.2); color: #fff; }

.alert { padding: 0.85rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-error { background: #fde8e8; color: #9b1c1c; }
.alert-success { background: #e6f6ee; color: #0d6e4f; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #f8fafc; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; }

.day-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) { .day-row { grid-template-columns: 1fr; } }

.login-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #0a3d2e 0%, #0d6e4f 120px, var(--bg) 120px);
}
.login-card { max-width: 420px; margin: 3rem auto; }

.portal-hero { text-align: center; margin-bottom: 2rem; }
.pro-cards { display: grid; gap: 1.25rem; }
.pro-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.pro-head {
  background: linear-gradient(90deg, #0d6e4f, #14a96e);
  color: #fff;
  padding: 1rem 1.25rem;
}
.pro-head h3 { margin: 0; font-size: 1.1rem; }
.pro-head .spec { opacity: 0.92; font-size: 0.9rem; margin-top: 0.2rem; }
.schedule {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
}
.schedule-cell {
  padding: 0.85rem 0.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 4.5rem;
}
.schedule-cell:last-child { border-right: none; }
.schedule-cell .label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.schedule-cell .time {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-word;
}
.schedule-cell.is-empty .time { color: var(--muted); font-weight: 400; }
@media (max-width: 720px) {
  .schedule { grid-template-columns: 1fr; }
  .schedule-cell { border-right: none; min-height: auto; }
}
.pro-obs {
  padding: 0.85rem 1.25rem;
  background: #fffbeb;
  border-top: 1px solid #fde68a;
  font-size: 0.9rem;
}

.site-footer { text-align: center; padding: 1.5rem; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--border); }
