html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

body {
    padding: 0;
    margin: 0;
    color: #0f1419;
    background: #ffffff;
    padding-bottom: 60px;
}

.cursor-pointer {
    cursor: pointer;
    user-select: none;
}

header, footer {
    text-align: center;
    color: white;
}

header a, header a.router-link-exact-active,
footer a, footer a.router-link-exact-active {
    color: #1d9bf0;
    transition: color 0.2s;
}

header a:hover, footer a:hover {
    color: #0c7abf;
}

header {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

footer {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    padding: 1rem;
    font-size: 0.875rem;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.m-r-xs { margin-right: 0.5em; }
.m-l-xs { margin-left: 0.5em; }
.m-t-xs { margin-top: 0.5em; }
.m-b-xs { margin-bottom: 0.5em; }
.m-x-xs { margin-left: 0.5em; margin-right: 0.5em; }
.m-y-xs { margin-top: 0.5em; margin-bottom: 0.5em; }
.m-t-sm { margin-top: 1em; }
.m-b-sm { margin-bottom: 1em; }
.m-x-sm { margin-left: 1em; margin-right: 1em; }
.m-y-sm { margin-top: 1em; margin-bottom: 1em; }
.m-t-md { margin-top: 2em; }
.m-b-md { margin-bottom: 2em; }
.m-x-md { margin-left: 2em; margin-right: 2em; }
.m-y-md { margin-top: 2em; margin-bottom: 2em; }
.m-t-lg { margin-top: 3em; }
.m-b-lg { margin-bottom: 3em; }
.m-x-lg { margin-left: 3em; margin-right: 3em; }
.m-y-lg { margin-top: 3em; margin-bottom: 3em; }
.m-t-xl { margin-top: 4em; }

footer .footer-links {
    margin-top: 0.5em;
}

footer .footer-links a {
    margin: 0 0.75em;
}

a, a.router-link-exact-active {
    color: #1d9bf0;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0c7abf;
}

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

nav ul li {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    border-radius: 9999px;
}

nav ul li.active {
    background: rgba(29, 155, 240, 0.1);
    border-bottom: none;
}

nav ul li:hover {
    background: rgba(29, 155, 240, 0.1);
}

button, .button {
    background-color: #1d9bf0;
    border: none;
    border-radius: 9999px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    box-shadow: none;
    cursor: pointer;
    user-select: none;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

button i, .button i {
    margin-right: 0.5em;
}

button:hover, .button:hover {
    background-color: #1a8cd8;
}

button:active, .button:active {
    background-color: #0d7bc2;
}

.button.outlined {
    background-color: transparent;
    border: 1px solid #536471;
    color: #ffffff !important;
}

.button.outlined:hover {
    background-color: rgba(15, 20, 25, 0.05);
}

.button.flat {
    background-color: transparent;
    border: none;
    color: #0f1419;
    box-shadow: none;
}

.button.flat:hover {
    background-color: rgba(15, 20, 25, 0.05);
}

.button.flat.negative { color: #f4212e; }
.button.flat.positive { color: #00ba7c; }
.button.flat.info { color: #1d9bf0; }
.button.flat.warning { color: #ffad1f; }

.button.outlined.negative { border-color: #f4212e; color: #f4212e; }
.button.outlined.positive { border-color: #00ba7c; color: #00ba7c; }
.button.outlined.info { border-color: #1d9bf0; color: #1d9bf0; }
.button.outlined.warning { border-color: #ffad1f; color: #ffad1f; }

.button.negative { background-color: #f4212e; }
.button.positive { background-color: #00ba7c; }
.button.info { background-color: #1d9bf0; }
.button.warning { background-color: #ffad1f; }

code {
    font-family: "SF Mono", "Consolas", "Monaco", monospace;
    color: #536471;
    background: rgba(29, 155, 240, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 6px;
    font-size: 0.9em;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

main section#home > .content {
    text-align: center;
}

main section#home h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 0;
    color: #0f1419;
}

main section#home h3 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #536471;
}

pre.broker-options {
    display: inline-block;
    text-align: left;
    font-size: 0.9em;
}

.boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.boxes .box {
    width: 200px;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #eff3f4;
    border-radius: 16px;
    transition: all 0.2s;
}

.boxes .box:hover {
    border-color: #cfd9de;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.boxes .box .caption {
    font-weight: 400;
    font-size: 0.875rem;
    color: #536471;
    margin-bottom: 0.5em;
}

.boxes .box .value {
    font-weight: 700;
    font-size: 1.5rem;
    color: #0f1419;
}

main input {
    border: 1px solid #cfd9de;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s;
}

main input:focus {
    outline: none;
    border-color: #1d9bf0;
    box-shadow: 0 0 0 4px rgba(29, 155, 240, 0.1);
}

main fieldset {
    border: 1px solid #eff3f4;
    border-radius: 16px;
    box-shadow: none;
    background-color: #ffffff;
    margin-bottom: 1.5rem;
}

main fieldset legend {
    background-color: #f7f9f9;
    border: 1px solid #eff3f4;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    color: #0f1419;
}

main fieldset .content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.action-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-bottom: 0.5rem;
    border: 1px solid #eff3f4;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.2s;
}

.action-card:hover {
    border-color: #cfd9de;
}

.action-card-header {
    padding: 1rem;
    border-bottom: 1px solid #eff3f4;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.action-card-header:hover {
    background-color: #f7f9f9;
    cursor: pointer;
}

.action-card-section {
    display: none;
}

.action-card-section.expand {
    display: block;
}

.flex-spacer {
    flex-grow: 1;
}

.action-card-section-parameters-header {
    background-color: #f7f9f9;
    padding: 1rem;
    display: flex;
    align-items: center;
    flex: 1;
    font-weight: 600;
}

.action-card-section-parameters-body {
    padding: 1rem;
}

.action-card-section-response {
    background-color: #f7f9f9;
}

.action-card-section-response-header {
    background-color: #f7f9f9;
    padding: 1rem;
    display: flex;
    align-items: center;
    flex: 1;
    font-weight: 600;
}

.action-card-section-response-body {
    padding: 1rem;
}

main fieldset .parameters .field {
    margin-bottom: 0.75rem;
}

main fieldset .parameters .field label {
    min-width: 120px;
    display: inline-block;
    text-align: right;
    margin-right: 0.75rem;
    font-weight: 600;
    color: #0f1419;
}

main fieldset .response {
    margin-top: 1rem;
}

main fieldset .response pre {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    background: #f7f9f9;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

pre.json .string { color: #00ba7c; }
pre.json .number { color: #1d9bf0; }
pre.json .boolean { color: #794bc4; }
pre.json .null { color: #f4212e; }
pre.json .key { color: #0f1419; font-weight: 600; }

main h4 {
    font-weight: 700;
    margin: 1rem 0;
    color: #0f1419;
}

.badge {
    display: inline-block;
    background-color: #536471;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge.lg {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.badge.lg.fixed {
    width: 80px;
}

.badge.green { background-color: #00ba7c; }
.badge.red { background-color: #f4212e; }
.badge.orange { background-color: #ffad1f; color: #0f1419; }
.badge.light { background-color: #cfd9de; color: #0f1419; }

table {
    width: 100%;
    border: 1px solid #eff3f4;
    border-radius: 16px;
    background-color: #ffffff;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

table th {
    padding: 1rem;
    background-color: #f7f9f9;
    font-weight: 700;
    color: #0f1419;
    text-align: left;
}

table tr.offline td {
    font-style: italic;
    color: #8b98a5;
}

table tr:not(:last-child) td {
    border-bottom: 1px solid #eff3f4;
}

table td {
    text-align: center;
    position: relative;
    padding: 1rem;
    color: #0f1419;
}

table th:nth-child(1), table td:nth-child(1) {
    text-align: left;
}

table tr.service td:nth-child(1) {
    font-weight: 700;
}

table tr.action td:nth-child(1) {
    padding-left: 2.5rem;
}

table tr td:nth-child(2) {
    font-family: "SF Mono", monospace;
    font-size: 0.875rem;
}

.bar {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    height: 100%;
    background-color: rgba(29, 155, 240, 0.1);
}

input[type=text], input[type=password], input[type=number], 
input[type=email], input[type=url], input[type=tel], 
input[type=date], input[type=month], input[type=week], 
input[type=time], input[type=datetime], input[type=datetime-local], 
input[type=color], textarea, select {
    background-color: #ffffff;
    border: 1px solid #cfd9de;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 15px;
    transition: all 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #1d9bf0;
    box-shadow: 0 0 0 4px rgba(29, 155, 240, 0.1);
}

input[type=checkbox], input[type=radio] {
    margin-right: 0.5rem;
    height: 1.25rem;
    width: 1.25rem;
    accent-color: #1d9bf0;
}

input[required]:invalid {
    background-color: #fff5f5;
    border: 1px solid #f4212e;
}

.bg-primary { background-color: #1d9bf0; }
.bg-secondary { background-color: #536471; }
.bg-method-post { background-color: #00ba7c; }
.bg-method-get { background-color: #1d9bf0; }
.bg-method-put { background-color: #ffad1f; }
.bg-method-patch { background-color: #ff8c00; }
.bg-method-delete { background-color: #f4212e; }
.bg-method-options { background-color: #794bc4; }

.action-method-post {
    background-color: rgba(0, 186, 124, 0.1);
    border: 1px solid #00ba7c;
}

.action-method-get {
    background-color: rgba(29, 155, 240, 0.1);
    border: 1px solid #1d9bf0;
}

.action-method-put {
    background-color: rgba(255, 173, 31, 0.1);
    border: 1px solid #ffad1f;
}

.action-method-patch {
    background-color: rgba(255, 140, 0, 0.1);
    border: 1px solid #ff8c00;
}

.action-method-delete {
    background-color: rgba(244, 33, 46, 0.1);
    border: 1px solid #f4212e;
}

.action-method-options {
    background-color: rgba(121, 75, 196, 0.1);
    border: 1px solid #794bc4;
}

.text-title { font-size: 1.25rem; font-weight: 700; }
.text-subtitle1 { font-size: 1.125rem; font-weight: 600; }
.text-subtitle2 { font-size: 1rem; font-weight: 600; }
.text-h1 { font-size: 2rem; font-weight: 800; }
.text-h2 { font-size: 1.5rem; font-weight: 700; }
.text-h3 { font-size: 1.25rem; font-weight: 700; }
.text-h4 { font-size: 1.125rem; font-weight: 600; }
.text-h5 { font-size: 1rem; font-weight: 600; }
.text-h6 { font-size: 0.875rem; font-weight: 600; }
.text-caption { font-size: 0.875rem; font-weight: 400; color: #536471; }
.text-code { font-size: 0.875rem; font-family: monospace; }
.text-bold { font-weight: 700; }
.text-p { font-size: 1rem; font-weight: 400; }
.text-small { font-size: 0.875rem; font-weight: 400; }
.text-muted { font-size: 0.875rem; color: #536471; }
.text-primary { color: #1d9bf0; }
.text-secondary { color: #536471; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-justify { text-align: justify; }
.text-nowrap { white-space: nowrap; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-break { word-break: break-all; }
.text-lowercase { text-transform: lowercase; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }
.text-wrap { word-wrap: break-word; }

.full-width { width: 100%; }
.flex, .row, .column { display: flex; }
.column { flex-direction: column; }
.row { flex-direction: row; }

.self-start { align-self: flex-start; }
.self-center { align-self: center; }
.self-end { align-self: flex-end; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }

.flex-grow { flex-grow: 1; }
.flex-wrap { flex-wrap: wrap; }
.nowrap { flex-wrap: nowrap; }

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(91, 112, 131, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
}

.modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.modal .modal-header {
    border-bottom: 1px solid #eff3f4;
    padding: 1.25rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.modal .modal-content {
    padding: 1.5rem;
}

.modal .modal-actions {
    border-top: 1px solid #eff3f4;
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    gap: 0.75rem;
}

.form-group > * {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

input[type=text].input-size-md {
    height: 2.5rem;
    font-size: 1.125rem;
}

.field > label {
    width: 120px;
    font-weight: 600;
}

.logo {
    height: 120px;
}
