/*=========================================================
    COBB SERVICE SWAGGER
==========================================================*/

/* Set font */
@font-face {
    font-family: 'Quicksand';
    src: url('./Quicksand-Regular.woff') format('woff');
    font-weight: 400;
    font-style: none;
}
* {
	font-family: 'Quicksand', sans-serif !important;
}

/* UI for example codes */
.highlight-code * {
    font-family: monospace !important;
    background: #2e3138 !important;
    color: white !important;
}
.highlight-code::before {
    content: "🔒";
    position: absolute;
    top: 6px;
    right: 25px;
    font-size: 30px;
    opacity: 0.8;
}

/* UI for input code */
div.body-param {
    position: relative;
}
div.body-param textarea.body-param__text {
    font-family: monospace !important;
    background: #3a3d45 !important;
    color: lightgreen !important;
}
div.body-param::after {
    content: "✏️";
    position: absolute;
    top: 6px;
    right: 25px;
    font-size: 30px;
    opacity: 0.8;
    pointer-events: none;
}

/* Cobb product image */
.information-container .title::after {
  content: "";
  display: block;
  width: 200px;
  height: 176px;
  background-image: url('./favicon.png');
  background-size: contain;
  background-repeat: no-repeat;
  margin: 0 auto;
}

/* Hide selectbar for different versions */
/* .swagger-ui .topbar .download-url-wrapper {
    display: none;
} */

/* Set position on select bar for different versions */
.swagger-ui .topbar .download-url-wrapper select {
    position: fixed;
    right: 10px;
    top: 50px;
    width: 115px !important;
    padding: 5px;
    z-index: 1000;
}
.swagger-ui .topbar .download-url-wrapper span {
    display: none;
}

/* Hide version tag */
.version-stamp {
    display: none !important;
}

/* Hide default header logo */
.topbar .wrapper .topbar-wrapper svg {
    display: none !important;
}

/* Custom header */
.topbar .wrapper {
    background-image: url('/caporum-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 50px;
}
.topbar {
    background-color: #2e3138 !important;
}

/* Intro container */
.swagger-ui .info {
    margin: 0 !important;
    padding: 40px;
    background-color: #2e3138;
}
.swagger-ui .info h2 {
    color: #99bedc !important;
    text-align: center;
}
.swagger-ui .info p {
    color: #ffffff;
    max-width: 1460px;
    text-align: left;
}
.swagger-ui .info .info__tos {
    text-align: center;
}
.swagger-ui .wrapper:nth-child(1) {
    padding: 0;
    max-width: none !important;
}

/* Hide Media Typ select box in all endpoints */
.response-control-media-type {
    display: none;
}

/* Hide Parameters and Request Body in all endpoints */
/* .opblock-section {
    display: none;
} */

/* Main body */
body {
    background-color: #4a4e5a;
    margin: 0;
}

/* Endpoint boxes */
.opblock-get {
    background-color: white !important;
}
.opblock-post {
    background-color: white !important;
}

/* Endpoint collection border seperator */
.swagger-ui .opblock-tag {
    border-bottom: 1px solid black !important;
}

/* Endpoint title */
.opblock-tag {
    color: #99bedc !important;
}

/* Endpoint description */
.opblock-tag small {
    color: white !important;
}

/* Schema main box */
.models {
    background-color: #2e3138 !important;
}

/* Schema border */
.swagger-ui section.models {
    border: 1px solid #99bedc;
}

/* Schema title */
.swagger-ui section.models h4 span {
    color: #99bedc !important;
}

/* Schema boxes */
.model-container {
    background-color: white !important;
}

/* Toggles */
svg {
    filter: invert(100%) grayscale(100%) contrast(100%) brightness(0%);
}

/* Description tags */
.renderedMarkdown code:not(.cobb-deprecated-highlight):not(.cobb-introduces-in-highlight) {
    background: #61affe !important;
    color: black !important;
    font-size: 12px !important;
    line-height: 2.5;
}

/* Cobb cobb version fields */
.cobb-deprecated-highlight {
  background: red !important;
  color: white !important;
  font-weight: bold !important;
  font-size: 12px !important;
  line-height: 2.5;
}
.cobb-introduces-in-highlight {
  background: green !important;
  color: white !important;
  font-weight: bold !important;
  font-size: 12px !important;
  line-height: 2.5;
}

/* Styling for Deprecated and Introduced sections with tables and toggle buttons */
.cobb-highlight-list {
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 12px;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.deprecated-list-wrapper {
    background-color: #fff0f0;
    border: 1px solid #ff4d4d;
    color: #cc0000;
}
.introduced-list-wrapper {
    background-color: #f0fff0;
    border: 1px solid #33cc33;
    color: #009900;
}
.cobb-highlight-list h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: bold;
}
.cobb-highlight-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}
.cobb-highlight-list table th {
    border-bottom: 2px solid currentColor;
    text-align: left;
    padding: 6px 8px;
    background-color: rgba(255,255,255,0.2);
}
.cobb-highlight-list table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.cobb-highlight-list table tbody tr:hover {
    background-color: rgba(0,0,0,0.05);
}
.cobb-highlight-list table td strong,
.cobb-highlight-list table td em {
    color: inherit;
}
.deprecated-toggle-btn {
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95em;
    margin-bottom: 10px;
    transition: background 0.3s, transform 0.2s;
    color: white;
}
.btn-deprecated {
    background: linear-gradient(to bottom, #ff6666, #cc0000);
}
.btn-deprecated:hover {
    background: linear-gradient(to bottom, #ff8080, #e60000);
    transform: translateY(-1px);
}
.btn-deprecated:active {
    transform: translateY(1px);
}
.btn-introduced {
    background: linear-gradient(to bottom, #66ccff, #0099cc);
}
.btn-introduced:hover {
    background: linear-gradient(to bottom, #80d4ff, #00b3e6);
    transform: translateY(-1px);
}
.btn-introduced:active {
    transform: translateY(1px);
}