/* ============================================
   SIKASIH Design System
   Mobile-first, Pink Theme
   ============================================ */

/* --- Design Tokens --- */
:root {
  --pink-50: #fff0f6;
  --pink-100: #ffe8f2;
  --pink-200: #ffcce0;
  --pink-300: #ffa8c8;
  --pink-400: #ff8fab;
  --pink-500: #ff6b9d;
  --pink-600: #e85d8a;
  --pink-700: #d04a75;
  --pink-800: #b83860;
  --pink-900: #9e264b;
  --pink-gradient: linear-gradient(135deg, var(--pink-500), var(--pink-400));
  --pink-gradient-dark: linear-gradient(135deg, var(--pink-600), var(--pink-500));

  --green-50: #e8f5e9;
  --green-600: #2e7d32;
  --yellow-50: #fff3e0;
  --yellow-700: #e65100;
  --red-50: #ffebee;
  --red-600: #c62828;

  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-body: #f8f9fe;
  --bg-white: #ffffff;
  --border: #f0f0f5;
  --border-focus: var(--pink-500);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(255, 107, 157, 0.12);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(255, 107, 157, 0.2);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 480px;
  --header-height: 60px;
  --bottom-nav-height: 64px;
}

/* --- Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- App Layout --- */
.app-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-body);
  position: relative;
}

/* --- Header --- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pink-gradient);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: white;
  flex: 1;
}

.app-header p {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.back-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 16px;
  transition: all 0.2s;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-2px);
}

/* --- Content --- */
.app-content {
  padding: 16px 16px calc(var(--bottom-nav-height) + 20px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.app-content.no-bottom-nav {
  padding-bottom: 20px;
}

/* --- Bottom Navigation --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: var(--max-width);
  width: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
  z-index: 200;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 16px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}

.nav-item i {
  font-size: 20px;
  transition: all 0.2s;
}

.nav-item.active {
  color: var(--pink-500);
}

.nav-item.active i {
  transform: scale(1.1);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--pink-gradient);
  border-radius: var(--radius-full);
}

/* --- Cards --- */
.card-modern {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.card-modern:hover {
  box-shadow: var(--shadow-md);
}

.card-modern.rounded-lg {
  border-radius: var(--radius-lg);
}

.card-modern.rounded-xl {
  border-radius: var(--radius-xl);
}

/* --- Section Title --- */
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--pink-500);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: var(--pink-500);
}

/* --- Buttons --- */
.btn-pink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--pink-gradient);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-pink:active {
  transform: translateY(0);
}

.btn-pink:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline-pink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--pink-500);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--pink-500);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.btn-outline-pink:hover {
  background: var(--pink-50);
}

.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid #dc3545;
  border-radius: var(--radius-md);
  background: white;
  color: #dc3545;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.btn-danger-outline:hover {
  background: #dc3545;
  color: white;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-label .required {
  color: #dc3545;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: white;
  transition: all 0.2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--pink-500);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.12);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: #dc3545;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.helper-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.helper-text i {
  margin-top: 2px;
  flex-shrink: 0;
}

.invalid-feedback {
  font-size: 12px;
  color: #dc3545;
  margin-top: 4px;
  display: block;
}

/* --- Row Group --- */
.row-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.row-group .form-group {
  margin-bottom: 0;
}

/* --- Info Grid (4 info cards) --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.info-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: all 0.3s;
}

.info-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--pink-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.info-card-icon i {
  font-size: 20px;
  color: var(--pink-500);
}

.info-card-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.info-card-label {
  font-size: 11px;
  color: var(--text-secondary);
}

/* --- Info Rows (list) --- */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-label i {
  width: 18px;
  color: var(--pink-500);
}

.info-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.info-value.normal {
  color: var(--green-600);
}

.info-value.warning {
  color: var(--yellow-700);
}

.info-value.danger {
  color: var(--red-600);
}

/* --- Profile Avatar --- */
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--pink-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.25);
  position: relative;
}

.profile-avatar i {
  font-size: 44px;
  color: white;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 4px;
}

.profile-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--pink-500);
  background: var(--pink-50);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

/* --- Menu List --- */
.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  padding-left: 4px;
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--pink-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-icon i {
  font-size: 18px;
  color: var(--pink-500);
}

.menu-text {
  display: flex;
  flex-direction: column;
}

.menu-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.menu-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
}

.menu-arrow {
  color: #ccc;
  font-size: 14px;
}

/* --- Badge (menu notification) --- */
.badge-dot {
  background: var(--pink-500);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-left: 4px;
}

/* --- Alerts --- */
.alert-modern {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.alert-modern i {
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.alert-danger {
  background: var(--red-50);
  border-left: 3px solid var(--red-600);
  color: var(--red-600);
}

.alert-warning {
  background: var(--yellow-50);
  border-left: 3px solid var(--yellow-700);
  color: var(--yellow-700);
}

.alert-success {
  background: var(--green-50);
  border-left: 3px solid var(--green-600);
  color: var(--green-600);
}

/* --- Risk Badges --- */
.badge-risk-low {
  background: var(--green-50);
  color: var(--green-600);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-risk-mid {
  background: var(--yellow-50);
  color: var(--yellow-700);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-risk-high {
  background: var(--red-50);
  color: var(--red-600);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

/* --- Risk Group (Deteksi Risiko) --- */
.risk-group {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.risk-group-header {
  background: var(--pink-gradient);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.risk-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.risk-checkbox-item:hover {
  background: var(--pink-50);
  border-color: var(--pink-200);
}

.risk-checkbox-item.checked {
  background: var(--pink-100);
  border-color: var(--pink-500);
}

.risk-checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--pink-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.risk-checkbox-label {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  cursor: pointer;
}

.risk-score-badge {
  background: var(--pink-500);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Slider (Home) --- */
.slider-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.slider-slide {
  min-width: 100%;
  position: relative;
}

.slider-slide img {
  width: 100%;
  display: block;
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}

.slider-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

/* --- Menu Grid (Home) --- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.menu-grid-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: all 0.3s;
  cursor: pointer;
}

.menu-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.menu-grid-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--pink-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.menu-grid-icon i {
  font-size: 24px;
  color: white;
}

.menu-grid-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Article / Video Card --- */
.article-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all 0.3s;
  margin-bottom: 16px;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-card-body {
  padding: 14px 16px;
}

.article-card-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--pink-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.article-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.article-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Timeline (Riwayat) --- */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--pink-200);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-dot {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pink-gradient);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--pink-200);
}

.timeline-dot.lab {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 0 0 2px #c7d2fe;
}

.timeline-dot.konsul {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 0 0 2px #a7f3d0;
}

.timeline-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.timeline-badge.anc {
  background: var(--pink-50);
  color: var(--pink-600);
}

.timeline-badge.lab {
  background: #eef2ff;
  color: #4f46e5;
}

.timeline-badge.konsul {
  background: #ecfdf5;
  color: #059669;
}

.timeline-content {
  background: white;
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow-xs);
}

.timeline-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- Tabs --- */
.tab-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.tab-item {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border: 2px solid transparent;
}

.tab-item:hover {
  background: var(--pink-50);
  color: var(--pink-500);
}

.tab-item.active {
  background: var(--pink-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

/* --- Result Section (fixed bottom) --- */
.result-bar {
  position: fixed;
  bottom: var(--bottom-nav-height);
  left: 50%;
  transform: translateX(-50%);
  max-width: var(--max-width);
  width: 100%;
  background: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 16px 20px;
  z-index: 99;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.result-bar-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.result-bar-total span {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

.result-bar-total .score {
  font-size: 26px;
  font-weight: 700;
  color: var(--pink-500);
}

/* --- Summary Cards (Riwayat) --- */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.summary-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.summary-card-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--pink-500);
}

.summary-card-label {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: var(--max-width);
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
}

.modal-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin: 20px;
  width: calc(100% - 40px);
  max-width: 380px;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

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

.modal-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-icon-box i {
  font-size: 36px;
}

.modal-icon-box.low-risk {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
}

.modal-icon-box.medium-risk {
  background: linear-gradient(135deg, #ff9800, #ffa726);
  color: white;
}

.modal-icon-box.high-risk {
  background: linear-gradient(135deg, #f44336, #ef5350);
  color: white;
}

.modal-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-score {
  text-align: center;
  font-size: 44px;
  font-weight: 700;
  color: var(--pink-500);
  margin-bottom: 8px;
}

.modal-category {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin: 0 auto 20px;
  display: inline-block;
  width: 100%;
}

.modal-category.low-risk {
  background: var(--green-50);
  color: var(--green-600);
}

.modal-category.medium-risk {
  background: var(--yellow-50);
  color: var(--yellow-700);
}

.modal-category.high-risk {
  background: var(--red-50);
  color: var(--red-600);
}

/* --- Statistik Section (Riwayat) --- */
.stat-section {
  background: var(--pink-gradient);
  border-radius: var(--radius-md);
  padding: 20px;
  color: white;
  margin-bottom: 20px;
}

.stat-section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.9;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 13px;
  opacity: 0.9;
}

.stat-value {
  font-size: 13px;
  font-weight: 700;
}

/* --- Info Card (For landing/login) --- */
.info-card-bg {
  background: var(--pink-50);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  border-left: 3px solid var(--pink-500);
}

.info-card-bg p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.d-none { display: none; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.w-full { width: 100%; }

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 107, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0); }
}

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

.pulse-pink {
  animation: pulse-ring 2s infinite;
}

/* --- Responsive --- */
@media (min-width: 481px) {
  .app-layout {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  }
}
