body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #212529;
    background-color: #ffffff;
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

h1, h2, h4 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

h1 {
    color: #212529; 
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
    font-size: 2.2em;
    margin-top: 0;
}

h2 {
    color: #343a40;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
    font-size: 1.8em;
    margin-top: 40px;
}

h4 {
    color: #6c757d;
    font-size: 1.1em;
    margin-top: 25px;

    padding-left: 15px;
    padding-right: 15px;
}

a {
    color: #D68614;
    text-decoration: underline;
}

a:hover,
a:focus {
    color: #B7372E;
    text-decoration: underline;
}

.chart-container {
    max-width: 700px;

    margin: 20px auto;
    border: 1px solid #e9ecef;
    background-color: #ffffff;
    padding: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;

    margin-left: 15px;
    margin-right: 15px;
}

details.section-details {
    margin: 25px 0;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #ffffff;
    overflow: hidden;
}

details.section-details > summary {
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

details.section-details > summary h3 {
    display: inline;
    color: #495057;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 1.4em;
    margin: 0;
    line-height: 1.3;
}

details.section-details > summary::marker {
    color: #3d3d3d;
    font-size: 1em; 
}

details.section-details > summary:hover {
    background-color: #e9ecef;
}


details.section-details > *:not(summary) {
    padding-top: 10px;
    padding-bottom: 10px;
}


details.section-details details {
    margin: 15px;
    border: 1px dashed #ced4da;
    border-radius: 4px;
    background-color: #f8f9fa;
}

details.section-details details > summary {
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 500;
    background-color: transparent;
    border-bottom: none;
    font-size: 0.9em;
    color: #6c757d;
    list-style: revert;
    position: relative;
}


details.section-details details > summary:hover {
    background-color: #e9ecef;
}

details.section-details details > pre {
    background-color: #e9ecef;
    border-top: 1px dashed #ced4da;
    padding: 12px;
    margin: 0;
    overflow-x: auto;
    font-size: 0.9em;
    border-radius: 0 0 3px 3px;
}

details.section-details details > pre {
    clear: both;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    color: #343a40;
}

p {
    margin-bottom: 1em;

    padding-left: 15px;
    padding-right: 15px;
}

/* Global Controls */
.global-controls {
    margin-bottom: 1.5em;
    padding: 10px 0;
}

.global-controls button {
    margin-right: 8px;
    padding: 8px 15px;
    cursor: pointer;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.global-controls button:hover {
    background-color: #495057; 
}

.global-controls button:last-child {
    margin-right: 0;
}

/*  Copy Button Styling  */
.copy-sql-button {
    margin-left: 10px;
    padding: 3px 8px;
    font-size: 0.8em;
    cursor: pointer;
    vertical-align: middle;
    float: right;
   
    background-color: #adb5bd;
    color: white;
    border: none;
    border-radius: 3px;
    line-height: 1.2;
}

.copy-sql-button:hover {
    background-color: #6c757d;
}

/* Table Styling */
.table-container {
    margin: 20px auto;
    max-width: 750px;
    overflow-x: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    font-size: 0.9em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

th, td {
    border: 1px solid #dee2e6;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #343a40;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #e9ecef;
}