/* override table width restrictions to make font size smaller and avoid the scrollbar */

.wide-table {
    font-size: smaller;
}

/* Smooth scroll behavior */
.wy-side-scroll {
    scroll-behavior: smooth;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* justify all the documentation content */

.section,
.rst-content .section,
.wy-nav-content .section,
.document .documentwrapper .bodywrapper .body .section,
.rst-content .body .section,
.rst-content p,
.rst-content div.body p {
     text-align: justify !important;
}

/* Additional justification for specific content elements */
.rst-content .section > p,
.rst-content .section > div > p,
.rst-content .toctree-wrapper p {
     text-align: justify !important;
}

/* CSV / longtable - text wrapping */
.wy-table-responsive table td,
.wy-table-responsive table th {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/*Formatting for "h2" not included in TOC */

.no-toc-sub, .no-toc-sub-2, .no-toc-sub-3 {
    color: #333333;
    margin-top:20px;
    margin-bottom:15px;
    font-weight: 700;
    display: block;
}

.no-toc-sub {
    font-size: 150%; /* this equals the h2 size in the theme.css */
}

.no-toc-sub-2 {
    font-size: 120%;
}

.no-toc-sub-3 {
    font-size: 115%;
}

/*/Styles for the DRAFT version banner/*/

.draft-banner {
    background: linear-gradient(to left, #f6f6fb, #dfe4f6, #e62d3014); /* <- soft red tint at the end */
    border-bottom: 1px solid #c8d0f0;
    padding: 12px 20px;
    text-align: left;
    font-weight: 500;
    font-size: 1rem;
    color: #2f3a69;
    font-family: inherit;
    margin-bottom: 20px;
}

.draft-banner i.fa-bell {
    margin-right: 8px;
    color: #2f3a69;
    font-size: 1.1em;
    vertical-align: middle;
    font-style: normal;
}

.draft-banner a {
    color: #2f3a69;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 6px;
}

.draft-banner .draft-icon {
    height: 1.2em;
    width: 1.2em;
    vertical-align: middle;
    margin-right: 8px;
}


/* Customize the color for the .. note:: directive - Fudo style */
div.admonition.note {
    background-color: #f8fafb;
    border-bottom: 2px solid #e5e8ed;
    border-right: 2px solid #e5e8ed;
    color: #4A5568; /* Softer text color */
    border-radius: 6px 6px 6px 6px;
    margin-top: 20px;
}

/* Customize the title color inside the note - Fudo style */
div.admonition.note .admonition-title {
    color: white;
    background-color: #6B91C7; /* Muted Fudo blue */
    border-right: 2px solid #e5e8ed;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
}

/* Customize the color for the .. warning:: directive - Fudo style */
div.admonition.warning {
    background-color: #f8f6fa;
    border-bottom: 2px solid #e5e5ed;
    border-right: 2px solid #e5e5ed;
    color: #4A5568; /* Softer text color */
    border-radius: 6px 6px 6px 6px;
    margin-top: 20px;
}

/* Customize the title color inside the warning - Fudo style */
div.admonition.warning .admonition-title {
    color: white;
    background-color: #B85450; /* Muted red accent */
    border-right: 2px solid #e5e5ed;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
}

/* Success/Tip admonitions */
div.admonition.tip,
div.admonition.hint,
div.admonition.important {
    background-color: #f8f6fa;
    border-bottom: 2px solid #e5e5ed;
    border-right: 2px solid #e5e5ed;
    color: #4A5568;
    border-radius: 6px;
    margin-top: 20px;
}

div.admonition.tip .admonition-title,
div.admonition.hint .admonition-title,
div.admonition.important .admonition-title {
    color: white;
    background-color: #5A9A5A; /* Muted green accent */
    border-right: 2px solid #e5e5ed;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
}

/* Caution/Attention admonitions */
div.admonition.caution,
div.admonition.attention {
    background-color: #f8f6fa;
    border-bottom: 2px solid #e5e5ed;
    border-right: 2px solid #e5e5ed;
    color: #4A5568;
    border-radius: 6px;
    margin-top: 20px;
}

div.admonition.caution .admonition-title,
div.admonition.attention .admonition-title {
    color: white;
    background-color: #B8860B; /* Muted orange accent */
    border-right: 2px solid #e5e5ed;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
}

/* Danger admonitions (for deprecated warnings) */
div.admonition.danger,
.rst-content .danger {
    background-color: #f8f6fa;
    border-bottom: 2px solid #e5e5ed;
    border-right: 2px solid #e5e5ed;
    color: #4A5568;
    border-radius: 6px;
    margin-top: 20px;
}

div.admonition.danger .admonition-title,
.rst-content .danger .admonition-title {
    color: white;
    background-color: #B85450; /* Muted red accent - same as warning */
    border-right: 2px solid #e5e5ed;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
}


/* Fix for Sphinx 8.2.3 - Restore bullet points in content lists */
.rst-content ul, .rst-content ol {
    margin-left: 12px;
}

/* Additional bold for selected menu sections related to Fudo GUI */
.wy-menu-vertical li.toctree-l1 > a[href*="session_management.html"],
.wy-menu-vertical li.toctree-l1 > a[href*="user_management.html"],
.wy-menu-vertical li.toctree-l1 > a[href*="pv_index.html"],
.wy-menu-vertical li.toctree-l1 > a[href*="administration.html"] {
    font-weight: 700;
    color: #2980b9;
    background-color: rgba(41, 128, 185, 0.05);
    border-left: 3px solid #2980b9;
}

.rst-content ul li {
    list-style: disc outside;
    margin-left: 0;
	margin-top: 8px;
    margin-bottom: 4px;
}

.rst-content ol li {
    list-style: decimal outside;
    margin-left: 0;
	margin-top: 8px;
    margin-bottom: 4px;
}

.rst-content ul ul li {
    list-style: circle outside;
}

.rst-content ul ul ul li {
    list-style: square outside;
}

/* Ensure logo displays properly */
.wy-side-nav-search img.logo {
    display: block !important;
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px auto;
}

table.docutils {
    table-layout: fixed;
    width: 100%;
}

/* Margins around images */
.rst-content img {
    margin-top: 12px;
    margin-bottom: 12px;
}

/* If using .. figure:: */
.rst-content .figure {
    margin-top: 16px;
    margin-bottom: 16px;
}

/* Additional spacing between consecutive images */
.rst-content img + img {
    margin-top: 16px;
}

/*Formatting for code block */

code, pre {
    font-size: 14px;
    background-color: #f7f7f9;
    border: 1px solid #d0d0d5;
    border-radius: 6px;
    padding: 10px 14px;
    overflow-x: auto;
    font-family: Menlo, Consolas, "Courier New", monospace;
    line-height: 1.5;
  }

/* For sphinx_copybutton */
/* Hide default SVG or fallback icon */
.copybtn svg {
    display: none;
  }
  
.copybtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: #f7f7f9;
  border-radius: 4px;
  cursor: pointer;
}

.copybtn::before {
    content: "\f0c5"; /* clipboard */
    font: var(--fa-font-regular);
    font-size: 15px;
    color: #126684;
}

/* ===== FUDO BRAND COLORS ALIGNMENT ===== */

  /* Update sidebar to match Fudo app light theme */
  .wy-nav-side {
      background: #F7F8FC !important;
      border-right: 1px solid #E2E8F0;
  }

  /* Update sidebar text colors */
  .wy-menu-vertical a {
      color: #4A5568 !important;
  }

  .wy-menu-vertical li.current>a,
  .wy-menu-vertical li.on a {
      background: #E6F3FF !important;
      color: #1A73E8 !important;
      border-right: 3px solid #4285F4;
  }

  /* Update search box to match Fudo styling */
  .wy-side-nav-search {
      background: #F7F8FC !important;
      border-bottom: 1px solid #E2E8F0;
  }

  .wy-side-nav-search input[type=text] {
      background: #FFFFFF !important;
      border: 1px solid #E2E8F0 !important;
      border-radius: 6px !important;
      color: #2D3748;
  }

  /* Update primary buttons to match Fudo blue */
  .btn-primary,
  .wy-btn-primary {
      background: #4285F4 !important;
      border-color: #4285F4 !important;
  }

  .btn-primary:hover,
  .wy-btn-primary:hover {
      background: #1A73E8 !important;
      border-color: #1A73E8 !important;
  }

  /* Fudo red accent is now handled by the detailed warning styles above */

  /* Update links to match Fudo blue */
  a {
      color: #1A73E8 !important;
  }

  a:hover {
      color: #1557B0 !important;
  }

  /* Update header navigation */
  .wy-nav-top {
      background: #4285F4 !important;
  }

  /* Update code blocks with softer styling */
  .rst-content pre,
  .rst-content code {
      background: #F7F8FC !important;
      border: 1px solid #E2E8F0 !important;
      color: #2D3748;
  }

  /* Add Fudo-style shadows and spacing */
  .wy-nav-content-wrap {
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  /* Update table styling to match modern Fudo design */
  .wy-table-responsive table th {
      background: #F7F8FC !important;
      color: #2D3748 !important;
      border-bottom: 2px solid #E2E8F0 !important;
  }

  .wy-table-responsive table td {
      border-bottom: 1px solid #E2E8F0 !important;
  }

  /* Modern button styling matching Fudo */
  .btn {
      border-radius: 6px !important;
      font-weight: 500;
      transition: all 0.2s ease;
  }

  /* Update logo area */
  .wy-side-nav-search img.logo {
      padding: 10px 0;
      border-bottom: 1px solid #E2E8F0;
  }

/* ===== QUICKSTART Configuration sections styling ===== */

.admonition.config-section {
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-left: 4px solid #007bff;
	padding: 15px;
	margin: 15px 0;
	border-radius: 4px;
}

.admonition.config-section > .admonition-title {
	background-color: transparent;
	color: #007bff;
	font-weight: 600;
	font-size: 1.1em;
	margin: -15px -15px 10px -15px;
	padding: 10px 15px;
	border-bottom: 1px solid #dee2e6;
}

.admonition.config-section p {
	margin: 0;
	line-height: 1.8;
}

.admonition.config-section code {
	background-color: #f0f4f8;
	padding: 2px 6px;
	border: 1px solid #d1d5db;
	border-radius: 3px;
	color: #282a2ccf;
	font-weight: 500;
}