@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Modern Futuristic Calm Glassmorphism */
  --bg-color: #0b0f19;
  --bg-secondary: #111827;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(99, 102, 241, 0.35);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-subtle: #6b7280;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent-color: #06b6d4;
  --accent-hover: #0891b2;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;

  --glass-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 15px rgba(99, 102, 241, 0.05);
  --btn-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.35);
  --font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(17, 24, 39, 0.6) 0%, transparent 100%);
  background-attachment: fixed;
  padding: 1.5rem;
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

/* Glassmorphism Card */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), rgba(6, 182, 212, 0.6), transparent);
}

.card:hover {
  border-color: var(--card-hover-border);
}

/* Header & Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

/* Instructions Box */
.instructions-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--accent-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
}

.instructions-box h3 {
  color: var(--accent-color);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.instructions-box p {
  color: #d1d5db;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Form Styling */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.95rem;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
  background: rgba(17, 24, 39, 0.9);
}

/* Action Buttons */
.actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-color) 100%);
  color: #ffffff;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  box-shadow: var(--btn-shadow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d1d5db;
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Progress bar */
.progress-container {
  margin-bottom: 2rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-color));
  width: 0%;
  transition: width 0.35s ease;
}

/* Prompt Above Question (Prompt 3.3.1) */
.instruction-banner {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  padding: 0.6rem 1rem;
  background: rgba(6, 182, 212, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  display: inline-block;
  letter-spacing: -0.01em;
}

.question-text {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  margin-bottom: 2rem;
  text-align: left;
  min-height: 70px;
}

/* Options Grid */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 1.05rem 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #e5e7eb;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.option-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
  transform: translateX(4px);
}

.option-btn:hover .badge-pill {
  background: rgba(99, 102, 241, 0.3);
  color: #ffffff;
}

.option-btn:active {
  transform: scale(0.98);
}

/* Profile / User Details Box */
.user-details-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  text-align: left;
}

.user-field-label {
  font-size: 0.82rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-field-val {
  font-size: 1.05rem;
  color: #f3f4f6;
  font-weight: 600;
}

/* Interpretation Items in Report */
.report-block {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  text-align: left;
  transition: var(--transition);
}

.report-block:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.035);
}

.report-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.report-block-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

.report-block-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-color);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
}

.report-meter-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.report-meter-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-color));
}

.report-positive {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.report-caution {
  color: #fed7aa;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Scientific Clinical Block (Raport2) */
.clinical-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.clinical-card.high-burnout {
  border-left-color: var(--danger-color);
}
.clinical-card.med-burnout {
  border-left-color: var(--warning-color);
}
.clinical-card.low-burnout {
  border-left-color: var(--success-color);
}

.clinical-badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.badge-low {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-med {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-high {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Bexterev Index Box */
.index-box {
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.12) 0%, rgba(17, 24, 39, 0.6) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.index-value {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin: 0.5rem 0;
}

.index-formula {
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: #93c5fd;
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.index-benchmarks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: left;
}

.benchmark-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.benchmark-title {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.benchmark-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e5e7eb;
}

/* Utilities */
.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Print Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
    padding: 0 !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
  }

  .card::before {
    display: none !important;
  }

  h1, h2, h3, h4 {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    background: none !important;
  }

  p, li, span, div {
    color: #374151 !important;
  }

  .no-print, .actions, .actions-row {
    display: none !important;
  }

  .clinical-card, .report-block, .user-details-card, .index-box {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .index-value {
    color: #1e40af !important;
    -webkit-text-fill-color: #1e40af !important;
  }
}
