@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
  box-sizing: border-box;
}

body.admin_body {
  font-family: "Inter", sans-serif;
  background-color: #F3F4F8;
  color: #3B3B3B;
  margin: 0;
}

/* ---------- sidebar ---------- */
.admin_sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: linear-gradient(180deg, #1E3D22 0%, #2C4F2F 100%);
  color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.admin_sidebar_logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin_sidebar_logo img {
  height: 32px;
}

.admin_sidebar_logo span {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
  color: #fff;
}

.admin_nav {
  flex: 1;
  padding: 18px 14px;
  overflow-y: auto;
}

.admin_nav_label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.38);
  margin: 20px 12px 10px;
}

.admin_nav_label:first-child {
  margin-top: 4px;
}

.admin_nav_link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14.5px;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.admin_nav_link i {
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.admin_nav_link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin_nav_link.active {
  background-color: #B8860B;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.3);
}

.admin_sidebar_footer {
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin_sidebar_footer form button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 0;
}

.admin_sidebar_footer form button:hover {
  color: #fff;
}

.admin_sidebar_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.admin_sidebar_overlay.active {
  display: block;
}

/* ---------- main / topbar ---------- */
.admin_main {
  margin-left: 260px;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.admin_topbar {
  height: 76px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 900;
}

.admin_menu_toggle {
  display: none;
  font-size: 20px;
  color: #3B3B3B;
  cursor: pointer;
  background: none;
  border: none;
}

.admin_topbar_search {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #F3F4F8;
  border-radius: 10px;
  padding: 10px 16px;
  width: 320px;
  max-width: 100%;
}

.admin_topbar_search i {
  color: #8A8A8A;
  font-size: 14px;
}

.admin_topbar_search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: #3B3B3B;
}

.admin_topbar_right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.admin_topbar_icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #F3F4F8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3B3B3B;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.admin_topbar_icon .dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  background-color: #B8860B;
  border-radius: 50%;
  border: 2px solid #fff;
}

.admin_profile_wrap {
  position: relative;
}

.admin_profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.admin_profile_chevron {
  font-size: 11px;
  color: #8A8A8A;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.admin_profile_wrap.active .admin_profile_chevron {
  transform: rotate(180deg);
}

.admin_profile_dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 180px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.15s ease;
  z-index: 950;
}

.admin_profile_wrap.active .admin_profile_dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.admin_profile_dropdown form button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #B3261E;
  cursor: pointer;
  text-align: left;
}

.admin_profile_dropdown form button:hover {
  background-color: #FBE9E7;
}

.admin_profile_avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #305732;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.admin_profile_name {
  font-size: 14px;
  font-weight: 600;
  color: #3B3B3B;
  line-height: 1.2;
  white-space: nowrap;
  margin: 0;
}

.admin_profile_role {
  font-size: 12px;
  margin: 0;
  color: #8A8A8A;
}

/* ---------- content ---------- */
.admin_content {
  padding: 30px;
}

.admin_page_title {
  font-size: 24px;
  font-weight: 800;
  color: #3B3B3B;
  margin-bottom: 4px;
}

.admin_page_sub {
  color: #8A8A8A;
  font-size: 14px;
  margin-bottom: 28px;
}


.admin_stat_card {
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #EFEFF2;
  height: 100%;
}

.admin_stat_icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.admin_stat_icon.green {
  background-color: #E8F0E8;
  color: #305732;
}

.admin_stat_icon.gold {
  background-color: #FBF2DE;
  color: #B8860B;
}

.admin_stat_icon.dark {
  background-color: #EDEDEF;
  color: #3B3B3B;
}

.admin_stat_icon.olive {
  background-color: #EEF3E4;
  color: #55702E;
}

.admin_stat_value {
  font-size: 22px;
  font-weight: 800;
  color: #3B3B3B;
  margin: 0;
  line-height: 1.2;
}

.admin_stat_label {
  font-size: 13px;
  color: #8A8A8A;
  margin: 2px 0 0;
}

.admin_stat_trend {
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

.admin_stat_trend.up {
  color: #305732;
}

.admin_stat_trend.down {
  color: #B3261E;
}

.admin_panel {
  background-color: #fff;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #EFEFF2;
}

/* only stretch to full height when it's the single panel in its column (dashboard cards) -
   forms stack several panels in one column, and 100% height on each one made them overlap */
.admin_panel:only-child {
  height: 100%;
}

.admin_panel_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 10px;
}

.admin_panel_head h5 {
  font-weight: 700;
  font-size: 17px;
  color: #3B3B3B;
  margin: 0;
}

.admin_panel_link {
  font-size: 13px;
  color: #305732;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.admin_panel_link:hover {
  text-decoration: underline;
}

.admin_table_wrap {
  overflow-x: auto;
}

.admin_table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.admin_table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8A8A8A;
  padding: 10px 14px;
  border-bottom: 1px solid #EFEFF2;
  white-space: nowrap;
}

.admin_table td {
  padding: 14px;
  font-size: 14px;
  color: #3B3B3B;
  border-bottom: 1px solid #F3F4F8;
  vertical-align: middle;
}

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

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

.admin_table_avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #E8F0E8;
  color: #305732;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.admin_status_badge {
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
}

.admin_status_badge.paid {
  background-color: #E8F0E8;
  color: #305732;
}

.admin_status_badge.pending {
  background-color: #FBF2DE;
  color: #B8860B;
}

.admin_status_badge.failed {
  background-color: #FBE9E7;
  color: #B3261E;
}

.admin_progress_track {
  width: 100%;
  height: 8px;
  border-radius: 20px;
  background-color: #F3F4F8;
  overflow: hidden;
}

.admin_progress_fill {
  height: 100%;
  border-radius: 20px;
  background-color: #305732;
}

@media (max-width: 991px) {
  .admin_sidebar {
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
  }

  .admin_sidebar.active {
    transform: translateX(0);
  }

  .admin_main {
    margin-left: 0;
  }

  .admin_menu_toggle {
    display: block;
  }

  .admin_topbar_search {
    display: none;
  }
}

@media (max-width: 576px) {
  .admin_content {
    padding: 18px;
  }

  .admin_topbar {
    padding: 0 16px;
  }

  .admin_profile_name,
  .admin_profile_role {
    display: none;
  }
}

/* ---------- login ---------- */
.admin_login_wrap {
  min-height: 100vh;
  display: flex;
}

.admin_login_visual {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1E3D22 0%, #305732 55%, #3F6D42 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  color: #fff;
}

.admin_login_visual::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.28), transparent 70%);
  top: -120px;
  right: -120px;
}

.admin_login_visual::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  bottom: -100px;
  left: -80px;
}

.admin_login_logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.admin_login_logo img {
  height: 112px;
}

.admin_login_logo span {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
}

.admin_login_badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: max-content;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}

.admin_login_visual h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  max-width: 420px;
  position: relative;
  z-index: 2;
}

.admin_login_visual p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  margin-top: 16px;
  max-width: 380px;
  position: relative;
  z-index: 2;
}

.admin_login_stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  position: relative;
  z-index: 2;
}

.admin_login_stats div b {
  display: block;
  font-size: 22px;
  font-weight: 800;
}

.admin_login_stats div span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.admin_login_form_side {
  width: 480px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: #fff;
}

.admin_login_form_wrap {
  width: 100%;
  max-width: 360px;
}

.admin_login_form_wrap h3 {
  font-size: 26px;
  font-weight: 800;
  color: #3B3B3B;
  margin-bottom: 6px;
}

.admin_login_sub {
  color: #8A8A8A;
  font-size: 14px;
  margin-bottom: 30px;
}

.admin_login_error {
  background-color: #FBE9E7;
  color: #B3261E;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin_login_success {
  background-color: #E8F0E8;
  color: #305732;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin_field {
  margin-bottom: 20px;
}

.admin_field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #3B3B3B;
  margin-bottom: 8px;
}

.admin_field_input_wrap {
  position: relative;
}

.admin_field_input_wrap i.field_icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8A8A8A;
  font-size: 14px;
}

.admin_field input {
  width: 100%;
  border: 1px solid #A4A4A6;
  border-radius: 10px;
  padding: 12px 14px 12px 40px;
  font-size: 14px;
  outline: none;
  color: #3B3B3B;
  transition: all 0.2s ease;
}

.admin_field input:focus {
  border-color: #305732;
  box-shadow: 0 0 0 3px rgba(48, 87, 50, 0.12);
}

.admin_field_toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8A8A8A;
  cursor: pointer;
}

/* modal password fields reuse admin_field_input_wrap/admin_field_toggle but
   with admin_form_control, which has no left icon so it needs right padding
   only, just enough to clear the eye icon */
.admin_field_input_wrap .admin_form_control {
  padding-right: 40px;
}

.admin_login_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.admin_remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #3B3B3B;
}

.admin_remember input {
  accent-color: #305732;
  width: 15px;
  height: 15px;
}

.admin_forgot_link {
  font-size: 13px;
  color: #305732;
  font-weight: 600;
  text-decoration: none;
}

.admin_forgot_link:hover {
  text-decoration: underline;
}

.admin_login_btn {
  width: 100%;
  background-color: #305732;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.admin_login_btn:hover {
  background-color: #24401F;
}

.admin_login_foot {
  text-align: center;
  font-size: 13px;
  color: #8A8A8A;
  margin-top: 26px;
}

@media (max-width: 991px) {
  .admin_login_visual {
    display: none;
  }

  .admin_login_form_side {
    width: 100%;
  }
}

/* ---------- admin CRUD screens (forms, buttons, alerts) ---------- */
.admin_page_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.admin_breadcrumb {
  font-size: 13px;
  color: #8A8A8A;
  margin-bottom: 6px;
}

.admin_breadcrumb a {
  color: #305732;
  text-decoration: none;
  font-weight: 600;
}

.admin_breadcrumb a:hover {
  text-decoration: underline;
}

.admin_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin_btn_primary {
  background-color: #305732;
  color: #fff;
}

.admin_btn_primary:hover {
  background-color: #24401F;
  color: #fff;
}

.admin_btn_outline {
  background-color: #fff;
  color: #3B3B3B;
  border: 1px solid #A4A4A6;
}

.admin_btn_outline:hover {
  border-color: #305732;
  color: #305732;
}

.admin_btn_danger {
  background-color: #FBE9E7;
  color: #B3261E;
}

.admin_btn_danger:hover {
  background-color: #B3261E;
  color: #fff;
}

.admin_btn_sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.admin_alert {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin_alert_success {
  background-color: #E8F0E8;
  color: #305732;
}

.admin_alert_error {
  background-color: #FBE9E7;
  color: #B3261E;
}

.admin_form_group {
  margin-bottom: 22px;
}

.admin_form_group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #3B3B3B;
  margin-bottom: 8px;
}

.admin_form_hint {
  font-size: 12px;
  color: #8A8A8A;
  margin-top: 6px;
}

.admin_bullet_row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.admin_bullet_row .admin_form_control {
  flex: 1;
}

.admin_form_control {
  width: 100%;
  border: 1px solid #A4A4A6;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: #3B3B3B;
  outline: none;
  background-color: #fff;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

.admin_form_control:focus {
  border-color: #305732;
  box-shadow: 0 0 0 3px rgba(48, 87, 50, 0.12);
}

textarea.admin_form_control {
  resize: vertical;
  min-height: 110px;
}

.admin_icon_upload {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin_icon_preview {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background-color: #F3F4F8;
  border: 1px solid #EFEFF2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.admin_icon_preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.admin_table_icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: #F3F4F8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.admin_table_icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.admin_form_footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.admin_empty_state {
  text-align: center;
  padding: 50px 20px;
  color: #8A8A8A;
}

.admin_empty_state i {
  font-size: 32px;
  color: #A4A4A6;
  margin-bottom: 14px;
}

.admin_action_group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin_icon_btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #A4A4A6;
  color: #3B3B3B;
  background-color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
}

.admin_icon_btn:hover {
  border-color: #305732;
  color: #305732;
}

.admin_icon_btn.danger:hover {
  border-color: #B3261E;
  color: #B3261E;
  background-color: #FBE9E7;
}

.admin_seo_panel {
  background-color: #F3F4F8;
  border-radius: 14px;
  padding: 20px;
  margin-top: 6px;
}

.admin_seo_panel_title {
  font-size: 13px;
  font-weight: 700;
  color: #3B3B3B;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin_seo_panel_title i {
  color: #B8860B;
}

.admin_seo_panel_sub {
  font-size: 12px;
  color: #8A8A8A;
  margin-bottom: 16px;
}

/* rich text editor (self-contained, no external library) used for the description / answer fields */
.admin_editor_toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid #A4A4A6;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background-color: #F3F4F8;
}

.admin_editor_btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: none;
  background-color: #fff;
  border-radius: 6px;
  color: #3B3B3B;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.admin_editor_btn:hover {
  background-color: #E8F0E8;
  color: #305732;
}

.admin_editor_sep {
  width: 1px;
  align-self: stretch;
  background-color: #D8D8DC;
  margin: 2px 4px;
}

.admin_editor_body {
  min-height: 150px;
  border: 1px solid #A4A4A6;
  border-radius: 0 0 10px 10px;
  padding: 14px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #3B3B3B;
  outline: none;
}

.admin_editor_body_lg {
  min-height: 280px;
}

.admin_editor_body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0;
}

.admin_editor_body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 8px 0;
}

.admin_editor_body ul,
.admin_editor_body ol {
  padding-left: 20px;
}

.admin_editor_body table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.admin_editor_body table td {
  border: 1px solid #A4A4A6;
  padding: 8px;
}

/* ---------- inline feature icon grid + add/edit popup (consultation page) ---------- */
.admin_feature_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.admin_feature_card {
  border: 1px solid #EFEFF2;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  position: relative;
  background-color: #F3F4F8;
}

.admin_feature_card_icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background-color: #305732;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.admin_feature_card_icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.admin_feature_card_caption {
  font-size: 13px;
  color: #3B3B3B;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.4;
}

.admin_feature_card_actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.admin_feature_add_card {
  border: 2px dashed #A4A4A6;
  border-radius: 14px;
  background: transparent;
  color: #305732;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 148px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.admin_feature_add_card:hover {
  border-color: #305732;
  background-color: #E8F0E8;
}

.admin_feature_add_card i {
  font-size: 22px;
}

.admin_accordion_item {
  border: 1px solid #EFEFF2;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.admin_accordion_item:last-child {
  margin-bottom: 0;
}

.admin_accordion_summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background-color: #F3F4F8;
  font-weight: 600;
  color: #3B3B3B;
}

.admin_accordion_summary::-webkit-details-marker {
  display: none;
}

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

.admin_accordion_chevron {
  font-size: 12px;
  transition: transform 0.2s ease-in-out;
}

.admin_accordion_item[open] .admin_accordion_chevron {
  transform: rotate(90deg);
}

.admin_accordion_body {
  padding: 18px;
}

.row_2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.row_3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .row_2col,
  .row_3col {
    grid-template-columns: 1fr;
  }
}

.admin_avis_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.admin_avis_card {
  position: relative;
  border: 1px solid #EFEFF2;
  border-radius: 14px;
  overflow: hidden;
  background-color: #F3F4F8;
}

.admin_avis_card.sortable-ghost {
  opacity: 0.4;
}

.admin_avis_card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.admin_avis_card_handle {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background-color: rgba(59, 59, 59, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  font-size: 14px;
}

.admin_avis_card_handle:active {
  cursor: grabbing;
}

.admin_avis_card_delete {
  position: absolute;
  top: 8px;
  right: 8px;
}

.admin_avis_card_delete button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background-color: rgba(59, 59, 59, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
}

.admin_avis_card_delete button:hover {
  background-color: #B3261E;
}

.admin_avis_add_card {
  border: 2px dashed #A4A4A6;
  border-radius: 14px;
  background: transparent;
  color: #305732;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 170px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.admin_avis_add_card:hover {
  border-color: #305732;
  background-color: #E8F0E8;
}

.admin_avis_add_card i {
  font-size: 22px;
}

.admin_avis_card img {
  cursor: zoom-in;
}

.admin_lightbox_overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.admin_lightbox_overlay.active {
  opacity: 1;
  visibility: visible;
}

.admin_lightbox_overlay img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 14px;
}

.admin_lightbox_close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.admin_modal_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(59, 59, 59, 0.55);
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin_modal_overlay.active {
  display: flex;
}

.admin_modal {
  background-color: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.admin_modal_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #EFEFF2;
}

.admin_modal_head h3 {
  font-size: 17px;
  font-weight: 700;
  color: #3B3B3B;
  margin: 0;
}

.admin_modal_close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background-color: #F3F4F8;
  color: #3B3B3B;
  cursor: pointer;
  font-size: 14px;
}

.admin_modal_close:hover {
  background-color: #EFEFF2;
}

.admin_modal_body {
  padding: 22px 24px;
}

.admin_modal_footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 22px;
}

.admin_btn_warning {
  background-color: #FBF3DF;
  color: #8A6D1D;
}

.admin_btn_warning:hover {
  background-color: #B8860B;
  color: #fff;
}

/* ---------- admin booking calendar (block days/slots, manual bookings) ---------- */
.admin_calendar_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin_calendar_header h5 {
  margin: 0;
  font-weight: 700;
  color: #3B3B3B;
  text-transform: capitalize;
}

.admin_calendar_nav_btns {
  display: flex;
  gap: 8px;
}

.admin_calendar_nav_btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #A4A4A6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #3B3B3B;
  transition: all 0.2s ease;
}

.admin_calendar_nav_btn:hover {
  border-color: #305732;
  color: #305732;
}

.admin_calendar_nav_btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.admin_calendar_grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.admin_calendar_weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #8A8A8A;
  padding-bottom: 4px;
}

.admin_calendar_day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #3B3B3B;
  background-color: #F3F4F8;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.admin_calendar_day.other_month {
  visibility: hidden;
}

.admin_calendar_day.past {
  color: #C4C4C4;
  cursor: default;
  background-color: transparent;
}

.admin_calendar_day:not(.past):not(.other_month):hover {
  background-color: #E8F0E8;
}

.admin_calendar_day.today {
  border: 1px solid #305732;
}

.admin_calendar_day.selected {
  background-color: #305732;
  color: #fff;
  font-weight: 700;
}

.admin_calendar_day.day_blocked:not(.selected) {
  background-color: #FBE9E7;
  color: #B3261E;
}

.admin_calendar_day .admin_calendar_dot {
  position: absolute;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #B8860B;
}

.admin_calendar_day.selected .admin_calendar_dot {
  background-color: #fff;
}

.admin_slots_panel {
  background-color: #F3F4F8;
  border-radius: 14px;
  padding: 20px;
  height: 100%;
}

.admin_slots_panel h6 {
  font-weight: 700;
  color: #3B3B3B;
  margin-bottom: 14px;
  text-transform: capitalize;
}

.admin_day_blocked_notice {
  background-color: #FBE9E7;
  color: #B3261E;
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin_slot_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background-color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border: 1px solid #EFEFF2;
}

.admin_slot_time {
  font-weight: 600;
  color: #3B3B3B;
  font-size: 14px;
  min-width: 52px;
}

.admin_slot_badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.admin_slot_badge.available {
  background-color: #E8F0E8;
  color: #305732;
}

.admin_slot_badge.blocked {
  background-color: #FBE9E7;
  color: #B3261E;
}

.admin_slot_badge.booked {
  background-color: #FBF3DF;
  color: #8A6D1D;
}

.admin_slot_customer {
  font-size: 12px;
  color: #8A8A8A;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin_slot_actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- small status badge (e.g. blog post published/draft) ---------- */
.admin_badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  background-color: #F1F3EB;
  color: #8A8A8A;
  font-size: 12px;
  font-weight: 600;
}

.admin_badge_success {
  background-color: #E8F0E8;
  color: #305732;
}

.admin_badge_warning {
  background-color: #FBF2DE;
  color: #B8860B;
}

.admin_badge_info {
  background-color: #EEF3E4;
  color: #55702E;
}

.admin_badge_danger {
  background-color: #FBE9E7;
  color: #B3261E;
}

/* ---------- period tabs (statistics pages: hour/day/week/month/year) ---------- */
.stats_period_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.stats_period_tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 30px;
  background-color: #F1F3EB;
  color: #5a5a5a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.stats_period_tab:hover {
  background-color: #E8F0E8;
  color: #305732;
}

.stats_period_tab.active {
  background-color: #305732;
  color: #ffffff;
}

/* ---------- checkbox row (used e.g. for the blog post "Publié" toggle) ---------- */
.admin_checkbox_row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.admin_checkbox_row input[type="checkbox"] {
  accent-color: #305732;
  width: 18px;
  height: 18px;
}

.admin_position_toggle {
  display: flex;
  gap: 20px;
}

.admin_position_toggle label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #3B3B3B;
  cursor: pointer;
  font-weight: 500;
}

.admin_position_toggle input[type="radio"] {
  accent-color: #305732;
  width: 16px;
  height: 16px;
}

/* ---------- blog post content-block builder (drag-to-reorder list) ---------- */
.admin_block_list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin_block_item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #EFEFF2;
  border-radius: 12px;
  padding: 12px 14px;
  background-color: #fff;
}

.admin_block_item.sortable-ghost {
  opacity: 0.4;
}

.admin_block_handle {
  cursor: grab;
  color: #A4A4A6;
  font-size: 16px;
  padding: 4px;
}

.admin_block_handle:active {
  cursor: grabbing;
}

.admin_block_type_badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background-color: #E8F0E8;
  color: #305732;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.admin_block_thumbs {
  display: flex;
  gap: 6px;
}

.admin_block_thumbs img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
}

.admin_block_preview_text {
  flex: 1;
  min-width: 0;
  color: #3B3B3B;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin_block_actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.admin_block_type_choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.admin_block_type_choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 130px;
  padding: 16px 10px;
  border: 1px solid #EFEFF2;
  border-radius: 12px;
  background: none;
  color: #3B3B3B;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s ease-in-out;
}

.admin_block_type_choice i {
  font-size: 22px;
  color: #305732;
}

.admin_block_type_choice:hover {
  border-color: #305732;
  background-color: #E8F0E8;
}

/* inline, always-open editing card for a single variant/tab/content block -
   replaces the old popup so every field is visible on the page at once */
.admin_inline_section {
  border: 1px solid #EFEFF2;
  border-radius: 12px;
  padding: 18px 20px;
  background-color: #fff;
  margin-bottom: 16px;
}

.admin_inline_section.sortable-ghost {
  opacity: 0.4;
}

.admin_inline_section_head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F3F3F5;
}

.admin_repeatable_items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.admin_repeatable_item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #EFEFF2;
  border-radius: 12px;
  padding: 12px;
  background-color: #F9F9FB;
}

.admin_repeatable_item_preview {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.admin_repeatable_item_fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.admin_repeatable_item_remove {
  border: none;
  background: transparent;
  color: #B3261E;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  flex-shrink: 0;
}

.admin_repeatable_add_btn {
  border: 2px dashed #A4A4A6;
  border-radius: 10px;
  background: transparent;
  color: #305732;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.admin_repeatable_add_btn:hover {
  border-color: #305732;
  background-color: #E8F0E8;
}

/* ---------- order line items (create order page) ---------- */
.admin_order_line {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 14px 0;
  border-bottom: 1px solid #EFEFF2;
}

.admin_order_line:first-child {
  padding-top: 0;
}

@media (max-width: 640px) {
  .admin_order_line {
    grid-template-columns: 1fr;
  }
}

.admin_order_summary {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #EFEFF2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  margin-left: auto;
}

.admin_order_summary > div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #3B3B3B;
}

.admin_order_summary_total {
  font-weight: 700;
  font-size: 16px;
  color: #305732;
  padding-top: 8px;
  border-top: 1px solid #EFEFF2;
}

/* ---------- order detail page ---------- */
.admin_order_detail_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .admin_order_detail_grid {
    grid-template-columns: 1fr;
  }
}

.admin_order_detail_row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #EFEFF2;
  font-size: 14px;
}

.admin_order_detail_row:last-child {
  border-bottom: none;
}

.admin_order_detail_row span:first-child {
  color: #8A8A8A;
}

.admin_order_detail_row span:last-child {
  color: #3B3B3B;
  font-weight: 600;
  text-align: right;
}
