/* ===== AI Survey Manager - Design System ===== */

:root {
  --navy: #1e3a5f;
  --navy-hover: #2d5282;
  --navy-light: #e8f0f9;
  --gold: #c9a84c;
  --gold-light: #f5ead0;
  --charcoal: #2d3748;
  --bg: #f7fafc;
  --white: #ffffff;
  --success: #38a169;
  --warning: #d69e2e;
  --error: #e53e3e;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-400: #cbd5e0;
  --gray-500: #a0aec0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --gray-900: #1a202c;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.08);
  --sidebar-width: 240px;
  --font: 'Noto Sans KR', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--charcoal); font-size: 14px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ===== LOADING ===== */
.loading-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; gap: 16px; }
.loading-spinner { width: 40px; height: 40px; border: 3px solid var(--gray-300); border-top-color: var(--navy); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== LAYOUT ===== */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); background: var(--navy); color: white; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 100; display: flex; flex-direction: column; transition: transform 0.3s; }
.sidebar-logo { padding: 24px 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-logo h1 { font-size: 16px; font-weight: 700; color: white; line-height: 1.3; }
.sidebar-logo p { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.sidebar-nav { flex: 1; padding: 12px 0; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: rgba(255,255,255,0.75); font-size: 14px; transition: all 0.2s; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.12); color: white; }
.sidebar-nav a i { width: 18px; text-align: center; font-size: 15px; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-footer a { color: rgba(255,255,255,0.6); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.sidebar-footer a:hover { color: white; }

.main-content { margin-left: var(--sidebar-width); flex: 1; min-height: 100vh; }
.page-header { background: var(--white); border-bottom: 1px solid var(--gray-300); padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.page-header h2 { font-size: 20px; font-weight: 700; color: var(--charcoal); }
.page-body { padding: 28px 32px; }

/* ===== PUBLIC LAYOUT ===== */
.public-header { background: var(--navy); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.public-header .logo { color: white; font-size: 18px; font-weight: 700; }
.public-header .logo span { color: var(--gold); }

/* ===== CARDS ===== */
.card { background: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow); padding: 24px; }
.card-sm { padding: 16px; }
.card-grid { display: grid; gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== KPI CARDS ===== */
.kpi-card { background: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow); padding: 20px 24px; border-left: 4px solid var(--navy); }
.kpi-card .kpi-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.kpi-card .kpi-value { font-size: 28px; font-weight: 800; color: var(--charcoal); }
.kpi-card .kpi-label { font-size: 13px; color: var(--gray-600); margin-top: 4px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--border-radius-sm); font-size: 14px; font-weight: 600; border: none; transition: all 0.2s; min-height: 40px; white-space: nowrap; }
.btn-sm { padding: 6px 12px; font-size: 13px; min-height: 32px; gap: 5px; }
.btn-lg { padding: 14px 24px; font-size: 15px; min-height: 48px; }
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,58,95,0.3); }
.btn-secondary { background: white; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-secondary:hover { background: var(--navy-light); }
.btn-accent { background: var(--gold); color: var(--charcoal); }
.btn-accent:hover { background: #b8972e; transform: translateY(-1px); }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #c53030; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #2f855a; }
.btn-ghost { background: transparent; color: var(--gray-700); border: 1px solid var(--gray-300); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-icon { padding: 8px; min-height: auto; width: 34px; height: 34px; justify-content: center; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-public { background: #c6f6d5; color: #276749; }
.badge-private { background: var(--gray-200); color: var(--gray-700); }
.badge-expired { background: #fed7d7; color: #742a2a; }
.badge-navy { background: var(--navy-light); color: var(--navy); }
.badge-gold { background: var(--gold-light); color: #7b6119; }
.badge-success { background: #c6f6d5; color: #276749; }
.badge-warning { background: #fefcbf; color: #7b6119; }
.badge-error { background: #fed7d7; color: #742a2a; }
.badge-gray { background: var(--gray-200); color: var(--gray-700); }

/* Level badges */
.badge-level1 { background: #e2e8f0; color: #4a5568; }
.badge-level2 { background: #bee3f8; color: #2c5282; }
.badge-level3 { background: #c6f6d5; color: #276749; }
.badge-level4 { background: #fefcbf; color: #7b6119; }
.badge-level5 { background: #f5ead0; color: #7b4f12; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; }
.form-label .required { color: var(--error); margin-left: 3px; }
.form-input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-300); border-radius: var(--border-radius-sm); font-size: 14px; color: var(--charcoal); background: white; transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.form-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,95,0.12); }
.form-input.error { border-color: var(--error); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-hint { font-size: 12px; color: var(--gray-600); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--error); margin-top: 5px; display: none; }
.form-error.show { display: block; }
.char-count { font-size: 11px; color: var(--gray-500); text-align: right; margin-top: 3px; }

/* Toggle */
.toggle-wrapper { display: flex; align-items: center; gap: 10px; }
.toggle { position: relative; width: 44px; height: 24px; }
.toggle input { display: none; }
.toggle-slider { position: absolute; inset: 0; background: var(--gray-300); border-radius: 12px; cursor: pointer; transition: 0.3s; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; background: white; border-radius: 50%; top: 3px; left: 3px; transition: 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle input:checked + .toggle-slider { background: var(--navy); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-label { font-size: 14px; font-weight: 500; color: var(--charcoal); }

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; border-radius: var(--border-radius-sm); border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--gray-100); }
th { padding: 12px 16px; font-size: 12px; font-weight: 700; color: var(--gray-600); text-align: left; border-bottom: 1px solid var(--gray-200); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px; }
td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--gray-100); }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== TABS ===== */
.tabs { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 24px; gap: 0; overflow-x: auto; }
.tab-btn { padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--gray-600); border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; white-space: nowrap; }
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--navy); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== SEARCH BAR ===== */
.search-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.search-input-wrapper { position: relative; flex: 1; min-width: 200px; }
.search-input-wrapper i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-500); }
.search-input { padding-left: 36px; }
.filter-select { min-width: 130px; }

/* ===== SURVEY CARDS ===== */
.survey-card { background: white; border-radius: var(--border-radius); box-shadow: var(--shadow); padding: 20px; transition: box-shadow 0.2s, transform 0.2s; border: 1px solid var(--gray-200); }
.survey-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.survey-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.survey-card-title { font-size: 15px; font-weight: 700; color: var(--charcoal); line-height: 1.4; }
.survey-card-desc { font-size: 13px; color: var(--gray-600); line-height: 1.5; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.survey-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--gray-500); margin-bottom: 14px; }
.survey-card-meta span { display: flex; align-items: center; gap: 4px; }
.survey-card-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid var(--gray-100); }

/* ===== QUESTION ITEMS ===== */
.question-item { background: white; border: 1px solid var(--gray-200); border-radius: var(--border-radius-sm); padding: 16px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 12px; transition: box-shadow 0.2s; }
.question-item:hover { box-shadow: var(--shadow); }
.question-item.dragging { opacity: 0.5; background: var(--navy-light); }
.drag-handle { color: var(--gray-400); cursor: grab; padding: 4px; font-size: 18px; }
.drag-handle:active { cursor: grabbing; }
.question-num { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.question-body { flex: 1; min-width: 0; }
.question-title { font-size: 14px; font-weight: 600; color: var(--charcoal); margin-bottom: 4px; }
.question-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.question-actions { display: flex; gap: 4px; }

/* ===== LIKERT SCALE ===== */
.likert-options { display: flex; gap: 8px; flex-wrap: wrap; }
.likert-options.vertical { flex-direction: column; }
.likert-btn { flex: 1; min-width: 0; padding: 10px 8px; border: 1.5px solid var(--gray-300); border-radius: var(--border-radius-sm); background: white; cursor: pointer; transition: all 0.2s; font-size: 13px; color: var(--gray-700); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 48px; justify-content: center; }
.likert-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-light); }
.likert-btn.selected { background: var(--navy); border-color: var(--navy); color: white; }
.likert-btn .score { font-size: 18px; font-weight: 700; }
.likert-btn .label { font-size: 11px; line-height: 1.3; white-space: normal; }

/* Single choice options */
.choice-options { display: flex; flex-direction: column; gap: 8px; }
.choice-btn { padding: 12px 16px; border: 1.5px solid var(--gray-300); border-radius: var(--border-radius-sm); background: white; cursor: pointer; transition: all 0.2s; font-size: 14px; color: var(--gray-700); text-align: left; display: flex; align-items: center; gap: 12px; }
.choice-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-light); }
.choice-btn.selected { background: var(--navy); border-color: var(--navy); color: white; }
.choice-btn .choice-num { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-100); color: var(--gray-700); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.choice-btn.selected .choice-num { background: rgba(255,255,255,0.2); color: white; }

/* ===== PROGRESS BAR ===== */
.progress-bar-wrapper { position: sticky; top: 0; background: white; z-index: 10; padding: 12px 24px; border-bottom: 1px solid var(--gray-200); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.progress-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.progress-bar { height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--navy), var(--gold)); border-radius: 3px; transition: width 0.4s ease; }

/* ===== STEP INDICATOR ===== */
.step-indicator { display: flex; align-items: center; justify-content: center; gap: 0; padding: 20px 24px; background: white; border-bottom: 1px solid var(--gray-200); }
.step { display: flex; align-items: center; }
.step-circle { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--gray-500); transition: all 0.3s; }
.step.completed .step-circle { background: var(--success); border-color: var(--success); color: white; }
.step.active .step-circle { background: var(--navy); border-color: var(--navy); color: white; }
.step-label { font-size: 11px; color: var(--gray-500); margin-top: 4px; display: none; }
.step.active .step-label { color: var(--navy); font-weight: 600; }
.step-connector { width: 40px; height: 2px; background: var(--gray-300); margin: 0 4px; }
.step-connector.completed { background: var(--success); }

/* ===== RESULT PAGE ===== */
.result-score-card { text-align: center; padding: 32px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-hover) 100%); border-radius: var(--border-radius); color: white; margin-bottom: 24px; }
.result-score { font-size: 64px; font-weight: 900; }
.result-max { font-size: 24px; opacity: 0.7; }
.result-level { margin-top: 12px; }
.result-level-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); padding: 8px 20px; border-radius: 30px; font-size: 16px; font-weight: 700; }
.area-bar { margin-bottom: 12px; }
.area-bar-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.area-bar-track { height: 10px; background: var(--gray-200); border-radius: 5px; overflow: hidden; }
.area-bar-fill { height: 100%; background: linear-gradient(90deg, var(--navy), var(--gold)); border-radius: 5px; transition: width 1s ease; }

/* ===== TOAST ===== */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--border-radius-sm); color: white; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); pointer-events: auto; transform: translateX(120%); transition: transform 0.3s ease; min-width: 250px; max-width: 380px; }
.toast.show { transform: translateX(0); }
.toast-success { background: var(--success); }
.toast-error { background: var(--error); }
.toast-warning { background: var(--warning); }
.toast-info { background: var(--navy); }
.toast i { font-size: 16px; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; backdrop-filter: blur(2px); }
.modal-overlay.hidden { display: none; }
#modal-container { position: fixed; inset: 0; z-index: 1001; display: flex; align-items: center; justify-content: center; padding: 20px; pointer-events: none; }
.modal { background: white; border-radius: var(--border-radius); box-shadow: var(--shadow-lg); max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; pointer-events: auto; transform: scale(0.95); transition: transform 0.2s; }
.modal.show { transform: scale(1); }
.modal-lg { max-width: 800px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--gray-200); }
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-body { padding: 20px 24px; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--gray-200); }

/* ===== WARNING BANNER ===== */
.warning-banner { background: #fffbeb; border: 1px solid #f6e05e; border-radius: var(--border-radius-sm); padding: 12px 16px; display: flex; align-items: center; gap: 10px; color: #7b6119; font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.warning-banner i { color: var(--warning); font-size: 16px; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 48px; color: var(--gray-300); margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--gray-500); margin-bottom: 20px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; }
.page-btn { width: 36px; height: 36px; border-radius: var(--border-radius-sm); border: 1px solid var(--gray-300); background: white; color: var(--gray-700); font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.page-btn:hover { border-color: var(--navy); color: var(--navy); }
.page-btn.active { background: var(--navy); border-color: var(--navy); color: white; }

/* ===== CHART CONTAINERS ===== */
.chart-container { position: relative; height: 250px; }
.chart-container-sm { height: 180px; }
.chart-container-lg { height: 350px; }

/* ===== MISC ===== */
.divider { height: 1px; background: var(--gray-200); margin: 20px 0; }
.section-title { font-size: 16px; font-weight: 700; color: var(--charcoal); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); display: flex; align-items: center; gap: 8px; }
.section-title i { color: var(--navy); }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 13px; }
.font-bold { font-weight: 700; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

/* ===== LOGIN PAGE ===== */
.login-page { min-height: 100vh; background: linear-gradient(135deg, var(--navy) 0%, #2d5282 50%, #1a3a5f 100%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: white; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); padding: 40px; width: 100%; max-width: 400px; }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo h1 { font-size: 22px; font-weight: 900; color: var(--navy); }
.login-logo p { font-size: 13px; color: var(--gray-600); margin-top: 4px; }

/* ===== SURVEY RESPONSE PAGE ===== */
.survey-page { min-height: 100vh; background: var(--bg); }
.survey-content { max-width: 680px; margin: 0 auto; padding: 24px 20px; }
.question-card { background: white; border-radius: var(--border-radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.question-area-divider { display: flex; align-items: center; gap: 12px; margin: 28px 0 20px; }
.question-area-divider::before, .question-area-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-300); }
.question-area-label { font-size: 13px; font-weight: 700; color: var(--navy); background: var(--navy-light); padding: 4px 14px; border-radius: 20px; white-space: nowrap; }

/* ===== INTERESTS MULTI SELECT ===== */
.interests-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-btn { padding: 8px 14px; border: 1.5px solid var(--gray-300); border-radius: 20px; background: white; cursor: pointer; font-size: 13px; color: var(--gray-700); transition: all 0.2s; }
.interest-btn:hover { border-color: var(--navy); color: var(--navy); }
.interest-btn.selected { background: var(--navy); border-color: var(--navy); color: white; }

/* ===== MAIN PUBLIC PAGE ===== */
.hero-section { background: linear-gradient(135deg, var(--navy) 0%, #2a4d7f 100%); padding: 60px 20px; text-align: center; color: white; }
.hero-section h1 { font-size: 32px; font-weight: 900; margin-bottom: 12px; }
.hero-section p { font-size: 16px; opacity: 0.85; max-width: 500px; margin: 0 auto 28px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .page-body { padding: 16px; }
  .page-header { padding: 14px 16px; }
  .card-grid-4, .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .likert-options { flex-direction: column; }
  .likert-btn { flex-direction: row; justify-content: flex-start; gap: 12px; text-align: left; }
  .likert-btn .label { white-space: normal; }
  .hero-section h1 { font-size: 24px; }
  .step-connector { width: 20px; }
  .tabs { font-size: 13px; }
  .tab-btn { padding: 10px 12px; }
  .modal { margin: 10px; max-height: calc(100vh - 20px); }
  .page-header h2 { font-size: 17px; }
}

@media (max-width: 480px) {
  .survey-card-actions .btn { padding: 6px 8px; font-size: 12px; }
  .result-score { font-size: 48px; }
}

/* ===== PRINT STYLES ===== */
@media print {
  .sidebar, .page-header .btn, .btn-danger, .btn-primary, nav { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .card { box-shadow: none; border: 1px solid var(--gray-300); }
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 22px; color: var(--charcoal); padding: 4px; }
@media (max-width: 768px) { .mobile-menu-btn { display: flex; } }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
.sidebar-overlay.show { display: block; }

/* ===== DRAG OVER ===== */
.drag-over { background: var(--navy-light) !important; border: 2px dashed var(--navy) !important; }

/* ===== QR MODAL ===== */
#qr-canvas { display: block; margin: 0 auto; }

/* ===== REPORT TEXT ===== */
.report-text { background: var(--gray-100); border-radius: var(--border-radius-sm); padding: 20px; font-size: 14px; line-height: 1.8; color: var(--charcoal); white-space: pre-line; border-left: 4px solid var(--navy); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }
