/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@400;600;700&display=swap');

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #0f3460;
  --highlight: #e94560;
  --gold: #f5a623;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Sora', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: var(--gray-50);
  color: var(--gray-800);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
a { color: var(--highlight); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.container-xs { max-width: 520px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== CARD ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.card-header h3 { margin: 0; font-size: 1rem; color: var(--gray-700); }
.card-body { padding: 1.5rem; }

/* ===== NAVBAR ADMIN ===== */
.navbar {
  background: var(--primary);
  padding: .85rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.navbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.navbar-brand span { color: var(--highlight); }
.navbar-nav { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  color: rgba(255,255,255,.75);
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
  text-decoration: none;
}
.nav-link.active { color: var(--highlight); }

/* ===== SIDEBAR LAYOUT ===== */
.admin-layout { display: flex; min-height: calc(100vh - 56px); }
.sidebar {
  width: 240px;
  background: var(--secondary);
  padding: 1.5rem 0;
  flex-shrink: 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
  padding: 0 1.25rem .5rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: rgba(255,255,255,.7);
  padding: .6rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  transition: all .18s;
  border-left: 3px solid transparent;
}
.sidebar-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.07);
  text-decoration: none;
}
.sidebar-link.active {
  color: var(--white);
  background: rgba(233,69,96,.15);
  border-left-color: var(--highlight);
}
.sidebar-link .icon { font-size: 1rem; flex-shrink: 0; }
.main-content { flex: 1; padding: 2rem; min-width: 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--highlight); color: var(--white); border-color: var(--highlight); }
.btn-primary:hover { background: #d63651; border-color: #d63651; color: var(--white); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); color: var(--gray-800); }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-success:hover { background: #059669; color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; color: var(--white); }
.btn-warning { background: var(--warning); color: var(--white); border-color: var(--warning); }
.btn-outline { background: transparent; color: var(--gray-700); border-color: var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); color: var(--gray-800); }
.btn-sm { padding: .4rem .85rem; font-size: .8rem; }
.btn-lg { padding: .85rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .45rem;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: .9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--highlight);
  box-shadow: 0 0 0 3px rgba(233,69,96,.12);
}
.form-control::placeholder { color: var(--gray-400); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem; }
.form-hint { font-size: .8rem; color: var(--gray-500); margin-top: .35rem; }
.form-error { font-size: .8rem; color: var(--danger); margin-top: .35rem; }

/* Autocomplete dropdown */
.autocomplete-wrapper { position: relative; }
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: var(--shadow);
  display: none;
}
.autocomplete-list.show { display: block; }
.autocomplete-item {
  padding: .6rem 1rem;
  cursor: pointer;
  font-size: .875rem;
  border-bottom: 1px solid var(--gray-100);
  transition: background .15s;
}
.autocomplete-item:hover, .autocomplete-item.selected { background: var(--gray-50); color: var(--highlight); }
.autocomplete-item:last-child { border-bottom: none; }

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead tr { background: var(--gray-50); }
thead th {
  padding: .75rem 1rem;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--gray-100); transition: background .15s; }
tbody tr:hover { background: var(--gray-50); }
tbody td { padding: .75rem 1rem; color: var(--gray-700); vertical-align: middle; }
tbody tr:last-child { border-bottom: none; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* ===== STATS CARDS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--highlight);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); margin-bottom: .35rem; }
.stat-value { font-size: 2rem; font-weight: 800; font-family: var(--font-heading); color: var(--gray-900); line-height: 1; }
.stat-sub { font-size: .8rem; color: var(--gray-500); margin-top: .25rem; }

/* ===== ALERT/FLASH ===== */
.alert {
  padding: .9rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.page-title { font-size: 1.5rem; color: var(--gray-900); margin-bottom: .25rem; }
.page-subtitle { font-size: .875rem; color: var(--gray-500); font-family: var(--font-main); font-weight: 400; }

/* ===== RATING SCALE ===== */
.scale-group {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.scale-option { display: none; }
.scale-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .6rem .9rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all .2s;
  min-width: 72px;
  text-align: center;
  background: var(--white);
  user-select: none;
}
.scale-label:hover { border-color: var(--highlight); color: var(--highlight); background: rgba(233,69,96,.05); }
.scale-option:checked + .scale-label {
  border-color: var(--highlight);
  background: var(--highlight);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(233,69,96,.3);
}
.scale-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
/* Warna per nilai */
.scale-5 .scale-dot { color: #10b981; }
.scale-4 .scale-dot { color: #3b82f6; }
.scale-3 .scale-dot { color: #f59e0b; }
.scale-2 .scale-dot { color: #f97316; }
.scale-1 .scale-dot { color: #ef4444; }

.question-card {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color .2s;
}
.question-card.answered { border-color: #a7f3d0; background: #f0fdf4; }
.question-card.unanswered-error { border-color: var(--danger) !important; background: #fff5f5; }
.q-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-right: .5rem;
  flex-shrink: 0;
}
.q-text { font-size: .9rem; font-weight: 600; color: var(--gray-800); display: flex; align-items: flex-start; }
.aspek-badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--white);
  margin-left: .5rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ===== SURVEY PUBLIC PAGE ===== */
.survey-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.survey-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.survey-hero h1 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: .75rem; position: relative; }
.survey-hero p { color: rgba(255,255,255,.75); font-size: .95rem; max-width: 500px; margin: 0 auto; position: relative; }
.period-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: .4rem 1rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 1.5rem;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.login-logo h2 { font-family: var(--font-heading); color: var(--primary); }
.login-logo p { color: var(--gray-500); font-size: .875rem; margin-top: .25rem; }
.logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--highlight), #ff6b6b);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto .75rem;
  box-shadow: 0 8px 20px rgba(233,69,96,.3);
}

/* ===== SCORE VISUALIZATION ===== */
.score-bar-wrap { margin-bottom: .75rem; }
.score-bar-label { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: .3rem; }
.score-bar-track { background: var(--gray-100); border-radius: 100px; height: 10px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 100px; transition: width 1s ease; }

.rating-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  position: relative;
}
.rating-circle .label { font-size: .65rem; font-weight: 600; text-transform: uppercase; margin-top: -.1rem; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  font-size: .85rem;
  color: var(--gray-700);
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.page-item:hover { background: var(--gray-100); text-decoration: none; }
.page-item.active { background: var(--highlight); color: var(--white); border-color: var(--highlight); }
.page-item.disabled { opacity: .4; pointer-events: none; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(.95) translateY(10px);
  transition: transform .25s;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}
.modal-header h4 { font-size: 1rem; }
.modal-close { cursor: pointer; color: var(--gray-400); font-size: 1.2rem; background: none; border: none; padding: .25rem; transition: color .2s; }
.modal-close:hover { color: var(--gray-700); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-100); display: flex; gap: .75rem; justify-content: flex-end; }

/* ===== PROGRESS BAR SURVEY ===== */
.survey-progress {
  background: var(--gray-200);
  height: 4px;
  border-radius: 100px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.survey-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--highlight), #ff6b6b);
  border-radius: 100px;
  transition: width .4s ease;
}

/* ===== SUCCESS PAGE ===== */
.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--success), #34d399);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(16,185,129,.3);
}

.share-buttons { display: flex; gap: .75rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .2s;
}
.share-btn:hover { transform: translateY(-1px); text-decoration: none; }
.share-wa { background: #25d366; color: white; }
.share-tg { background: #0088cc; color: white; }
.share-copy { background: var(--gray-100); color: var(--gray-700); border: 2px solid var(--gray-200); }
.share-qr { background: var(--primary); color: white; }

/* ===== QR CODE ===== */
.qr-wrap {
  text-align: center;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 2px dashed var(--gray-200);
}
#qr-canvas { margin: 0 auto; display: block; }

/* ===== RIWAYAT LIST ===== */
.riwayat-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
  margin-bottom: .5rem;
  background: var(--white);
  transition: border-color .2s;
}
.riwayat-item:hover { border-color: var(--gray-300); }
.riwayat-icon {
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.riwayat-info h5 { font-size: .875rem; margin-bottom: .15rem; }
.riwayat-info p { font-size: .8rem; color: var(--gray-500); }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.filter-group { flex: 1; min-width: 150px; }
.filter-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--gray-600); margin-bottom: .35rem; }

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--gray-500);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }
.empty-state h3 { color: var(--gray-700); margin-bottom: .5rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; padding: 1rem 0; }
  .sidebar-section { margin-bottom: .75rem; }
  .navbar-nav { display: none; }
  .main-content { padding: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .scale-label { min-width: 60px; padding: .5rem .6rem; font-size: .72rem; }
  .survey-hero { padding: 2rem 1rem; }
  .filter-bar { flex-direction: column; }
  .page-header { flex-direction: column; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .scale-group { gap: .3rem; }
  .scale-label { min-width: calc(20% - .25rem); padding: .45rem .3rem; font-size: .68rem; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .8rem; }
.text-bold { font-weight: 700; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-0 { padding: 0; }
.fw-bold { font-weight: 700; }
.rounded { border-radius: var(--radius); }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* Print */
@media print {
  .navbar, .sidebar, .btn, .filter-bar { display: none !important; }
  .main-content { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}
