body {
    font-family: sans-serif;
    margin: 20px;
    background-color: #f7f7f7;
    color: #333;
}

h1, h2, h3 {
    color: #555;
}

.global-headers {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.global-headers div {
    margin-bottom: 10px;
}

.global-headers label {
    display: inline-block;
    width: 120px;
    font-weight: bold;
}

.global-headers input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 300px;
}

#api-endpoints {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.endpoint-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.endpoint-group h2 {
    cursor: pointer;
    color: #007bff;
    margin-bottom: 10px;
}

.endpoint {
    border: 1px solid #eee;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden; /* Prevents margin collapse */
}

.endpoint-header {
    background-color: #f0f0f0;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.endpoint-header:hover {
    background-color: #e9e9e9;
}

.endpoint-header .method {
    font-weight: bold;
    background-color: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 10px;
    text-transform: uppercase;
}

.endpoint-header .path {
    font-family: monospace;
    font-size: 1.1em;
    flex-grow: 1;
}

.endpoint-details {
    padding: 15px;
    background-color: #fff;
    display: none; /* Hidden by default */
}

.endpoint-details.active {
    display: block;
}

.endpoint-details h4 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.endpoint-details p {
    margin-bottom: 15px;
    font-size: 0.95em;
    line-height: 1.4;
}

.parameters-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.parameters-table th, .parameters-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 0.9em;
}

.parameters-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.payload-section label, .response-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.payload-section textarea, .response-section pre {
    width: calc(100% - 22px); /* Adjust for padding/border */
    min-height: 150px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
    margin-bottom: 10px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.response-section pre {
    background-color: #eee;
    white-space: pre-wrap; /* Wrap long lines */
    word-wrap: break-word; /* Break words if necessary */
}

.send-button {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.send-button:hover {
    background-color: #218838;
}

.response-status {
    font-weight: bold;
    margin-bottom: 5px;
}
