@import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CDroid+Sans+Mono:400,700";

/* ===== CSS Variables ===== */
:root {
    --primary-dark: #2980b9;
    --primary-color: #3498db;
    --primary-light: #5dade2;

    --secondary-dark: #1a8a5a;
    --secondary-color: #20af70;
    --secondary-light: #4bc485;

    --text-primary: #1e2022;
    --text-secondary: #6c757d;
    --text-muted: #999;

    --background-primary: #ffffff;
    --background-secondary: #f8f8f8;
    --background-light: #f9f9f9;
    --border-color: #e6e6e6;
    --border-light: #dedede;
    --border-dark: #ddd;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.2);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    min-height: 100vh;
    display: flex;
    background: var(--background-primary);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

/* ===== Typography ===== */
h1 {
    font-weight: 300;
    font-style: normal;
    font-size: 40px;
    color: var(--text-primary);
}

h2 {
    font-style: normal;
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: left;
    font-weight: 400;
    font-size: 24px;
}

h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.title {
    font-weight: 300;
    font-size: 20px;
    color: var(--secondary-color);
}

/* ===== Utility Classes ===== */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.gap-1 {
    gap: 0.8rem !important;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center !important;
}

.w-100 {
    width: 100%;
}

.w-20 {
    width: 20%;
}

.w-25 {
    width: 25%;
}

.w-30 {
    width: 28.5%;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* ===== Layout Components ===== */
.section-80 {
    margin: 50px auto;
    width: 80%;
}

.sidebar {
    width: 300px;
    background-color: var(--background-secondary);
    color: var(--text-primary);
    padding: 15px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border-light);
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    font-size: 1.375em;
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
    line-height: 1.2;
    word-spacing: -0.05em;
    font-weight: 300;
    padding-bottom: 5px;
}

.sidebar-settings {
    margin-top: 15px;
}

.main-content {
    margin-left: 300px;
    flex: 1;
    min-height: 100vh;
}

.common-settings {
    background-color: var(--background-primary);
    padding: 15px 15px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 10;
}

.panels-container {
    display: flex;
    gap: 4px;
    overflow: hidden;
    width: 100%;
    padding-left:3px;
    padding-right:4px;
    padding-top: 2px;
}

.request-panel {
    flex: 1;
    background-color: var(--background-primary);
    min-width: 0;
    max-width: 45%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.response-panel {
    flex: 1;
    background-color: var(--background-primary);
    min-width: 0;
    max-width: 55%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel-container {
    position: relative;
    margin-right: 12px;
}

/* ===== Endpoint Navigation ===== */
.endpoint-group {
    margin-bottom: 8px;
}

.endpoint-group.collapsed .endpoint-item {
    display: none;
}

.sidebar-settings .endpoint-group {
    margin-bottom: 0;
}

.endpoint-header {
    cursor: pointer;
    color: var(--secondary-color);
    display: flex;
    justify-content: start;
    align-items: center;
    font-size: 16px;
    font-weight: 300;
}

.endpoint-header::before {
    content: "» ";
    padding-right: 5px;
    margin-top: -2px;
}

.endpoint-header:hover {
    color: var(--secondary-color);
}

.endpoint-item {
    cursor: pointer;
    border-radius: 4px;
    margin-left: 14px;
    transition: background-color 0.3s;
    color: var(--primary-color);
    font-weight: 400;
    line-height: 1.3334;
    font-size: 14px;
    margin-top: 0.25em;
    margin-bottom: 0.1em;
}

.endpoint-item::before {
    content: "•";
    padding-right: 5px;
}

.endpoint-item:hover {
    color: var(--secondary-color);
}

.endpoint-item:focus {
    outline: none;
}

.endpoint-item.active {
    color: var(--secondary-color);
}

/* ===== Form Elements ===== */
.label {
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
    color: var(--text-primary);
}

.request-panel .label,
.response-panel .label {
    font-weight: 600;
    font-size: 14px;
}

.form-control,
.token-input,
.collection-input,
.request-body,
.collection-select,
.response-body {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    min-height: 40px;
    box-sizing: border-box;
    background-color: var(--background-primary);
    color: var(--text-primary);
}

.collection-select {
    color: var(--text-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2371869d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.collection-select:focus,
.token-input:focus,
.collection-input:focus,
.form-control:focus-visible,
textarea:focus {
    color: var(--text-primary);
    background-color: var(--background-primary);
    border-color: var(--text-muted);
    outline: 0;
}

.request-body {
    font-family: monospace;
    resize: vertical;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
    min-height: calc(100vh - 280px);
}

.response-body {
    font-family: monospace;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-height: calc(100vh - 280px);
}

.response-body:empty::before {
    content: "After sending request, response will appear here.";
    color: var(--text-muted);
}

/* ===== Buttons ===== */
.submit-btn {
    background-color: var(--primary-color);
    color: var(--background-primary);
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
    width: fit-content;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

.btn-link {
    font-weight: 300;
    font-style: normal;
    font-size: 14px;
    color: var(--primary-color);
    padding: 6px;
    border-radius: 0.3125rem;
    text-decoration: none;
}

.btn-link:hover {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, .1) !important;
}

/* ===== Method Badge ===== */
.method-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    background-color: var(--secondary-color);
    color: var(--background-primary);
    font-size: 10px;
}

/* ===== Messages & Alerts ===== */
.validation-error {
    border-color: var(--error-color) !important;
}

.error-message {
    color: var(--error-color);
    padding-left: 20px;
    padding-top: 10px;
    display: none;
    font-size: 14px;
    text-align: center;
}

.copy-success {
    font-size: 12px;
    color: var(--success-color);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ===== Token Management ===== */
.token-management {
    display: none;
    margin: 20px;
    background-color: var(--background-primary);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.token-management.visible {
    display: block;
}

.form-block {
    background-color: var(--background-primary);
    padding: 20px;
    border-radius: 8px;
    margin: 20px;
    border: 1px solid var(--border-light);
}

/* ===== Collections Page ===== */
.collection {
    border-radius: 8px;
    margin-bottom: 16px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.collection-header {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
    padding: 16px 20px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-light);
    background-color: var(--background-primary);
    transition: all 0.2s ease;
}

.collection-header:hover {
    background-color: var(--background-light);
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.collection-header span {
    text-transform: none;
}

.collection-header.active {
    border-radius: 8px 8px 0 0;
}

.toggle-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.toggle-icon.expand::before {
    content: "»";
    color: var(--text-secondary);
}

.toggle-icon.collapse::before {
    content: "»";
    color: var(--secondary-color);
    transform: rotate(90deg);
    display: inline-block;
}

.toggle-icon.expanded {
    color: var(--secondary-color);
    font-weight: bold;
    transform: rotate(180deg);
}

.mappings {
    padding: 20px 24px 24px 24px;
    display: none;
    border: 1px solid var(--border-light);
    border-radius: 0 0 8px 8px;
    border-top: 0;
    background-color: var(--background-primary);
}

.no-mappings {
    padding: 20px;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
    background-color: var(--background-light);
    border-radius: 4px;
    margin: 16px 0;
}

/* ===== Cards Container ===== */
.cards-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.cards-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

/* ===== Info Sections ===== */
.info-section {
    background-color: var(--background-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px var(--shadow-light);
    transition: box-shadow 0.3s ease;
    width: 100%;
}

.info-section:hover {
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.section-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    margin-top: 0;
    padding: 0;
    text-transform: uppercase;
    /*letter-spacing: 0.5px;*/
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-light));
    border-radius: 2px;
}

.section-sub-title {
    font-weight: 400;
    font-size: 13px;
    color: var(--secondary-color);
    margin-bottom: 16px;
    margin-top: 0;
    padding: 0;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-sub-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-light));
    border-radius: 2px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    flex: 0 0 40%;
}

.info-value {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.info-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-value a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.info-note {
    padding: 16px 20px;
    background-color: var(--background-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-note strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
    }
    
    .cards-column {
        width: 100%;
    }
}

/* ===== Tables ===== */
table {
    margin-top: 0;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    border-color: var(--border-dark);
}

table th,
table td {
    padding: 12px;
    text-align: left;
}

table th {
    background-color: var(--background-secondary);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
    border: 1px solid var(--border-dark);
}

table th:last-child {
    border-right-width: 0;
}

tbody tr:last-child td {
    border-bottom: none;
}

table td:last-child {
    border-right-width: 0;
}

table td {
    font-size: 14px;
    border: 1px solid var(--border-light);
}

/* ===== File Upload ===== */
.file-upload-container {
    border: 2px dashed var(--border-dark);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: var(--background-light);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.file-upload-container:hover {
    border-color: var(--primary-color);
    background-color: var(--background-light);
}

.file-upload-container.drag-over {
    border-color: var(--primary-color);
    background-color: var(--background-light);
}

.file-input {
    display: none;
}

.file-upload-button {
    background-color: var(--primary-color);
    color: var(--background-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px;
    font-size: 14px;
}

.file-upload-button:hover {
    background-color: var(--primary-dark);
}

.file-selected {
    margin-top: 10px;
    padding: 10px;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-file {
    background-color: var(--error-color);
    color: var(--background-primary);
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.remove-file:hover {
    background-color: var(--error-color);
    opacity: 0.8;
}

.csv-upload-section {
    display: none;
}

.form-group.file-upload-group {
    margin-bottom: 15px;
}

/* ===== JSON Viewer ===== */
.json {
    font-family: "Source Code Pro", monospace;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
}

.json pre {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    overflow-x: hidden !important;
}

.json-viewer {
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: calc(100vh - 280px);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
}

.json-object,
.json-array {
    margin: 0;
    padding: 0;
}

.json-key {
    color: var(--secondary-dark);
    font-weight: bold;
}

.json-string {
    color: var(--primary-dark);
}

.json-number {
    color: var(--primary-dark);
}

.json-boolean {
    color: var(--primary-dark);
}

.json-null {
    color: #808080;
}

.json-toggle {
    cursor: pointer;
    user-select: none;
    margin-right: 5px;
    display: inline-block;
    width: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-weight: bold;
}

.json-toggle:hover {
    color: var(--text-primary);
}

.json-toggle.collapsed::before {
    content: '+';
}

.json-toggle.expanded::before {
    content: '−';
}

.json-content {
    margin-left: 20px;
    border-left: 1px solid var(--border-color);
    padding-left: 10px;
}

.json-content.collapsed {
    display: none;
}

.json-property {
    margin: 2px 0;
}

.json-comma {
    color: var(--text-secondary);
}

.json-bracket,
.json-brace {
    color: var(--text-primary);
    font-weight: bold;
}

.json-editable {
    background: transparent;
    border: 1px solid transparent;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    min-width: 50px;
}

.json-editable:hover {
    border-color: var(--border-dark);
    background-color: var(--background-light);
}

.json-editable:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--background-primary);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

.json-value-editable,
.json-key-editable {
    cursor: text;
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

/* ===== 404 Error Page ===== */
.content-space-t-lg-2 {
    padding-top: 5rem !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* ===== Panel Collection Links ===== */
.panel-collection {
    color: var(--primary-color);
    text-decoration: none;
}

.panel-collection:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== 404 Page Specific ===== */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mt-lg-0 {
    margin-top: 0 !important;
}

.px-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.content-space-t-1 {
    padding-top: 1rem !important;
}

.content-space-b-1 {
    padding-bottom: 1rem !important;
}

.error-img {
    max-width: 100%;
    height: auto;
}

/* ===== Data Viewer CSS ===== */
.field-checkbox {
    display: flex;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
}

.field-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.field-checkbox label {
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
}

.field-checkbox .field-type {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 6px;
}

.data-table-container {
    overflow-x: auto;
    overflow-y: visible;
    margin-top: 15px;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
    background-color: var(--background-primary);
}

.data-table th, .data-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    min-width: 120px;
    max-width: 400px;
    overflow: hidden;
}

.data-table th.record-number-column,
.data-table td.record-number-column {
    width: 50px !important;
    min-width: 55px !important;
    max-width: 60px !important;
    padding: 10px 4px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.data-table td {
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
}

.data-table td .cell-content {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.5em * 4);
    line-height: 1.5;
    word-break: break-word;
}

.data-table th {
    background-color: var(--background-secondary);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    color: var(--text-primary);
    border-right: 1px solid var(--border-light);
}

.data-table th:last-child {
    border-right: none;
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: var(--background-light);
}

.data-table tbody tr:nth-child(even) {
    background-color: rgba(248, 249, 250, 0.5);
}

.data-table tbody tr:nth-child(even):hover {
    background-color: var(--background-light);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.pagination-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--background-primary);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

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

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

.sidebar-section {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.sidebar-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
}

.fields-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.select-all-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    background-color: rgba(255, 255, 255, 0.5);
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 4px;
}

.select-all-container a {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s;
}

.select-all-container a:hover {
    background-color: var(--background-light);
    color: var(--secondary-color);
}

.data-content {
    position: relative;
    min-height: 400px;
    padding: 20px;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--background-primary);
}

.no-data-message {
    text-align: center;
    color: var(--text-muted);
    padding: 0 0 15px 0;
    font-size: 14px;
}

.page-size-select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
}

/* Data viewer specific sidebar width */
.data-viewer-sidebar {
    width: 380px;
    min-width: 380px;
    padding: 15px 20px;
}

.data-viewer-main-content {
    margin-left: 380px;
    width: calc(100% - 380px);
    max-width: calc(100% - 380px);
    overflow-x: hidden;
}

.data-viewer-sidebar .fields-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    min-height: 0;
}

.data-viewer-sidebar .field-checkbox {
    padding: 8px 0;
}

.data-viewer-sidebar .field-checkbox label {
    font-size: 14px;
    flex: 1;
}

.data-viewer-sidebar .sidebar-section-title {
    font-size: 15px;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* Tooltip icon styling */
.tooltip-icon {
    cursor: pointer;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    transition: all 0.2s;
    position: relative;
    margin-left: 4px;
    vertical-align: middle;
}

.tooltip-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.tooltip-icon:hover {
    color: var(--primary-color);
}

.tooltip-icon .tooltip-text {
    visibility: hidden;
    opacity: 0;
    background-color: var(--text-primary);
    color: var(--background-primary);
    text-align: left;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 0;
    transform: none;
    font-size: 11px;
    font-weight: normal;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    line-height: 1.4;
    white-space: normal;
    min-width: 180px;
    max-width: 280px;
}

.tooltip-icon .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 10px;
    transform: none;
    border: 5px solid transparent;
    border-top-color: var(--text-primary);
}

.tooltip-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}