/* Kionova API Documentation - Clean & Modern Design v1.1 */

/* Fonts */
@font-face {
  font-family: "Source Code Pro";
  src: url("fonts/SourceCodePro-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/Inter/Inter-Regular.woff") format("woff");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/Inter/Inter-Semibold.woff") format("woff");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/Inter/Inter-Bold.woff") format("woff");
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  position: relative;
  min-height: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  line-height: 1.6;
  color: #1a1a2e;
  font-size: 15px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8f9fa;
}

a {
  color: inherit;
  text-decoration: none;
}

a.link {
  color: #0066cc;
}

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

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

code {
  font-family: "Source Code Pro", "Consolas", monospace !important;
  font-size: 13px;
}

/* Left Sidebar Menu */
.left-menu {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.left-menu .content-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.left-menu .content-logo span.label {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  color: #4cc9f0;
}

.left-menu .content-menu {
  flex: 1;
  overflow: hidden;
}

.left-menu .content-menu ul {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 0 80px 0;
}

.left-menu .content-menu ul li {
  margin: 2px 10px;
}

.left-menu .content-menu ul li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.left-menu .content-menu ul li a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.left-menu .content-menu ul li.active a {
  background: #4cc9f0;
  color: #1a1a2e;
  font-weight: 600;
}

/* Main Content */
.content-page {
  margin-left: 260px;
  min-height: 100vh;
  padding: 40px 50px;
  background: #f8f9fa;
}

.content-page .content {
  max-width: 900px;
  margin: 0 auto;
}

.content-section {
  background: #fff;
  border-radius: 12px;
  padding: 30px 35px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.content__inner {
  padding: 0;
}

/* Headings */
h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #4cc9f0;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 15px 0;
}

h4.table-title {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 25px 0 12px 0;
}

p {
  color: #444;
  margin-bottom: 15px;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}

.table th {
  background: #f1f3f4;
  color: #1a1a2e;
  font-weight: 600;
  text-align: left;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
}

.table td {
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  vertical-align: top;
}

.table tbody tr:hover {
  background: #fafbfc;
}

/* Code Blocks */
.code-holder {
  margin: 15px 0;
}

.code-holder-inner {
  border-radius: 8px;
  overflow: hidden;
}

pre {
  margin: 0;
  padding: 20px;
  background: #1e1e1e;
  border-radius: 8px;
  overflow-x: auto;
}

pre code {
  color: #d4d4d4;
  line-height: 1.5;
}

/* Tabs */
nav.tab-navigation .nav-tabs {
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 0;
}

nav.tab-navigation .nav-tabs .nav-item {
  padding: 12px 24px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  color: #666;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
}

nav.tab-navigation .nav-tabs .nav-item:hover {
  color: #4cc9f0;
}

nav.tab-navigation .nav-tabs .nav-item.active {
  color: #4cc9f0;
  border-bottom-color: #4cc9f0;
  background: none;
}

.tab-content {
  margin-bottom: 30px;
}

.tab-content .tab-pane {
  border: 1px solid #e0e0e0;
  border-top: none;
  padding: 25px;
  background: #fff;
  border-radius: 0 0 8px 8px;
}

/* Utilities */
.overflow-hidden {
  overflow: hidden;
}

.text-red {
  color: #dc3545;
}

.tt-up {
  text-transform: uppercase;
}

.hr {
  display: block;
  width: 100%;
  height: 1px;
  background: #e0e0e0;
  margin: 25px 0;
}

/* Buttons */
button {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

/* Scrollbar */
.left-menu .content-menu ul::-webkit-scrollbar {
  width: 6px;
}

.left-menu .content-menu ul::-webkit-scrollbar-track {
  background: transparent;
}

.left-menu .content-menu ul::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}

.left-menu .content-menu ul::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

/* Responsive - Mobile */
@media (max-width: 900px) {
  .left-menu {
    width: 100%;
    height: auto;
    min-height: auto;
    position: relative;
    flex-direction: column;
    bottom: auto;
  }

  .left-menu .content-logo {
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .left-menu .content-menu {
    width: 100%;
    overflow: visible;
    flex: none;
  }

  .left-menu .content-menu ul {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 15px;
    height: auto;
    overflow: visible;
    justify-content: center;
    gap: 5px;
  }

  .left-menu .content-menu ul li {
    margin: 0;
    flex-shrink: 0;
  }

  .left-menu .content-menu ul li a {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .content-page {
    margin-left: 0;
    padding: 20px 15px;
  }

  .content-section {
    padding: 20px;
    border-radius: 8px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  .table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
  }

  .table th, .table td {
    padding: 8px 10px;
  }

  pre {
    padding: 15px;
    font-size: 12px;
  }

  .tab-content .tab-pane {
    padding: 15px;
  }

  nav.tab-navigation .nav-tabs .nav-item {
    padding: 10px 15px;
    font-size: 11px;
  }
}
