html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Override Bootstrap primary button color globally */
.btn-primary {
  background-color: #1e3a5f;
  border-color: #1e3a5f;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #152a47;
  border-color: #152a47;
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(30, 58, 95, 0.5);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(30, 58, 95, 0.5);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
  text-align: start;
}

/* API Documentation Styles */
.ct-api-docs-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .ct-api-docs-container {
    grid-template-columns: 1fr;
  }
}

.ct-api-docs-section {
  background-color: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.ct-api-docs-section__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ct-api-docs-section__icon {
  width: 20px;
  height: 20px;
  color: #495057;
}

.ct-api-docs-section__title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  margin: 0;
}

.ct-api-docs-auth__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #495057;
  font-size: 0.875rem;
}

.ct-api-docs-auth__input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.ct-api-docs-auth__input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.875rem;
}

.ct-api-docs-auth__toggle,
.ct-api-docs-auth__copy {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #6c757d;
}

.ct-api-docs-auth__copy {
  right: 2.5rem;
}

.ct-api-docs-auth__icon {
  width: 18px;
  height: 18px;
}

.ct-api-docs-auth__help {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

.ct-api-docs-auth__example {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-top: 1rem;
}

.ct-api-docs-auth__example-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: #495057;
}

.ct-api-docs-auth__example-code {
  font-size: 0.875rem;
  color: #495057;
  font-family: monospace;
  display: block;
  word-break: break-all;
}

.ct-api-docs-base-urls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ct-api-docs-base-url {
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background-color: white;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.ct-api-docs-base-url:hover {
  border-color: #1e3a5f;
  background-color: #f8f9fa;
}

.ct-api-docs-base-url--active {
  border-color: #1e3a5f;
  background-color: rgba(30, 58, 95, 0.05);
}

.ct-api-docs-base-url__label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: #495057;
  font-size: 0.875rem;
}

.ct-api-docs-base-url__value {
  font-size: 0.875rem;
  color: #495057;
  font-family: monospace;
  display: block;
  word-break: break-all;
}

.ct-api-docs-main {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
}

.ct-api-docs-content__title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 0.5rem;
}

.ct-api-docs-content__subtitle {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

.ct-api-docs-rate-limiting {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.ct-api-docs-rate-limiting__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 0.75rem;
}

.ct-api-docs-rate-limiting__description {
  font-size: 0.9375rem;
  color: #495057;
  margin-bottom: 1.5rem;
}

.ct-api-docs-rate-limiting__tiers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ct-api-docs-rate-limiting__tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.ct-api-docs-rate-limiting__tier-name {
  color: #495057;
  font-size: 0.9375rem;
}

.ct-api-docs-rate-limiting__tier-limit {
  color: #1e3a5f;
  font-weight: 600;
  font-size: 0.9375rem;
}

.ct-api-docs-endpoint {
  margin-bottom: 2rem;
}

.ct-api-docs-endpoint__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 1rem;
}

.ct-api-docs-method {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.ct-api-docs-method__header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ct-api-docs-method__verb {
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ct-api-docs-method__verb--get {
  background-color: rgba(23, 178, 106, 0.1);
  color: #17b26a;
}

.ct-api-docs-method__path {
  color: #495057;
  font-family: monospace;
  font-size: 0.9375rem;
}

.ct-api-docs-method__description {
  color: #495057;
  margin: 0;
  flex: 1;
  font-size: 0.9375rem;
}

.ct-api-docs-method__try-btn {
  margin-left: auto;
}

.ct-api-docs-tabs {
  display: flex;
  border-top: 1px solid #e9ecef;
  background-color: #f8f9fa;
}

.ct-api-docs-tab {
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  color: #495057;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 0.875rem;
}

.ct-api-docs-tab:hover {
  background-color: rgba(255, 255, 255, 0.5);
  color: #1e3a5f;
}

.ct-api-docs-tab--active {
  color: #1e3a5f;
  border-bottom-color: #1e3a5f;
  background-color: white;
}

.ct-api-docs-tab-content {
  padding: 1.5rem;
}

.ct-api-docs-params {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ct-api-docs-param__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.ct-api-docs-param__name {
  color: #495057;
  font-family: monospace;
  font-weight: 600;
  font-size: 0.875rem;
}

.ct-api-docs-param__type {
  font-size: 0.75rem;
  color: #6c757d;
  padding: 0.125rem 0.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.ct-api-docs-param__description {
  font-size: 0.875rem;
  color: #495057;
  margin-bottom: 0.75rem;
}

.ct-api-docs-param__input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #495057;
}

.ct-api-docs-param__input:focus {
  outline: none;
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.ct-api-docs-response__code {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 0;
}

.ct-api-docs-response__code code {
  color: #495057;
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.875rem;
}

/* Swagger Documentation Section */
.ct-api-docs-swagger {
  margin-bottom: 2rem;
}

.ct-api-docs-swagger__header {
  margin-bottom: 1.5rem;
}

.ct-api-docs-swagger__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 0.5rem;
}

.ct-api-docs-swagger__description {
  font-size: 0.9375rem;
  color: #6c757d;
  margin: 0;
}

.ct-api-docs-swagger__container {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ct-api-docs-swagger__iframe {
  width: 100%;
  min-height: 800px;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .ct-api-docs-swagger__iframe {
    min-height: 600px;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Quick Start Guide */
.ct-api-docs-quick-start {
  margin-top: 1rem;
}

.ct-api-docs-quick-start__list {
  margin: 0;
  padding-left: 1.5rem;
  color: #495057;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.ct-api-docs-quick-start__list li {
  margin-bottom: 0.5rem;
}

.ct-api-docs-quick-start-right {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.ct-api-docs-quick-start-right__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 1rem;
}

.ct-api-docs-quick-start-right__list {
  margin: 0;
  padding-left: 1.5rem;
  color: #495057;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.ct-api-docs-quick-start-right__list li {
  margin-bottom: 0.5rem;
}

/* No Parameters Message */
.ct-api-docs-no-params {
  color: #6c757d;
  font-size: 0.9375rem;
  margin: 0;
  padding: 1rem 0;
}

/* PUT and DELETE Method Verbs */
.ct-api-docs-method__verb--put {
  background-color: rgba(255, 112, 9, 0.1);
  color: #ff7009;
}

.ct-api-docs-method__verb--delete {
  background-color: rgba(217, 40, 0, 0.1);
  color: #d92800;
}

.ct-api-docs-method__verb--post {
  background-color: rgba(30, 58, 95, 0.1);
  color: #1e3a5f;
}

/* Response Codes Section */
.ct-api-docs-response-codes {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.ct-api-docs-response-codes__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 1.5rem;
}

.ct-api-docs-response-codes__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ct-api-docs-response-code {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.ct-api-docs-response-code__badge {
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  min-width: 60px;
  text-align: center;
}

.ct-api-docs-response-code__badge--success {
  background-color: rgba(23, 178, 106, 0.1);
  color: #17b26a;
}

.ct-api-docs-response-code__badge--warning {
  background-color: rgba(255, 112, 9, 0.1);
  color: #ff7009;
}

.ct-api-docs-response-code__badge--error {
  background-color: rgba(217, 40, 0, 0.1);
  color: #d92800;
}

.ct-api-docs-response-code__status {
  font-weight: 600;
  color: #1e3a5f;
  min-width: 150px;
  font-size: 0.9375rem;
}

.ct-api-docs-response-code__description {
  color: #495057;
  font-size: 0.9375rem;
  flex: 1;
}