/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Container styles */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

table {
    width: 100%;
    table-layout: fixed !important;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

[data-role="redoc-description"] table,
.sc-eeDRCY table {
    width: 100% !important;
    table-layout: fixed !important;
    min-width: 600px !important;
}

/* Override Redoc's content width constraints for tables */
[data-role="redoc-description"] {
    max-width: none !important;
}

/* Ensure the API description section uses full width */
.api-info .sc-eeDRCY {
    max-width: none !important;
    width: 100% !important;
}

th {
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

th:nth-child(even) {
    background: #2b5e7c;
}

th:nth-child(odd) {
    background: #35bcea;
}

td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    width: 25%;
}

.api-endpoint {
    font-family: monospace;
    background: #f1f2f6;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    color: black;
}

.api-post {
    font-family: monospace;
    background: #186faf;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #fff;
}

.api-put {
    font-family: monospace;
    background: #954f7c;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #fff;
}

.td-divider {
    margin: 3px;
    display: block;
}

.api-get {
    font-family: monospace;
    background: #2d8232;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #fff;
}

/* Header styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: relative;
}

/* Header layout */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo styles */
.logo-container {
    flex: 0 0 auto;
}

.main-logo {
    display: block;
}

.main-logo img {
    display: block;
    max-height: 50px;
    width: auto;
}

/* Button container */
.button-container {
    flex: 0 0 auto;
    text-align: right;
}

/* Download button */
.download-button {
    display: inline-block;
    background-color: #2b5e7c;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: #35bcea;
}

/* Main content area */
.main-content {
    padding: 30px 0;
}

/* Media queries for responsive design */
@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .button-container {
        margin-top: 15px;
        width: 100%;
        text-align: left;
    }

    .download-button {
        display: block;
        text-align: center;
    }
}

.flowchart-wide {
    display: block;
    width: 100%;
    max-width: 1600px;
    height: auto;
}

.flowchart-tall {
    display: none;
}

/* Mobile layout - hide wide version, show tall version */
@media (max-width: 768px) {
    .flowchart-wide {
        display: none;
    }

    .flowchart-tall {
        display: block;
        width: 100%;
        max-width: 1200px;
        height: auto;
    }
}

/* Container styling */
.flowchart-container {
    width: 100%;
    max-width: 1600px;
    margin: 20px auto;
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px;
}
