/* swagger-ui.css */

/* Left-align the base URL and swagger.json link */
.swagger-ui .info .base-url,
.swagger-ui .info .link {
    text-align: left; /* Left-align the text */
    margin: 0; /* Remove any extra margin */
    padding: 0; /* Remove padding if unnecessary */
    display: block; /* Ensure block-level alignment */
}



/* Customize the "Try it out" button */
.swagger-ui .btn.try-out__btn {
    background-color: #0066cc; /* Custom blue */
    color: white;
    border-radius: 4px;
    padding: 8px 16px;
}

.swagger-ui .btn.try-out__btn:hover {
    background-color: #004c99; /* Darker blue on hover */
}

/* Customize response section */
.swagger-ui .responses-wrapper {
    background-color: #f9f9f9; /* Light background for responses */
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 10px;
}

.swagger-ui .markdown p {
    margin: 0.6em;
}

/* Reduce the font size of the endpoint tag */
.swagger-ui .opblock-tag {
    font-size: 16px; /* Set to a smaller size, e.g., 16px */
    padding: 1px 10px 1px 5px;
}

/* Adjust font size for operation descriptions */
.swagger-ui .opblock-summary-description {
    font-size: 1rem;          /* Smaller font size */
    color: #3b4151;
}

.swagger-ui .opblock .opblock-summary-path {
    white-space: nowrap;      /* Prevent line breaks */
    overflow: hidden;         /* Hide any overflowing text */
    text-overflow: ellipsis;  /* Add ellipsis for truncated text */
    display: inline-block;    /* Ensure proper alignment */
    max-width: 100%;          /* Use full available width */
}

/* Ensure the summary button does not cause wrapping */
.swagger-ui .opblock .opblock-summary {
    flex-wrap: nowrap;        /* Prevent wrapping */
    align-items: center;      /* Vertically center-align items */
    gap: 5px;                 /* Add spacing between elements */
    font-size: 0.9em;         /* 70% of the original size */
}

/* Adjust the HTTP method column for better layout */
.swagger-ui .opblock-summary-method {
    flex: 0 0 70px;           /* Fixed width for method (e.g., GET) */
    text-align: center;       /* Center-align the method text */
}

.swagger-ui .opblock-summary-control {
    justify-content: flex-start;
    padding: 10px;
}

/* Hide the "Available values" text */
.swagger-ui .parameter__enum {
    display: none;
}


/* Let this page go full-width even with Bootstrap's .container */
main.container.mt-5 { max-width: none !important; width: 100% !important; }

/* Remove Swagger-UI’s internal max-widths and centering */
.swagger-ui .wrapper,
.swagger-ui .information-container.wrapper,
.swagger-ui .scheme-container,
.swagger-ui .opblock-tag-section {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 12px;
  padding-right: 12px;
}

/* Parameter description */
.swagger-ui .parameters-col_description,
.swagger-ui .parameters-col_description .markdown,
.swagger-ui .parameters-col_description ul,
.swagger-ui .parameters-col_description li {
    font-size: 1.00em !important;   /* adjust size as needed */
    line-height: 1.2 !important;   /* tighten vertical spacing if desired */
}

/* Parameter description list spacing */
.swagger-ui .parameters-col_description .markdown ul {
  margin: 0 !important;
  padding-left: 20px !important;
}
.swagger-ui .parameters-col_description .markdown li {
  margin-bottom: 2px !important;
}


