﻿body {
    font-family: Roboto, "Helvetica Neue", sans-serif;
    background-color: #f5f7fb;
    word-wrap: break-word;
    color: #000;
    padding: 0;
    margin: 0;
}

header {
    display: flex;
    width: 100%;
    position: sticky;
    left: 0;
    top: 0;
    height: 70px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgb(239, 239, 239);
    background-color: #fff;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
}

.head {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    margin-left: 30px;
}

.language-toggle {
    margin-right: 30px;
}

.lang-button {
    padding: 10px 16px;
    background: #0b63ce;
    border: 2px solid #0b63ce;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    min-width: 64px;
    box-shadow: 0 2px 8px rgba(11, 99, 206, 0.2);
}

.lang-button:hover {
    background: #0a57b5;
    border-color: #0a57b5;
    color: #fff;
    box-shadow: 0 3px 10px rgba(11, 99, 206, 0.25);
}

.lang-button:active {
    background: #094d9f;
    border-color: #094d9f;
    box-shadow: none;
}

.lang-text {
    display: inline-block;
}

footer {
    display: flex;
    width: 100%;
    position: sticky;
    left: 0;
    bottom: 0;
    border-top: 1px solid rgb(239, 239, 239);
    background-color: #fff;
    z-index: 1000;
    height: 80px;
    margin: auto;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.container {
    display: flex;
    flex-flow: column wrap;
    width: 96%;
    max-width: 1280px;
    margin: 18px auto 40px;
}

.main {
    display: flex;
    flex-direction: column;
    flex-wrap: inherit;
    align-content: center;
    min-height: 500px;
    gap: 12px;
}

.page-section {
    margin-bottom: 24px;
}

.title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
}

/* Landing page */

.hero-section {
    text-align: center;
    padding: 12px 0 10px;
}

.hero-section h1 {
    font-size: 1.9rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: #0f172a;
}

.hero-description {
    font-size: 1rem;
    color: #475569;
    margin: 0;
}

.section-description {
    text-align: center;
    font-size: 0.95rem;
    color: #475569;
    margin: 0 0 18px;
    line-height: 1.5;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 32px;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

.card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.1s;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    height: 150px;
    justify-content: center;
    gap: 6px;
}

.card:hover {
    border-color: #d0d7e2;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 1.8rem;
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
}

.card-icon[data-icon="book"]::before {
    content: "🚀";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.card-icon[data-icon="schema"]::before {
    content: "🔄";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.card-icon[data-icon="search"]::before {
    content: "🔍";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.card-icon[data-icon="api"]::before {
    content: "📂";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.card-icon[data-icon="news"]::before {
    content: "📢";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0 0 6px;
    color: #1a1a1a;
}

.card p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Auth section */

.auth-section {
    background: #ffffff;
    border: 1px solid #dce7f5;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    margin-bottom: 28px;
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.auth-prompt {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e5e5e5;
}

.auth-prompt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
    color: #fff;
}

.auth-prompt-icon[data-icon="key"]::before {
    content: "🔑";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.auth-prompt-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.auth-prompt-content p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
    color: #555;
}

.auth-description {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.auth-input-group {
    flex: 1;
}

.auth-input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.auth-input-group input {
    width: 100%;
    padding: 12px 16px;
    height: 46px;
    border: 2px solid #d0d0d0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-input-group input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.auth-button {
    padding: 12px 24px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b63ce 0%, #0a57b5 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 10px rgba(11, 99, 206, 0.25);
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(11, 99, 206, 0.28);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button:disabled {
    background: linear-gradient(135deg, #999 0%, #888 100%);
    cursor: not-allowed;
    transform: none;
}

.auth-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 0.875rem;
}

/* Consumer context */

#consumer-context {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    padding: 20px 26px;
    margin-top: 20px;
}

.auth-success-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

.auth-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.auth-success-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-success-text strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.auth-success-text span {
    font-size: 0.8rem;
    opacity: 0.95;
}

.consumer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.consumer-tools-section {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.consumer-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin: 0 0 10px;
}

.consumer-id-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #0f172a;
}

.consumer-id-label {
    font-size: 0.85rem;
    color: #475569;
}

.consumer-id {
    font-size: 0.9rem;
    color: #111827;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.consumer-stats {
    display: flex;
    gap: 12px;
}

.stat {
    text-align: center;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-width: 86px;
}

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f766e;
}

.stat-label {
    font-size: 0.72rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.schema-badges {
    display: flex;
    gap: 8px;
    margin: 16px 0 20px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #c3e6cb;
    border-radius: 16px;
    font-size: 0.8rem;
    color: #155724;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.1);
}

/* Resources */

.resources-section {
    margin-top: 0;
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.resource-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.resource-item[open] {
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.resource-name {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    user-select: none;
    transition: background 0.15s;
    color: #0f172a;
}

.resource-name:hover {
    background: #eef2ff;
}

.field-count {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.resource-fields {
    padding: 12px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.fields-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.field-tag,
.field-tag-nav {
    padding: 6px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.8rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    color: #0f172a;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.field-tag:hover,
.field-tag-nav:hover {
    background: #e0e7ff;
    border-color: #cbd5e1;
    color: #0f172a;
}

.field-tag-nav {
    background: #eef2ff;
    border-color: #cbd5ff;
    color: #312e81;
}

.nav-fields-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 12px 0 6px;
}

.no-resources {
    color: #94a3b8;
    font-size: 0.9rem;
    font-style: italic;
}

/* Consumer contextualized links */

.consumer-swagger-links {
    display: flex;
    gap: 10px;
    margin: 0;
    flex-wrap: wrap;
}

.consumer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #0b63ce;
    border: 1px solid #0b63ce;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 3px 10px rgba(11, 99, 206, 0.24);
}

.consumer-link:hover {
    background: #0a57b5;
    border-color: #0a57b5;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(11, 99, 206, 0.28);
}

.consumer-link:active {
    transform: translateY(0);
}

.consumer-link-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-metadata {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M4.5 4h10a2.5 2.5 0 0 1 2.5 2.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V6H5v12h5.5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-10A2.5 2.5 0 0 1 0 19.5v-13A2.5 2.5 0 0 1 2.5 4h2Z'/%3E%3Cpath fill='%23ffffff' d='M10.5 13h3a.5.5 0 0 1 .5.5V17h4v-3.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V13.5a.5.5 0 0 1 .5-.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-swagger {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%2300a86b'/%3E%3Cpath fill='%23ffffff' d='M8.2 8.5c.3-1 1.2-1.7 2.3-1.7h3c1.1 0 2 .7 2.3 1.7l.6 2.1c.1.5-.2 1.1-.7 1.2l-.9.2-.2-.9.7-.2-.6-2.1c-.1-.5-.6-.9-1.2-.9h-3c-.5 0-1 .4-1.2.9l-.6 2.1.7.2-.2.9-.9-.2c-.5-.1-.8-.7-.7-1.2l.6-2.1Zm.6 5.7c-.3-1 .2-2 1.2-2.3l1.5-.4.2.9-1.5.4c-.5.1-.8.7-.7 1.2l.6 2.1c.1.5.6.9 1.2.9h3c.5 0 1-.4 1.2-.9l.6-2.1c.1-.5-.2-1.1-.7-1.2l-1.5-.4.2-.9 1.5.4c1 .3 1.6 1.3 1.2 2.3l-.6 2.1c-.3 1-1.2 1.7-2.3 1.7h-3c-1.1 0-2-.7-2.3-1.7l-.6-2.1Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-scalar {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1' y='1' width='22' height='22' rx='5' fill='%231246ff'/%3E%3Cpath fill='%23ffffff' d='M7.5 9c0-1.7 1.3-3 3-3H15c1.7 0 3 1.3 3 3v6c0 1.7-1.3 3-3 3h-3.5c-1.7 0-3-1.3-3-3V9Zm2 0v6c0 .6.4 1 1 1H15c.6 0 1-.4 1-1V9c0-.6-.4-1-1-1H10.5c-.6 0-1 .4-1 1Zm2 .8c0-.4.3-.8.7-.8h1.6c.4 0 .7.4.7.8v4.4c0 .4-.3.8-.7.8h-1.6c-.4 0-.7-.4-.7-.8V9.8Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-openapi {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236ba539' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'/%3E%3Cpath fill='%236ba539' d='M11 7h2v6h-2zm0 8h2v2h-2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Divider section */

.divider-section {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 40px 0 32px;
}

.divider-section::before,
.divider-section::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider-section::before {
    margin-right: 20px;
}

.divider-section::after {
    margin-left: 20px;
}

.divider-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

