body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #fafafa;
    color: #3b4151;
}

.swagger-ui {
    max-width: 100%;
    margin: 0 auto;
}

/* --- Topbar --- */
.topbar {
    background-color: #89bf04; /* Цвет из Swagger Petstore, можно изменить */
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.topbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.topbar .link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.topbar .link img {
    height: 32px;
    margin-right: 10px;
}

.topbar .link span {
    font-size: 1.5em;
    font-weight: 600;
}

.servers-container label {
    color: white;
    margin-right: 8px;
    font-size: 0.9em;
}
.servers-container select {
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
}


/* --- Main Container --- */
.swagger-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Info Section --- */
.info-container {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.info .title {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 5px;
    color: #3b4151;
}
.info .title span {
    font-size: 0.7em;
    color: #888;
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 10px;
}

.info .base-url {
    font-family: monospace;
    font-size: 0.9em;
    color: #555;
    background-color: #f7f7f7;
    padding: 5px;
    border-radius: 3px;
    margin-bottom: 15px;
    display: inline-block;
}

.info .description p {
    line-height: 1.6;
    margin-bottom: 15px;
}
.info .description a, .info-links a {
    color: #4990e2;
    text-decoration: none;
}
.info .description a:hover, .info-links a:hover {
    text-decoration: underline;
}
.info-links a {
    margin-right: 15px;
    font-size: 0.9em;
}


/* --- Tags --- */
.tag-section {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.tag-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}
.tag-header:hover {
    background-color: #f0f0f0;
}

.tag-header h3 {
    margin: 0;
    font-size: 20px;
    color: #222;
}
.tag-header h3 a {
    color: inherit;
    text-decoration: none;
}
.tag-header h3 a:hover {
    text-decoration: underline;
}
.tag-header h3 small {
    font-size: 0.7em;
    color: #777;
    font-weight: normal;
    margin-left: 10px;
}

.expand-button {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    font-size: 1.2em;
}

.tag-content {
    padding: 0; /* Убрали паддинг, т.к. opblock'и сами будут иметь отступы */
}

/* --- Operation Blocks (Opblocks) --- */
.opblock {
    border-bottom: 1px solid #e7e7e7;
    margin: 0; /* Убрали margin */
}
.opblock:last-child {
    border-bottom: none;
}

.opblock-summary {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.opblock-summary-method {
    font-size: 0.9em;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 3px;
    color: white;
    margin-right: 10px;
    min-width: 60px;
    text-align: center;
    text-transform: uppercase;
}

.opblock-post .opblock-summary { background-color: rgba(73, 204, 144, 0.1); border-left: 5px solid #49cc90;}
.opblock-post .opblock-summary-method { background-color: #49cc90; }

.opblock-get .opblock-summary { background-color: rgba(97, 175, 254, 0.1); border-left: 5px solid #61affe;}
.opblock-get .opblock-summary-method { background-color: #61affe; }

.opblock-put .opblock-summary { background-color: rgba(252, 161, 48, 0.1); border-left: 5px solid #fca130;}
.opblock-put .opblock-summary-method { background-color: #fca130; }

.opblock-delete .opblock-summary { background-color: rgba(249, 62, 62, 0.1); border-left: 5px solid #f93e3e;}
.opblock-delete .opblock-summary-method { background-color: #f93e3e; }

.opblock-summary-path {
    font-family: monospace;
    font-size: 1.1em;
    font-weight: 600;
    color: #3b4151;
    margin-right: 15px;
}
.opblock-summary-path a {
    color: inherit;
    text-decoration: none;
}
.opblock-summary-path a:hover {
    text-decoration: underline;
}

.opblock-summary-description {
    font-size: 0.9em;
    color: #555;
    flex-grow: 1;
}

.expand-opblock-button {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    font-size: 1em;
    margin-left: auto; /* Pushes it to the right */
    padding: 5px;
    transition: transform 0.2s ease-in-out;
}

.opblock-body {
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.opblock-section-header {
    margin-top: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.opblock-section-header h4 {
    font-size: 1.1em;
    margin: 0;
    color: #333;
}

.parameters-container .no-parameters {
    color: #777;
    font-style: italic;
}
.request-body-container p code {
    background-color: #f3f3f3;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.execute-wrapper {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.btn {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    margin-right: 10px;
    border: 1px solid transparent;
}

.try-out__btn {
    background-color: #007aff; /* Типичный синий для "Try it out" */
    color: white;
    border-color: #007aff;
}
.try-out__btn:hover {
    background-color: #005bb5;
}

.execute.opblock-control__btn {
    background-color: #49cc90; /* Зеленый, как метод POST */
    color: white;
    border-color: #49cc90;
}
.execute.opblock-control__btn:hover {
    background-color: #3ca87a;
}


.responses-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.responses-wrapper th, .responses-wrapper td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 0.9em;
}
.responses-wrapper th {
    background-color: #f9f9f9;
    font-weight: 600;
}
.responses-wrapper .response_200 td:first-child {
    color: #49cc90; /* Green for 200s */
    font-weight: bold;
}
.responses-wrapper .response_405 td:first-child {
    color: #fca130; /* Orange for 400s */
    font-weight: bold;
}
.responses-wrapper .content-type {
    padding: 4px 6px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 0.9em;
}

/* --- Schemas Section --- */
.schemas-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
.schemas-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.schema-container {
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 3px;
}
.schema-name {
    background-color: #f7f7f7;
    padding: 10px 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.schema-name:hover {
    background-color: #efefef;
}
.schema-details {
    padding: 15px;
    background-color: #fdfdfd;
}
.schema-details pre {
    background-color: #2d2d2d; /* Темный фон для кода */
    color: #ccc;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85em;
    margin: 0;
}

/* Утилиты */
.hidden {
    display: none;
}