/* HEADER */
.header {
  display: flex;
  align-items: center;
  background: white;
  padding-top: 5px;
  padding-bottom: 8px;
  padding-left: 20px;
  color: #5A77A8;
  position: sticky;
  top: 0;
  z-index: 2000;
  overflow: visible !important;
  box-shadow: 0 4px 8px rgba(194, 211, 246, 0.75);
}

/* MENU */
.menu {
  display: flex;
  gap: 30px;
  margin-left: 20%;
}

/* LOGO RIGHT */
.logo-container {
  margin-left: 0;
  display: flex;
  align-items: center;
}

.logo {
  height: 28px;
  width: 93px;
  padding-right: 10px;
  padding-bottom: 5px;
  padding-top: 5px;
}

/* MENU SECTION */
.menu-section {
  position: relative;
  padding: 2px 0;
  cursor: pointer;
  color: #5A77A8;
  font-weight: 500;
  z-index: 4000;
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  
}

.menu-section a{
  position: relative;
  padding: 2px 0;
  cursor: pointer;
  color: #5A77A8;
  font-weight: 500;
  z-index: 4000;
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
}

/* DROPDOWN */
.menu-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  border-radius: 10px;
  min-width: 300px;
  max-width: 380px; 
  max-height: 450px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 5000;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* DROPDOWN */
.menu-section:hover > .menu-list {
  display: block;
}
.menu-section:hover {
  color: #66b2ff;
}

.menu-section a:hover {
  color: #66b2ff;
}

/* DROPDOWN ITEMS */
.menu-item a {
  color: #333;
  padding: 8px 16px;
  display: block;
  text-decoration: none ;
}

.menu-item a:hover {
  background: #f0f4ff;
}

/* 
/* Scroll for submenu-level dropdowns */
.submenu-list {
  overflow-y: auto;
  overflow-x: hidden;
  background: white;
  border-radius: 10px;
  min-width: 300px;
  max-width: 380px;
  max-height: 450px;
  padding: 8px 0;
}

/* General link styles */
a {
  color: #0056d6;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #007bff;
  text-decoration: none;
}

/* Markdown page content */
.markdown-body {
  padding: 40px;
  max-width: 900px;
  margin: auto;
  line-height: 1.6;
  color: #222;
  font-family: "Manrope";
}

body {
  overflow: visible !important;
}

/* SUBMENU TITLE */
.submenu-title {
  color: black;
  padding: 8px 8px;
  display: inline-block;
  cursor: pointer;
  font-weight: 500;
  user-select: none;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
  text-decoration-thickness: 20px;
  margin: 6px 6px;
}
.submenu-title:hover {
  text-decoration: none;
}
.submenu-title::after {
  font-size: 12px;
  opacity: 0.7;
}

.menu-item.has-submenu:hover .submenu-title::after {
  opacity: 1;
  transform: rotate(180deg);
  text-decoration: none;
}
.submenu-item a {
    text-decoration: none ;
}

/* Code Blocks */
.markdown-body pre {
    background: rgb(237, 236, 236);           
    color: black;                
    padding: 16px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Inline code `like this` */
.markdown-body code {
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Markdown table styling */
.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden; /* rounded corners apply */
}

/* Table header */
.markdown-body table th {
    background: rgb(237, 236, 236);
    color: black;
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    border-bottom: 2px solid black;
}

/* Table body cells */
.markdown-body table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e1e4e8;
}

/* Zebra striping */
.markdown-body table tr:nth-child(even) {
    background: rgb(237, 236, 236);
}

/* Remove underline from links but keep hover */
.markdown-body table a {
    text-decoration: none;
}

.markdown-body table a:hover {
    text-decoration: underline;
}

/* Horizontal scroll for huge tables */
.markdown-body table {
    display: block;
    overflow-x: auto;      /* prevents x-scroll in navbar */
}

.user-account-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 220px;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 80px;
    padding-right: 80px;
    background: #ffffff;

    border: 2px solid #cfe0ff;     
    border-radius: 20px;           

    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 5000;
    color: #2b2b2b;

    text-align: center;
    margin-bottom: 14px;
    font-family: Manrope;
}

.user-account-dropdown h3 {
    margin: 10px 0 18px 0;
    font-family: Manrope;
    font-size: 20px;
    font-weight: 10;
    color: gray;
}

.username-text {
    margin: 10px 0 18px 0;
    font-size: 20px;
    font-weight: 10;
}

.account-icon {
  width: 30px;
  height: 30px;
}

.api-not-included-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 40px 0 40px;
  padding: 12px 16px;
  background: #fff8e1;
  border: 1px solid #f5c518;
  border-radius: 8px;
  color: #7a5c00;
  font-family: Manrope;
  font-size: 14px;
  font-weight: 500;
}

.key-prefix-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
  padding: 4px 12px;
  border: 1px solid #cfe0ff;
  border-radius: 20px;
  background: #f0f5ff;
  font-family: Manrope;
  font-size: 13px;
  white-space: nowrap;
}

.key-prefix-label {
  color: #5A77A8;
  font-weight: 500;
}

.key-prefix-value {
  color: #0057FF;
  font-weight: 600;
}

.account-info-container{
  margin-left: auto;
  padding-right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-info{
    display: flex;
    align-items: center;
}

.dropdown-button {
    width: 85%;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #bfc7d9;
    background: #f7f9fc;
    cursor: pointer;
    font-size: 14px;
    background-color: #0057FF;
    color: white;
}

.signout-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;     /* controls BOTH text and icon */
}

.signout-content img {
    width: 1em;
    height: 1em;
}



