/* SEMCD Hasta Risk Değerlendirme Web Paneli Stilleri */
:root {
  --primary-color: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --secondary-color: #0f766e;
  --secondary-light: #ccfbf1;
  --dark-color: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --accent-risk: #e11d48;
  --accent-risk-light: #ffe4e6;
  --accent-safe: #059669;
  --accent-safe-light: #d1fae5;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-light);
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Navbar */
.navbar-custom {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}
.nav-link {
  font-weight: 500;
  color: #475569 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
  background-color: var(--primary-light);
}

/* Cards */
.card-custom {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Large Question Radio Choice Cards */
.choice-card-wrapper {
  margin-bottom: 16px;
}
.choice-card {
  display: block;
  position: relative;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.choice-card:hover {
  border-color: var(--primary-color);
  background-color: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.1);
}
.choice-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.choice-input:checked + .choice-card {
  border-color: var(--primary-color);
  background-color: #f0f9ff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}
.choice-input:checked + .choice-card .choice-indicator {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.choice-input:checked + .choice-card .choice-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.choice-indicator {
  width: 22px;
  height: 22px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  margin-right: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.choice-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

/* Wizard Step Progress */
.wizard-progress-wrap {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  margin-bottom: 24px;
}
.progress-bar-custom {
  background: linear-gradient(90deg, #0284c7, #0ea5e9);
  height: 8px;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Report Styles */
.report-paper {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 860px;
  margin: 0 auto;
}
.score-badge-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 4px solid var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
}
.score-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}
.score-total {
  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
}

/* Risk & Favorable list */
.risk-item {
  background-color: #fff1f2;
  border-left: 4px solid #e11d48;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 10px;
}
.favorable-item {
  background-color: #ecfdf5;
  border-left: 4px solid #059669;
  padding: 10px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 8px;
}

/* Scientific Disclaimer Box */
.disclaimer-box {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 5px solid #d97706;
  border-radius: 8px;
  padding: 16px 20px;
  color: #92400e;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Print CSS */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }
  .navbar, .btn, .no-print, footer, .alert-action {
    display: none !important;
  }
  .report-paper {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .card-custom {
    box-shadow: none !important;
    border: 1px solid #999 !important;
  }
  .risk-item {
    background-color: #fdf2f2 !important;
    border-left: 4px solid #cc0000 !important;
    color: #000 !important;
  }
  .favorable-item {
    background-color: #f0fdf4 !important;
    border-left: 4px solid #008800 !important;
    color: #000 !important;
  }
  .score-badge-circle {
    border: 3px solid #000 !important;
    background: #f5f5f5 !important;
  }
  .disclaimer-box {
    border: 1px solid #bbb !important;
    background-color: #fafafa !important;
    color: #333 !important;
  }
  a {
    text-decoration: none !important;
    color: #000 !important;
  }
}
