@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxDcwg.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxDcwg.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-main: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: #0a0a0a;
    --border-main: #222222;
    --border-highlight: #333333;
    --accent-primary: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background: #000000;
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    display: flex;
    position: relative;
}

.sidebar {
    width: 70px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-main);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0.75rem;
    position: relative;
    z-index: 50;
    overflow-y: hidden;
    overflow-x: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 100vh;
    height: 100vh;
}

.sidebar:hover {
    overflow-y: auto;
}

.sidebar:hover {
    width: var(--sidebar-width);
}

.sidebar:hover .nav-item span {
    opacity: 1;
    transform: translateX(0);
}

.sidebar:hover .logo-text {
    opacity: 1;
}

.nav-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
}

.logo-box {
    width: 32px;
    height: 32px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.main-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    width: 100%;
    white-space: nowrap;
    position: relative;
}

.nav-item span {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar:hover .nav-item span {
    opacity: 1;
    transform: translateX(0);
}

.nav-divider {
    height: 1px;
    background: var(--border-main);
    margin: 0.75rem 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .nav-divider {
    opacity: 1;
}

.nav-item:hover:not(.disabled) {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-item.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-main);
}

.nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-item i {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    font-size: 1rem;
    text-align: center;
}

.nav-item.active i {
    opacity: 1;
}

.sidebar-footer {
    border-top: 1px solid var(--border-main);
    padding-top: 1.5rem;
    margin-top: auto;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    margin-left: 0;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover~.main-wrapper {
    margin-left: 0;
}

.view {
    display: none;
    padding: 2rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.view.active {
    display: block;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-content {
    display: none;
    padding: 2rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-main);
}

.content-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.content-header h2 i {
    color: var(--text-primary);
    opacity: 0.9;
}

.content-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.lookup-form {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-main);
    margin-bottom: 2rem;
    display: grid;
    gap: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--border-highlight);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    user-select: none;
}

.custom-select:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card);
}

.custom-select.active {
    border-color: var(--border-highlight);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: var(--bg-card);
}

.custom-select-value {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-select-value i {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.custom-select-arrow {
    color: var(--text-secondary);
    transition: transform 0.2s ease;
    font-size: 0.75rem;
}

.custom-select.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-main);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin-top: -1px;
}

.custom-select-dropdown.active {
    max-height: 300px;
    overflow-y: auto;
}

.custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-highlight);
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.custom-select-option {
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-main);
    position: relative;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    padding-left: 1.25rem;
}

.custom-select-option.selected {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
}

.custom-select-option.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--text-primary);
}

.custom-select-option i {
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

.custom-select-option.selected i,
.custom-select-option:hover i {
    opacity: 1;
}

.form-group select {
    display: none;
}

.endpoint-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.endpoint-selector input[type="radio"] {
    display: none;
}

.endpoint-option {
    flex: 1;
    min-width: 140px;
    padding: 0.875rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
    pointer-events: auto;
}

.endpoint-option:hover {
    background: var(--bg-card);
    border-color: var(--border-highlight);
    color: var(--text-primary);
}

.endpoint-option i {
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.endpoint-selector input[type="radio"]:checked+.endpoint-option {
    background: var(--bg-card);
    border-color: var(--text-primary);
    color: var(--text-primary);
    border-width: 2px;
}

.search-type-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.endpoint-selector input[type="radio"]:checked+.endpoint-option i {
    opacity: 1;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.btn-submit {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-main);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: var(--bg-card);
    border-color: var(--border-highlight);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.results {
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-main);
    min-height: 200px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);

    padding: 0;

    box-sizing: border-box;

    position: relative;

    overflow: -moz-scrollbars-vertical;
}

.results::-webkit-scrollbar {
    width: 10px;

}

.results::-webkit-scrollbar-track {
    background: var(--bg-secondary);

    border-radius: 0 7px 7px 0;

    margin: 0;
    border: none;
}

.results::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
    border: none;
    margin: 0;
    min-height: 20px;
}

.results::-webkit-scrollbar-thumb:hover {
    background: var(--border-highlight);
}

.results {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--bg-secondary);
}

.results .result-content {
    padding: 2rem;
    padding-right: calc(2rem + 10px);
}

.results.show {
    display: block;
}

.results.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.results.loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-main);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result-content {
    color: var(--text-primary);
}

.result-content pre {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid var(--border-main);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text-primary);
}

.result-error {
    background: #1a0a0a;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 2rem;
    padding-right: calc(2rem + 10px);
    border-radius: 8px;
    margin: 2rem;
    margin-right: calc(2rem + 10px);
}

.result-success {
    background: #0a1a0a;
    border: 1px solid #4caf50;
    color: #4caf50;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    padding-right: calc(2rem + 10px);
    border-bottom: 1px solid var(--border-main);
    background: var(--bg-secondary);
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.results-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-main);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-main);
    border-radius: 16px;
    padding: 2rem;
    width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.export-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.export-option {
    padding: 1rem;
    border: 1px solid var(--border-main);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.export-option:hover,
.export-option.selected {
    background: var(--bg-tertiary);
    border-color: var(--border-highlight);
}

.export-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.export-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-primary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-main);
}

.modal-btn-primary:hover {
    background: var(--bg-card);
    border-color: var(--border-highlight);
}

.modal-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-main);
}

.modal-btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification {
    background: var(--bg-secondary);
    border: 1px solid var(--border-main);
    border-left: 4px solid var(--text-primary);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    min-width: 320px;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1), fadeOut 0.3s ease 2.7s forwards;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    z-index: 10000;
}

.notification.success {
    border-left-color: #4caf50;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.warning {
    border-left-color: #ff9800;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    color: #4caf50;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.warning .notification-icon {
    color: #ff9800;
}

.notification.info .notification-icon {
    color: var(--text-primary);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

#npd-form {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.mix-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mix-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-main);
    padding-bottom: 1rem;
    overflow-x: auto;
}

.mix-tab {
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mix-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

.mix-tab.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

.mix-content {
    position: relative;
    min-height: 400px;
}

.mix-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.mix-panel.active {
    display: block;
}

.api-docs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.api-docs-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-main);
    padding-bottom: 1rem;
}

.api-docs-tab {
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
}

.api-docs-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

.api-docs-tab.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

.endpoint-section {
    margin-bottom: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 2rem;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.endpoint-section.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
}

.endpoint-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-main);
    padding-bottom: 0.5rem;
}

.endpoint-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.endpoint-item.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-5px);
}

.endpoint-method {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 1rem;
}

.method-get {
    background: #4caf50;
    color: #fff;
}

.method-post {
    background: #2196f3;
    color: #fff;
}

.endpoint-url {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    font-size: 1rem;
    word-break: break-all;
}

.endpoint-description {
    margin-top: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.endpoint-params {
    margin-top: 1rem;
}

.endpoint-params h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.param-item {
    margin-left: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.param-name {
    color: var(--text-primary);
    font-weight: 600;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-main);
    border-radius: 0;
}

*::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
    border: 2px solid var(--bg-main);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--border-highlight);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--bg-main);
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-main);
    }

    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem 0;
    }

    .nav-item {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .tab-content {
        padding: 1rem;
    }

    .lookup-form {
        padding: 1.5rem;
    }
}

/* Custom Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    user-select: none;
    transition: color 0.2s ease;
}

.checkbox-label:hover {
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--text-secondary);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label input[type="checkbox"]:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 7px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-label input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--text-primary);
}

/* Authentication Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.auth-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.auth-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-main);
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form .form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-form .form-group input[type="email"],
.auth-form .form-group input[type="password"],
.auth-form .form-group input[type="number"] {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--text-primary);
    background: var(--bg-card);
}

.auth-form .form-group input::placeholder {
    color: var(--text-secondary);
}

.auth-submit {
    margin-top: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.auth-switch {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.auth-switch a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.auth-switch a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Results Container Styling */
.results {
    margin-top: 2rem;
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    min-height: 100px;
    animation: fadeIn 0.3s ease;
}

.results.show {
    display: flex;
}

.results.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.results.loading::after {
    content: "Searching...";
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-main);
    margin-bottom: 1rem;
}

.results-content {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.result-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s, border-color 0.2s;
}

.result-card:hover {
    transform: translateY(-2px);
    border-color: var(--text-primary);
}

.result-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.field-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.field-value {
    font-size: 1rem;
    color: var(--text-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}