/* ============================================= */
/* 1. COMMON STYLES (Used across all pages)      */
/* ============================================= */

.sidebar-sticky {
  position: sticky;
  top: 20px;
  background-color: #fff;
  padding: 24px;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
}

.form-section {
  margin-bottom: 2.5rem;
}

.form-section-header {
  font-weight: bold;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #343a40;
}

.form-section-header i {
  font-size: 1.25rem;
}

.stat-icon-green, .stat-text-green { color: #4ade80; }
.stat-icon-blue, .stat-text-blue { color: #60a5fa; }
.stat-icon-yellow, .stat-text-yellow { color: #facc15; }

.bonus-list, .topics-list {
  font-size: 0.9em;
  list-style: none;
  padding-left: 0;
}

.bonus-list li, .topics-list li {
  padding-left: 1.5em;
  text-indent: -1.5em;
  margin-bottom: 0.5rem;
}

.popular-topics-list li {
  font-size: 0.9em;
  padding-left: 1.2em;
  text-indent: -1.2em;
  margin-bottom: 0.5rem;
}

/* ============================================= */
/* 2. CONSUMER PAGE STYLES                       */
/* ============================================= */
.consumer-page {
  background-color: #EFF5FF;
}

.consumer-section {
  padding: 5rem 0;
  background: 
    linear-gradient(90deg, rgba(37, 99, 235, 0.85), rgba(79, 70, 229, 0.85)),
	url('../img/dashboard/consumer-registration.jpg');
  background-size: cover;
  background-position: center;
}

.consumer-page .popular-topics-box {
  background-color: #e9f3ff;
  border: 1px solid #cce0ff;
  border-radius: 0.375rem;
}

.consumer-page .bonus-box {
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 0.375rem;
}

.consumer-page .bonus-list li::before {
  content: "•";
  color: #2e7d32;
  margin-right: 0.75em;
  font-weight: bold;
}

.consumer-page .popular-topics-list li::before {
  content: "■";
  color: #198754;
  margin-right: 0.6em;
  font-weight: bold;
}

/* ============================================= */
/* 3. PROFESSIONAL PAGE STYLES                   */
/* ============================================= */
.professional-page {
  background-color: #f5f3ff;
}

.professional-page .hero-section-professional {
  padding: 5rem 0;
  background: 
    linear-gradient(90deg, rgba(124, 58, 237, 0.85), rgba(79, 70, 229, 0.85)),
     url('../img/dashboard/professional-registration.jpg'); 
  background-size: cover;
  background-position: center;
}

.professional-page .topics-box {
  background-color: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 0.375rem;
}

.professional-page .topics-list li::marker {
  color: #7c3aed;
}

/* ============================================= */
/* 4. HEALTHCARE PAGE STYLES                     */
/* ============================================= */
.healthcare-page {
  background-color: #fff1f2;
}

.healthcare-page .page-header .header-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #f43f5e, #ec4899);
}

.healthcare-page .badge-impact {
  background-color: #ffe4e6;
  color: #be123c;
  padding: 0.5em 0.75em;
  font-weight: 500;
}

.healthcare-page .topics-box {
  background-color: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 0.375rem;
}

.healthcare-page .topics-list li::marker {
  color: #f43f5e;
}

.healthcare-page .impact-box {
  background-color: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 0.375rem;
}

.healthcare-page .privacy-box {
  background-color: #eff6ff;
  border: 1px solid #dbeafe;
}

.healthcare-page .btn-submit-custom {
  background: linear-gradient(90deg, #f43f5e, #ec4899);
  color: white;
  border: none;
}
.healthcare-page .btn-submit-custom:hover {
  background: linear-gradient(90deg, #e11d48, #d946ef);
  color: white;
}

.thank-you-page {
  background-color: #f8fafc;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #16a34a;
}

/* =================================================== */
/* 5. HEALTHCARE PROFESSIONAL PAGE STYLES (NEW)        */
/* =================================================== */
.healthcare-pro-page {
  background-color: #ecfdf5; /* Light emerald background */
}

.healthcare-pro-page .page-header .header-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #10b981, #059669); /* Emerald-green gradient */
}

.healthcare-pro-page .badge-premium {
  background-color: #d1fae5;
  color: #047857;
  padding: 0.5em 0.75em;
  font-weight: 500;
}

.healthcare-pro-page .topics-box {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 0.375rem;
}

.healthcare-pro-page .topics-list li::marker {
  color: #10b981;
}

.healthcare-pro-page .verification-box {
  background-color: #fefce8;
  border: 1px solid #fde68a;
  color: #a16207;
}

.healthcare-pro-page .btn-submit-custom {
  background: linear-gradient(90deg, #10b981, #059669);
  color: white;
  border: none;
}
.healthcare-pro-page .btn-submit-custom:hover {
  background: linear-gradient(90deg, #059669, #047857);
  color: white;
}

.thank-you-pro-page {
  background-color: #f8fafc;
}

.dashboard {
	background: #FDFDFD;
}
.welcome {
  position: relative;
}

.member-badge {
  position: absolute;
  top: 0.75rem;
  right: 0;
  transform: translateY(-50%);
  background: #E7F8EE;
  color: #0B6B3A;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  box-shadow: 0 8px 28px rgba(11,107,58,0.06);
  border: 1px solid rgba(11,107,58,0.06);
  white-space: nowrap;
  z-index: 5;
  display: inline-block;
}

@media (max-width: 991px) {
  .member-badge {
    position: static;
    transform: none;
    display: inline-block;
    margin-top: 0.6rem;
  }
  .welcome { text-align: left; }
}

.member-badge {
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  opacity: 0;
  transform-origin: right center;
}
.member-badge.visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.kpi-row {
  display:flex;
  gap:18px;
  margin:20px 0 28px;
  flex-wrap:wrap;
  align-items:stretch;
}

.kpi-card {
  background: #fff;
  border: 1.5px solid rgb(228 232 235);
  border-radius: 12px;
  padding: 16px 18px;
  flex: 1 1 210px;
  min-width: 180px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 14px rgba(15,23,42,0.02);
  transition: all 0.25s ease-in-out;
  cursor: pointer;
}

.kpi-card:hover {
  background: hsl(215 20% 98%);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
  border-color: rgba(73,155,255,0.20);
}

.kpi-content {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-start;
}

.kpi-label {
  font-size:0.85rem;
  color:#6b7280;
  font-weight:600;
}

.kpi-value {
  font-weight:800;
  font-size:1.25rem;
  color:#16222b;
  line-height:1;
}

.kpi-sub {
  color:#65758b;
  font-size:0.92rem;
}

.kpi-icon {
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, rgb(73 155 255 / 28%), rgb(73 155 255 / 23%));
  color:#499BFF;
  font-size:1.25rem;
  flex-shrink:0;
  box-shadow: 0 8px 30px rgba(73,155,255,0.06);
}

.kpi-icon i { font-size:1.35rem; }

@media (max-width: 991px) {
  .kpi-row { gap:12px; }
  .kpi-card {
    flex: 1 1 48%;
    padding:12px;
  }
  @media (max-width: 540px) {
    .kpi-card { flex: 1 1 100%; }
    .kpi-icon { width:48px; height:48px; font-size:1.15rem; }
    .kpi-value { font-size:1.05rem; }
  }
}

.main-grid { display:grid; grid-template-columns: 1fr 340px; gap:22px; align-items:start; }

.panel {
  background:#fff;
  border: 1.5px solid rgb(228 232 235);
  border-radius:12px;
  padding:16px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.03);
}

.survey-item {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border-radius:10px;
  border:1.5px solid rgb(14 36 93 / 15%);
  margin-bottom:12px;
  transition: transform .12s ease, box-shadow .12s ease;
  background: linear-gradient(180deg, #fff, #fff);
}

.survey-item:hover,
.contact-card:hover {
  background: hsl(215 20% 98%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.05);
  transition: all 0.2s ease-in-out;
}
.survey-title { font-weight:700; color:#16222b; margin-bottom:4px; }
.survey-meta { color:#65758b; font-size:.92rem; }

.badge-topic {
  font-size: .78rem;
  background: #fff;
  color: #344155;
  padding: 4px 8px;
  border: 1.5px solid rgb(228 232 235);
  border-radius: 999px;
}

.btn-start {
  background: linear-gradient(180deg, #499BFF, #1b6ef0);
  color:#fff;
  border:none;
  border-radius:8px;
  padding:8px 12px;
  font-weight:600;
  box-shadow: 0 10px 28px rgba(73,155,255,0.10);
}

.survey-item.completed {
  background: linear-gradient(180deg,#f8fafc,#ffffff);
  color:#9aa3ad;
  pointer-events:none;
}

.widget { margin-bottom:18px; }

.small-progress { height:10px; border-radius:999px; background: rgba(14,36,93,0.05); overflow:hidden; }
.small-progress > .bar { height:100%; background: linear-gradient(90deg, #499BFF, #1b6ef0); display:block; }

.achievement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.95rem;
  color: #344155;
}
.achievement:last-child {
  border-bottom: none;
}

.achievement i {
  color: #499BFF;
  margin-right: 10px;
  font-size: 1rem;
}

.achievement span {
  flex: 1;
}

.achievement .ach-check {
  color: #34d399;
  flex-shrink: 0;
}

.quick-actions-panel {
  border: 1.5px solid rgba(14,36,93,0.08);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}

.quick-actions .btn {
  width: 100%;
  justify-content: flex-start;
  border: 1.5px solid rgba(14,36,93,0.08);
  border-radius: 8px;
  background: #fff;
  font-weight: 500;
  color: #344155;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  text-align: left;
}

.quick-actions .btn i {
  color: #499BFF;
  font-size: 1rem;
}

.quick-actions .btn:hover {
  background: #f7faff;
  color: #344155;
  border-color: #499BFF;
}

@media (max-width:991px) {
  .main-grid { grid-template-columns: 1fr; }
  .kpi-card { flex: 1 1 48%; }
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}