﻿/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

.header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2px 0;
    height: 120px;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* Ensure sidebar and main content stay within container */
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: #333;
    color: #fff;
}

.nav-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    padding: 10px 20px;
    border-bottom: 1px solid #555;
    transition: background-color 0.3s ease;
}

.nav-item a {
    text-decoration: none;
    color: #fff;
    font-size: 15px;
}

.nav-item:hover {
    background-color: #555;
}

.nav-item.active {
    background-color: #555;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 20px;
}

.tab-content {
    display: none;
    /* Hide all tab content by default */
}

.tab-content.active {
    display: block;
    /* Show active tab content */
}

.tab-content h2 {
    color: #333;
    border-bottom: 1px solid #ccc;
    /* Add border below h2 for separation */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.tab-content .json-content {
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    /* Border for JSON content */
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    /* Enable horizontal scroll if needed */
    font-family: 'Courier New', Courier, monospace;
    /* Use monospace font for JSON */
    font-size: 14px;
    /* Adjust font size as needed */
    line-height: 1.6;
    /* Adjust line height for readability */
    white-space: pre-wrap;
    /* Preserve formatting including line breaks */
    color: #333;
    /* Text color for JSON content */
}

.api-links {
    margin-top: 20px;
}

.api-link {
    margin-bottom: 10px;
    font-size: 14px;
}

.api-link a {
    color: #007bff;
    /* Blue color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.api-link a:hover {
    color: #0056b3;
    /* Darker blue on hover */
}

/* Copy Button Styles */
.copy-button {
    display: block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #555;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: auto;
}

.copy-button:hover {
    background-color: #333;
}

/* Copied Message Styles */
.copied-message {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
    margin-right: 10px;
    animation: fadeInOut 2s ease;
}

.json-content .required {
    color: red;
    margin-left: -100px
}

.note {
    color: #888;
    font-size: 14px;
}

.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

.footer p {
    margin: 0;
}


@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.tab-container {
    margin-top: 20px;
}

.tab-button {
    background-color: #f1f1f1;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 14px;
}

.tab-button.active {
    background-color: #ccc;
}

.tab-label-content{
    font-size: 14px;
}

.title-header{
    font-size: 18px;
}

.header h1 img {
    height: 50px;
    width: 200px;
}

.help-div {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-right: 20px;
    margin-top: -24px;
    position: relative; /* Added for proper positioning */
}

    .help-div img {
        height: 20px !important;
        width: 20px !important;
        cursor: pointer;
    }

#help-info {
    display: none;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #333;
    color: #fff;
    position: absolute;
    top: -40px;
    right: 45px;
    width: 270px;
    z-index: 10;
    text-align: initial;
    font-size: 14px;
    font-weight: initial;
}

.help-div:hover #help-info {
    display: block;
}

#help-info::before {
    content: "";
    position: absolute;
    top: -10px; /* Adjust to align with the tooltip */
    right: 10px; /* Adjust to align with the tooltip */
    border-width: 0 10px 10px 10px;
}