@charset "UTF-8";

/* -----------------------------------------------------------------
   AFI-aligned AfiDocs Global Styles
   ----------------------------------------------------------------- */

:root {
  --afi-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --afi-body: #f8fafc;
  --afi-surface: #ffffff;
  --afi-surface-alt: #f5f7ff;
  --afi-border: #e2e8f0;
  --afi-border-strong: #cbd5f5;
  --afi-text: #0f172a;
  --afi-text-muted: #64748b;
  --afi-heading: #111827;
  --afi-brand: #6366f1;
  --afi-brand-dark: #4f46e5;
  --afi-brand-soft: rgba(99, 102, 241, 0.1);
  --afi-danger: #ef4444;
  --afi-success: #10b981;
  --afi-warning: #f59e0b;
  --afi-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --afi-shadow-lg: 0 35px 80px rgba(15, 23, 42, 0.12);
  --afi-radius: 18px;
}

body.ezd-body-docs,
.ezd-body-docs {
  font-family: var(--afi-font);
  color: var(--afi-text);
  background: var(--afi-body);
  line-height: 1.65;
}

/* Grid System ------------------------------------------------- */
.ezd-container {
  width: min( var(--ezd-container-max, 1200px), 100% );
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.ezd-grid {
  display: grid;
  gap: var(--ezd-grid-gap, 2rem);
  align-items: start;
}

.ezd-grid-cols-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.ezd-grid-column-full {
  grid-column: 1 / -1;
}

[class*="ezd-col-"],
[class*="ezd-md-col-"],
[class*="ezd-lg-col-"],
[class*="ezd-xl-col-"] {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .ezd-md-col-4 {
    grid-column: span 4;
  }
  .ezd-md-col-6 {
    grid-column: span 6;
  }
  .ezd-md-col-8 {
    grid-column: span 8;
  }
}

@media (min-width: 992px) {
  .ezd-lg-col-3 {
    grid-column: span 3;
  }
  .ezd-lg-col-6 {
    grid-column: span 6;
  }
  .ezd-lg-col-9 {
    grid-column: span 9;
  }
}

@media (min-width: 1200px) {
  .ezd-xl-col-2 {
    grid-column: span 2;
  }
  .ezd-xl-col-3 {
    grid-column: span 3;
  }
  .ezd-xl-col-7 {
    grid-column: span 7;
  }
  .ezd-xl-col-8 {
    grid-column: span 8;
  }
  .ezd-xl-col-10 {
    grid-column: span 10;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--afi-heading);
  font-weight: 700;
  margin-bottom: 0.65em;
}

p {
  color: var(--afi-text-muted);
  margin-bottom: 1.25em;
}

a {
  color: var(--afi-brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--afi-brand-dark);
}

/* Buttons ------------------------------------------------------ */

.ezd-btn,
.doc_border_btn,
.action_btn,
.ezd-btn-default {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--afi-radius);
  font-weight: 600;
  border: 1px solid transparent;
  background: var(--afi-brand);
  color: #fff;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.doc_border_btn {
  background: var(--afi-brand-soft);
  border-color: var(--afi-border);
  color: var(--afi-brand);
}

.ezd-btn:hover,
.action_btn:hover {
  background: var(--afi-brand-dark);
  box-shadow: 0 12px 25px rgba(99, 102, 241, 0.25);
}

.doc_border_btn:hover {
  border-color: var(--afi-brand);
  color: var(--afi-brand-dark);
}

/* Cards / Panels ---------------------------------------------- */

.doc_border_box,
.doc_item,
.doc_tabs,
.doc_tab_pane,
.doc_tag,
.doc_tagged_item,
.doc-feedback-panel,
.categories_guide_item {
  background: transparent;
  border: 1px solid var(--afi-border);
  border-radius: 0;
  padding: 1.5rem;
  box-shadow: none;
}

.categories_guide_item .doc_tag_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--afi-text);
}

.categories_guide_item .doc_tag_title span.badge {
  background: var(--afi-brand-soft);
  color: var(--afi-brand-dark);
  border-radius: 50px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
}

.doc_border_box + .doc_border_box,
.doc_item + .doc_item {
  margin-top: 1rem;
}

.documentation_item {
  border: 1px solid var(--afi-border);
  border-radius: var(--afi-radius);
  padding: 1.25rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.documentation_item:hover {
  transform: translateY(-3px);
  box-shadow: var(--afi-shadow-sm);
}

.documentation_item .icon {
  flex: 0 0 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.documentation_item .title {
  font-size: 1.05rem;
  color: var(--afi-heading);
  font-weight: 600;
}

.documentation_item .title:hover {
  color: var(--afi-brand);
}

.documentation_item p {
  margin: 0.35rem 0 0;
  color: var(--afi-text-muted);
  font-size: 0.95rem;
}

/* Tabs --------------------------------------------------------- */

.doc_tab_pane .nav-tabs {
  border-bottom: 1px solid var(--afi-border);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.doc_tab_pane .nav-tabs .nav-link {
  border: none;
  border-radius: 0;
  padding: 0.35rem 1rem;
  font-weight: 600;
  color: var(--afi-text-muted);
}

.doc_tab_pane .nav-tabs .nav-link.active {
  color: var(--afi-brand);
  background: transparent;
}

.doc_tab_pane .tab-content {
  padding-top: 1.5rem;
}

/* Breadcrumbs -------------------------------------------------- */

.doc-breadcrumb,
.breadcrumb,
.breadcrumb_custom {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.92rem;
  color: var(--afi-text-muted);
  margin-bottom: 1rem;
}

.doc-breadcrumb a,
.breadcrumb a,
.breadcrumb_custom a {
  color: var(--afi-brand);
  text-decoration: none;
}

.doc-breadcrumb a:hover,
.breadcrumb a:hover,
.breadcrumb_custom a:hover {
  color: var(--afi-brand-dark);
}

/* Search ------------------------------------------------------- */

.ezd_search_form {
  position: relative;
  background: var(--afi-surface);
  border: 1px solid var(--afi-border);
  border-radius: 16px;
  padding: 0.5rem 0.75rem 0.5rem 3rem;
  box-shadow: var(--afi-shadow-sm);
}

.ezd_search_form input {
  border: none;
  font-size: 1rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: transparent;
}

.ezd_search_form input:focus {
  outline: none;
}

.ezd_search_form .search_icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--afi-brand);
  font-size: 1.1rem;
}

.ezd_search_keywords {
  margin-top: 0.75rem;
}

.ezd_search_keywords ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ezd_search_keywords ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  border: 1px solid var(--afi-border);
  color: var(--afi-text-muted);
}

.ezd_search_keywords ul li a:hover {
  border-color: var(--afi-brand);
  color: var(--afi-brand-dark);
}

/* Feedback ----------------------------------------------------- */

#afidocs_feedback,
.doc-feedback-panel {
  background: transparent;
  border: 1px dashed var(--afi-border-strong);
  border-radius: 0;
  padding: 1.75rem;
  text-align: center;
  box-shadow: none;
}

#afidocs_feedback h4,
.doc-feedback-panel h4 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  color: var(--afi-heading);
}

#afidocs_feedback p,
.doc-feedback-panel p {
  color: var(--afi-text-muted);
  margin-bottom: 1rem;
}

#afidocs_feedback .action_btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Share Modal -------------------------------------------------- */

.ezd-modal .ezd-modal-dialog {
  max-width: 460px;
  border-radius: 0;
  box-shadow: var(--afi-shadow-lg);
}

.ezd-modal .ezd-modal-content {
  border-radius: 0;
  padding: 2rem;
  border: 1px solid var(--afi-border);
}

.afidocs-share-wrap {
  text-align: center;
}

.afidocs-share-wrap h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.afidocs-share-wrap .social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.afidocs-share-wrap .social-links a {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: var(--afi-brand-soft);
  color: var(--afi-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.afidocs-share-wrap .copy-url-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--afi-border);
  border-radius: 0;
  padding: 0.4rem;
}

.afidocs-share-wrap .copy-url-wrap input {
  flex: 1;
  border: none;
  font-size: 0.95rem;
  background: transparent;
}

.afidocs-share-wrap .copy-url-wrap input:focus {
  outline: none;
}

.afidocs-share-wrap .share-this-doc {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--afi-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.afidocs-share-wrap .share-this-doc img {
  filter: brightness(0) invert(1);
}

/* Widgets / Misc ---------------------------------------------- */

.ezd-widgets .widget {
  background: transparent;
  border: 1px solid var(--afi-border);
  border-radius: 0;
  padding: 1.25rem;
  box-shadow: none;
}

.ezd-widgets .widget + .widget {
  margin-top: 1rem;
}

.ezd-widgets .widget h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.ezd-widgets a {
  color: var(--afi-brand);
  text-decoration: none;
}

.ezd-widgets a:hover {
  color: var(--afi-brand-dark);
}

/* Pagination --------------------------------------------------- */

.doc-pagination,
.pagination_wrapper,
.afidocs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.doc-pagination a,
.pagination_wrapper a,
.afidocs-pagination a,
.doc-pagination span,
.pagination_wrapper span,
.afidocs-pagination span {
  min-width: 42px;
  height: 42px;
  border-radius: 0;
  border: 1px solid var(--afi-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--afi-text-muted);
  font-weight: 600;
}

.doc-pagination .current,
.pagination_wrapper .current,
.afidocs-pagination .current {
  background: var(--afi-brand);
  border-color: var(--afi-brand);
  color: #fff;
}

/* Alerts / Notices -------------------------------------------- */

.ezd-alert {
  border-radius: 0;
  padding: 1.25rem;
  margin: 1.25rem 0;
  border: 1px solid var(--afi-border);
}

.ezd-alert-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--afi-success);
}

.ezd-alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--afi-warning);
}

.ezd-alert-danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--afi-danger);
}

/* Responsive --------------------------------------------------- */

@media (max-width: 991px) {
  .doc_border_box,
  .documentation_item,
  .categories_guide_item {
    padding: 1.25rem;
  }

  .doc_tab_pane .nav-tabs {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .documentation_item {
    flex-direction: column;
  }

  .doc_tab_pane .nav-tabs {
    justify-content: center;
  }

  .doc_border_btn,
  .doc_border_box,
  .doc_item {
    border-radius: 0;
  }
}
