body {
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
        'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #2c3e50;
    padding-bottom: 10px;
}

/* Tab styles */

.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab-btn {
    background-color: lightgray;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 5px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    transition: background-color 0.2s;
    border: 1px solid #e0e0e0;
    border-bottom: none;
}

.tab-btn:hover {
    background-color: #e0e0e0;
}

.tab-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.endpoint {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

code {
    background-color: #f1f1f1;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
}

.btn:hover {
    background-color: #0069d9;
}

.search-container {
    margin: 20px 0;
}

input[type='text'] {
    padding: 10px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button#search-btn {
    background-color: #28a745;
}

button#search-btn:hover {
    background-color: #218838;
}

#result {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
}

#result-code {
    font-size: 1.2em;
    color: #0d47a1;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.error-detail {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.error-detail:last-child {
    border-bottom: none;
}

.error-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.error-label span {
    font-weight: normal;
    margin-left: 8px;
    color: #555;
}

/* Add specific styling for different sections */

#location-container .error-label {
    color: #0d6efd;
}

#location-container .error-label span {
    color: #495057;
}

#internal-container {
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 4px;
}

#internal-container .error-label {
    color: #6c757d;
}

#internal-container .error-label span {
    color: #495057;
}

.error-message {
    padding: 10px;
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    margin-top: 10px;
    border-radius: 4px;
    display: none;
}

.error-link {
    margin-top: 15px;
}

.error-link a {
    color: #007bff;
    text-decoration: none;
    margin-left: 8px;
}

.error-link a:hover {
    text-decoration: underline;
}

pre {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* Search results styles */

.search-results {
    margin-top: 20px;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    flex-direction: column;
}

.search-results-list li:last-child {
    border-bottom: none;
}

.search-results-list li:hover {
    background-color: #f5f5f5;
}

.result-code {
    font-weight: bold;
    color: #0d47a1;
    margin-bottom: 5px;
}

.result-text {
    color: #555;
    font-size: 0.9em;
}

/* Definition Guide Styles */

.definition-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.definition-section {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 15px;
    border-radius: 4px;
}

.definition-section h3 {
    color: #2c3e50;
    margin-top: 0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.definition-content {
    margin-top: 15px;
}

.definition-item {
    display: flex;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.definition-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.definition-code {
    font-family: monospace;
    background-color: #e9ecef;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 12px;
    min-width: 40px;
    text-align: center;
}

.definition-desc {
    flex: 1;
}

/* Translation display styles */

.translations-section {
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.language-card {
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.language-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.language-code {
    font-weight: bold;
    color: #0d47a1;
}

.language-name {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9em;
}

.translation-content p {
    margin: 8px 0;
}

.translation-label {
    font-weight: 600;
    color: #495057;
}

.metadata-section {
    margin-bottom: 15px;
}
