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

/* CSS variables for the theme */
:root {
  --halodoc-red: #E0004D;
  --halodoc-red-hover: #C50043;
  --halodoc-red-light: rgba(224, 0, 77, 0.08);
  --halodoc-blue: #007BFF;
  --halodoc-blue-light: #E1F0FF;
  --halodoc-teal: #00A896;
  --halodoc-teal-light: rgba(0, 168, 150, 0.1);
  --success-green: #2EC4B6;
  --success-green-dark: #028090;
  --text-dark: #2C3E50;
  --text-muted: #7F8C8D;
  --bg-slate: #F4F7F6;
  --bg-white: #FFFFFF;
  --border-light: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-in-out;
}

/* Reset and base rules */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: #121212;
  color: var(--text-dark);
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.5;
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

/* Base style for scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.25);
}

/* Dynamic Mobile Frame Wrapper for Desktop */
.app-container {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--bg-slate);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Responsive Central Layout for Larger Screens */
@media (min-width: 500px) {
  body {
    background: radial-gradient(circle at 10% 20%, rgba(224, 0, 77, 0.05) 0%, rgba(0, 0, 0, 0) 90%), #121212;
  }
  .app-container {
    max-width: 460px;
    height: 100%;
    box-shadow: 0 0 40px rgba(0,0,0,0.3);
  }
}

/* Viewport Scrollable Area */
.app-viewport {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 90px; /* Safe padding to prevent bottom tab overlaps */
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Typography polish - Light, clean body weights */
p, .profile-bio, .link-row-desc, .prodi-desc, .directory-meta, .ticker-text, .empty-state, .info-row-content p, .table-info td {
  font-family: var(--font-secondary);
  font-weight: 350; /* Clear, readable, non-bold body text */
}

/* Navigation Bottom Tab Bar (Halodoc Style) */
.nav-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.02);
}

.nav-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  background: transparent;
  outline: none;
  user-select: none;
  gap: 4px;
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
}

.nav-tab-item span {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
}

.nav-tab-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-muted);
  stroke-width: 2.2;
  transition: var(--transition-fast);
}

.nav-tab-item.active {
  color: var(--halodoc-red);
}

.nav-tab-item.active svg {
  stroke: var(--halodoc-red);
  transform: translateY(-2px);
}

/* App Header (Search & Branding) */
.app-header {
  background-color: var(--bg-white);
  padding: 16px 20px 12px;
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--halodoc-red) 0%, var(--halodoc-red-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
}

.header-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-bell, .search-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.notification-bell:hover, .search-toggle-btn:hover {
  background-color: var(--border-light);
}

.notification-bell svg, .search-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-dark);
  stroke-width: 2.2;
}

.bell-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--halodoc-red);
}

/* Search Bar (Halodoc Style) */
.search-container {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container.show {
  height: 44px;
  opacity: 1;
  margin-top: 12px;
}

.search-input {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  border: 1.5px solid var(--border-light);
  background-color: var(--bg-slate);
  padding: 0 16px 0 44px;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
  outline: none;
}

.search-input:focus {
  border-color: var(--halodoc-red);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(224, 0, 77, 0.1);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  stroke-width: 2.5;
  pointer-events: none;
}

/* Image Slider / Banner */
.banner-container {
  padding: 16px 20px 4px;
  background-color: var(--bg-white);
}

.promo-banner {
  width: 100%;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* Services 8-Grid Menu (Halodoc Home Layout) */
.services-grid-section {
  background-color: var(--bg-white);
  padding: 16px 20px 20px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title span {
  font-size: 0.8rem;
  color: var(--halodoc-red);
  font-weight: 500;
  cursor: pointer;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 12px;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  text-decoration: none;
}

.service-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background-color: var(--halodoc-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

.service-item:hover .service-icon-wrapper {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 12px rgba(224, 0, 77, 0.12);
}

.service-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke: var(--halodoc-red);
  stroke-width: 2.2;
}

/* Variations for grid item colors */
.service-item.blue .service-icon-wrapper {
  background-color: rgba(0, 123, 255, 0.08);
}
.service-item.blue svg {
  stroke: var(--halodoc-blue);
}

.service-item.teal .service-icon-wrapper {
  background-color: rgba(0, 168, 150, 0.08);
}
.service-item.teal svg {
  stroke: var(--halodoc-teal);
}

.service-label {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  word-wrap: break-word;
  max-width: 72px;
}

/* Quick Info / Announcement Section */
.info-ticker-section {
  background-color: var(--bg-white);
  padding: 14px 20px;
  margin-bottom: 8px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.ticker-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-slate);
  border-radius: 12px;
  padding: 10px 14px;
}

.ticker-tag {
  background-color: var(--halodoc-red);
  color: var(--bg-white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ticker-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Prodi Grid Tab Content */
.prodi-list-section {
  padding: 20px;
}

.prodi-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.prodi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(224, 0, 77, 0.2);
}

.prodi-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prodi-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.prodi-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.badge-accreditation {
  background-color: var(--halodoc-teal-light);
  color: var(--halodoc-teal);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.prodi-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.prodi-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.prodi-card:hover .prodi-arrow {
  background-color: var(--halodoc-red);
}

.prodi-card:hover .prodi-arrow svg {
  stroke: var(--bg-white);
}

.prodi-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-dark);
  stroke-width: 2.5;
  transition: var(--transition-fast);
}

/* Search Tab - Directory Section */
.directory-section {
  padding: 20px;
}

.directory-category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.directory-cat-btn {
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.directory-cat-btn.active {
  background-color: var(--halodoc-red);
  color: var(--bg-white);
  border-color: var(--halodoc-red);
}

.directory-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideUp 0.3s ease-out;
}

.directory-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.directory-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.directory-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  background-color: var(--bg-slate);
  flex-shrink: 0;
}

.directory-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.directory-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.action-btn {
  flex: 1;
  height: 38px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.action-btn.wa {
  background-color: rgba(37, 211, 102, 0.08);
  color: #128C7E;
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.action-btn.wa:hover {
  background-color: #128C7E;
  color: var(--bg-white);
}

.action-btn.ig {
  background-color: rgba(225, 48, 108, 0.08);
  color: #E1306C;
  border: 1px solid rgba(225, 48, 108, 0.2);
}

.action-btn.ig:hover {
  background-color: #E1306C;
  color: var(--bg-white);
}

.action-btn.web {
  background-color: var(--halodoc-red-light);
  color: var(--halodoc-red);
  border: 1px solid rgba(224, 0, 77, 0.2);
}

.action-btn.web:hover {
  background-color: var(--halodoc-red);
  color: var(--bg-white);
}

.action-btn.group {
  background-color: rgba(0, 123, 255, 0.08);
  color: var(--halodoc-blue);
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.action-btn.group:hover {
  background-color: var(--halodoc-blue);
  color: var(--bg-white);
}

.action-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Empty State Search */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  stroke: var(--text-muted);
  margin-bottom: 12px;
  opacity: 0.6;
}

/* ────────────────────────────────────────────────────────
   OVERLAP-FREE DEPT / SUB-ROUTE VIEW
   ──────────────────────────────────────────────────────── */
.prodi-profile-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.back-hub-floating {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.back-hub-floating:hover {
  background-color: var(--halodoc-red-light);
}

.back-hub-floating svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-dark);
  stroke-width: 3;
}

.profile-title-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-accreditation-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--success-green);
  color: var(--bg-white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.profile-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.profile-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Bio sits inline below the row */
.profile-bio-container {
  padding: 0 20px 16px;
  background-color: var(--bg-white);
}

.profile-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Accordion Folders for Links */
.link-groups-container {
  padding: 16px 20px 8px;
}

.accordion-group {
  background-color: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.accordion-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.accordion-header svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-dark);
  stroke-width: 2.5;
  transition: var(--transition-smooth);
}

.accordion-group.open .accordion-header svg {
  transform: rotate(180deg);
  stroke: var(--halodoc-red);
}

.accordion-group.open .accordion-header {
  border-bottom: 1px solid var(--border-light);
}

.accordion-content {
  display: none;
  padding: 8px 12px 14px;
  background-color: var(--bg-white);
}

.accordion-group.open .accordion-content {
  display: block;
}

/* Link tree item rows */
.link-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
  text-decoration: none;
  transition: var(--transition-fast);
  margin-bottom: 8px;
}

.link-row-card:last-child {
  margin-bottom: 0;
}

.link-row-card:hover {
  background-color: var(--halodoc-red-light);
  border-color: rgba(224, 0, 77, 0.15);
}

.link-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding-right: 8px;
}

.link-row-title {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-dark);
}

.link-row-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.link-row-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.link-row-card:hover .link-row-icon {
  background-color: var(--halodoc-red);
}

.link-row-card:hover .link-row-icon svg {
  stroke: var(--bg-white);
}

.link-row-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-dark);
  stroke-width: 2.5;
  transition: var(--transition-fast);
}

/* Profile Socials Bar */
.profile-socials-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px 20px 24px;
}

.social-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.social-circle:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--halodoc-red);
  border-color: rgba(224, 0, 77, 0.2);
}

.social-circle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

/* Info Hub Static View */
.info-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-banner-card {
  background: linear-gradient(135deg, var(--halodoc-red) 0%, var(--halodoc-red-hover) 100%);
  border-radius: 16px;
  padding: 20px;
  color: var(--bg-white);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-banner-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.info-banner-card p {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.4;
}

.info-row-item {
  background-color: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.info-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--halodoc-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-row-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--halodoc-red);
  stroke-width: 2.2;
}

.info-row-content h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}

.info-row-content p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.info-row-link {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.info-row-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-dark);
  stroke-width: 2.5;
}

/* ────────────────────────────────────────────────────────
   DEDICATED /INFORMASI DIRECTORY PAGE STYLING
   ──────────────────────────────────────────────────────── */
.informasi-section {
  padding: 20px;
}

.info-lead-banner {
  background-color: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.info-lead-banner h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--halodoc-red);
  margin-bottom: 6px;
}

.info-lead-banner p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.table-container-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.table-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--halodoc-red-light);
}

.table-info {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  text-align: left;
}

.table-info th {
  padding: 10px 8px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.table-info td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.table-info tr:last-child td {
  border-bottom: none;
}

.badge-accreditation-sm {
  background-color: var(--halodoc-teal-light);
  color: var(--halodoc-teal);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}

.table-action-row {
  display: flex;
  gap: 6px;
}

.table-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.table-btn.wa {
  background-color: rgba(37, 211, 102, 0.1);
  color: #128C7E;
}
.table-btn.wa:hover {
  background-color: #128C7E;
  color: var(--bg-white);
}

.table-btn.ig {
  background-color: rgba(225, 48, 108, 0.1);
  color: #E1306C;
}
.table-btn.ig:hover {
  background-color: #E1306C;
  color: var(--bg-white);
}

.table-btn.web {
  background-color: var(--halodoc-red-light);
  color: var(--halodoc-red);
}
.table-btn.web:hover {
  background-color: var(--halodoc-red);
  color: var(--bg-white);
}

.table-btn.copy {
  background-color: var(--halodoc-blue-light);
  color: var(--halodoc-blue);
  cursor: pointer;
  border: none;
  outline: none;
}
.table-btn.copy:hover {
  background-color: var(--halodoc-blue);
  color: var(--bg-white);
}

.table-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* ────────────────────────────────────────────────────────
   USER MANAGEMENT / LOGIN / CRUD ADMIN SYSTEM STYLING
   ──────────────────────────────────────────────────────── */
.login-section {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideUp 0.3s ease-out;
}

.login-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-logo-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 8px;
}

.login-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.login-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.login-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  padding: 0 12px;
  font-family: var(--font-secondary);
  font-size: 0.88rem;
  outline: none;
  background-color: var(--bg-slate);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--halodoc-red);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 2.5px rgba(224, 0, 77, 0.08);
}

.btn-primary {
  background-color: var(--halodoc-red);
  color: var(--bg-white);
  border: none;
  border-radius: 8px;
  height: 42px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  stroke: var(--bg-white);
  stroke-width: 2.2;
  flex-shrink: 0;
}

.btn-primary:hover {
  background-color: var(--halodoc-red-hover);
}

.login-error-msg {
  color: var(--halodoc-red);
  font-size: 0.76rem;
  font-weight: 500;
  text-align: center;
  display: none;
}

/* Admin Dashboard Panel */
.admin-section {
  padding: 20px;
  animation: slideUp 0.3s ease-out;
}

.admin-header-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.admin-user-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.admin-user-info p {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-sm-logout {
  background-color: var(--bg-slate);
  color: var(--text-dark);
  border: 1.5px solid var(--border-light);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-sm-logout:hover {
  background-color: var(--halodoc-red-light);
  color: var(--halodoc-red);
  border-color: rgba(224, 0, 77, 0.2);
}

/* CRUD operations section */
.crud-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crud-form-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  border: 1.5px solid var(--halodoc-red-light);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crud-form-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.crud-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-cancel {
  flex: 1;
  background-color: var(--bg-slate);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  height: 38px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-save {
  flex: 2;
}

.crud-list-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.crud-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.crud-list-header h4 {
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-add-item {
  background-color: var(--halodoc-red-light);
  color: var(--halodoc-red);
  border: 1px solid rgba(224, 0, 77, 0.2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-add-item:hover {
  background-color: var(--halodoc-red);
  color: var(--bg-white);
}

.crud-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
}

.crud-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.crud-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding-right: 12px;
}

.crud-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}

.crud-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.crud-item-actions {
  display: flex;
  gap: 4px;
}

.crud-action-icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background-color: var(--bg-slate);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.crud-action-icon-btn.edit:hover {
  background-color: var(--halodoc-blue-light);
  color: var(--halodoc-blue);
}

.crud-action-icon-btn.delete:hover {
  background-color: var(--halodoc-red-light);
  color: var(--halodoc-red);
}

.crud-action-icon-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content {
  display: none;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-content.active {
  display: block;
}

/* Loader Vibe (Simulated Medical Loading) */
.page-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-slate);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease-out;
}

.loader-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  animation: pulse 1.8s infinite ease-in-out;
}

.loader-spinner {
  margin-top: 16px;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(224, 0, 77, 0.1);
  border-top-color: var(--halodoc-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-text {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

/* ────────────────────────────────────────────────────────
   CUSTOM STYLING STATIC PAGE TYPOGRAPHY
   ──────────────────────────────────────────────────────── */
.static-page-card {
  max-width: 520px;
  margin: 16px auto 80px;
  background-color: var(--bg-white);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.static-page-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
}

.static-page-content {
  font-family: var(--font-secondary);
  font-size: 0.82rem;
  color: #333333;
  line-height: 1.6;
}

.static-page-content p {
  margin-bottom: 12px;
}

.static-page-content strong {
  color: var(--text-dark);
  font-weight: 700;
}

.static-page-content h1, 
.static-page-content h2, 
.static-page-content h3 {
  color: var(--text-dark);
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.static-page-content h1 { font-size: 1.15rem; }
.static-page-content h2 { font-size: 1.05rem; }
.static-page-content h3 { font-size: 0.95rem; }

.static-page-content ul, 
.static-page-content ol {
  margin-bottom: 14px;
  padding-left: 20px;
}

.static-page-content ul {
  list-style-type: disc;
}

.static-page-content ol {
  list-style-type: decimal;
}

.static-page-content li {
  margin-bottom: 4px;
}

.static-page-content a {
  color: var(--halodoc-red);
  text-decoration: underline;
  font-weight: 600;
}

.static-page-content a:hover {
  color: var(--halodoc-red-hover);
}
