
body {
    font-family: Arial, sans-serif;
    background-color: #1a1a2e;
    color: #ffffff;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

header {
    background-color: #0f3460;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.header-buttons {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
}

.sidebar {
    position: fixed;
    top: 60px;
    bottom: 0;
    width: 250px;
    background-color: #16213e;
    padding: 1rem;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    z-index: 100;
}

.left-sidebar {
    left: 0;
    transform: translateX(-100%);
}

.right-sidebar {
    width: 20%;
    right: 0;
    transform: translateX(100%);
}

.sidebar.active {
    transform: translateX(0);
}

.main-content {
    margin-top: 60px;
    transition: margin 0.3s ease-in-out;
    padding-right: 10px;
}

/* Rest of your existing CSS for .container, .left-column, .right-column, etc. */

#topic-list {
    list-style-type: none;
    padding: 0;
}

#topic-list li {
    padding: 0.5rem;
    margin: 0.5rem 0;
    background-color: #0f3460;
    border-radius: 5px;
    cursor: pointer;
}

#topic-list li:hover {
    background-color: #1a1a2e;
}

/* Add any additional styles you need for the schema sidebar */


/* Additional styles for the schema sidebar */
.schema-info {
    font-family: Arial, sans-serif;
    color: #ffffff;
}

.table-info {
    margin-bottom: 20px;
    background-color: #1e293b;
    border-radius: 8px;
    overflow: hidden;
}

.table-name {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 10px;
    margin: 0;
    font-size: 1.2em;
}

.column-info {
    width: 100%;
    border-collapse: collapse;
}

.column-info th,
.column-info td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #34495e;
}

.column-info th {
    background-color: #34495e;
    color: #ecf0f1;
}

.column-info tr:nth-child(even) {
    background-color: #243447;
}

.column-info tr:hover {
    background-color: #2c3e50;
}

/* Scrollbar styles for WebKit browsers */
#schema-sidebar::-webkit-scrollbar {
    width: 8px;
}

#schema-sidebar::-webkit-scrollbar-track {
    background: #16213e;
}

#schema-sidebar::-webkit-scrollbar-thumb {
    background-color: #0f3460;
    border-radius: 4px;
}

#schema-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #1a5f9c;
}


/* Add these new styles to your existing CSS file */

#schema-content .table-name {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 10px;
    margin: 10px 0 5px 0;
    border-radius: 5px;
}

#schema-content ul {
    list-style-type: none;
    padding-left: 10px;
    margin: 0 0 15px 0;
}

#schema-content li {
    padding: 5px;
    border-bottom: 1px solid #34495e;
}

#schema-content .column-name {
    font-weight: bold;
    color: #3498db;
}

#schema-content .column-type {
    color: #2ecc71;
    margin-left: 10px;
}

#schema-content .not-null {
    color: #e74c3c;
    margin-left: 10px;
    font-style: italic;
}

#schema-content .primary-key-indicator {
    background-color: #f39c12;
    color: #fff;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 5px;
}

#schema-content .foreign-key-indicator {
    background-color: #f39c12;
    color: #fff;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 5px;
}


/* Existing scrollbar styles can remain unchanged */




.container {
    display: flex;
    height: calc(100vh - 60px);
}

.left-column, .right-column {
    padding: 20px;
    overflow-y: auto;
}

.left-column {
    width: 55%;
    min-width: 200px;
    background-color: #16213e;
}

.right-column {
    width: 45%;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

#resizer {
    width: 10px;
    background-color: #0f3460;
    cursor: col-resize;
    transition: background-color 0.3s ease;
}

#resizer:hover {
    background-color: #1a5f9c;
}


.concept-slider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.slider-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5em;
    cursor: pointer;
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#current-concept {
    font-size: 1.2em;
    font-weight: bold;
}

#concept-content {
    background-color: #25254da3;
    padding: 15px;
    border-radius: 5px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#schema-select, #preview-schema {
    padding: 5px 10px;
    background-color: #0f3460;
    color: white;
    border: none;
    border-radius: 5px;
}

#sql-editor {
    width: 100%;
    height: 200px;
    background-color: #16213e;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

#run-query {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    align-self: flex-start;
}


.sql-editor-container {
    margin-bottom: 20px;
}

#output-area {
    background-color: #16213e;
    border-radius: 5px;
    padding: 20px;
    min-height: 200px;
    overflow-y: auto;
    flex-grow: 1;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.result-table th, .result-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.result-table th {
    background-color: #0f3460;
    color: white;
}

.result-table tr:nth-child(even) {
    background-color: #16213e;
}

.result-table tr:hover {
    background-color: #1a1a2e;
}




/* Add styles for the overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 50;
}

.overlay.active {
    display: block;
}
/* overlay content */



/* Add these styles to your existing CSS file */

/* Add or update these styles in your existing CSS file */

#data-model-sidebar {
    width: 40%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #16213e;
    color: #ffffff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 1200px; /* Set a maximum width */

}

.sidebar-header {
    background-color: #3949ab;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1001;
}

#data-model-content {
    padding: 0;
    overflow: hidden; /* Hide overflow to prevent scrollbars */
    width: 100%;
    height: 100%;
    position: relative;
}


.zoom-button-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: row;
    z-index: 1000; /* Ensure buttons are above the SVG */
}

.zoom-button {
    width: 40px;
    height: 40px;
    margin: 0 5px;
    font-size: 24px;
    background-color: #3949ab;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zoom-button:hover {
    opacity: 1;
}



#data-model-content svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 18px;
}

.close-button-container {
    padding-top: 50px;
    background-color: #16213e;
    text-align: end;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
}



#data-model-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    cursor: ns-resize;
    background: linear-gradient(transparent, rgba(0,0,0,0.1));
}

#preview-erd {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #3949ab;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#preview-erd:hover {
    background-color: #303f9f;
}



.CodeMirror {
    height: 200px;
    border-radius: 5px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 14px;
    background-color: #1e293b;
    color: #e2e8f0;
    line-height: 1.6;
    padding: 10px;
}



/* Topics Styling */

/* Add these styles to your existing CSS file */

.topic-content {
    font-family: Arial, sans-serif;
    line-height: 1.2;
    color: #ecf0f1;
}

.topic-title {
    text-align: center;
    color: #d0e419;
    margin-bottom: 30px;
    font-size: 28px;
}

.topic-subtitle {
    color:  #0ae44f;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 22px;
}

.topic-paragraph {
    margin-bottom: 20px;
}

.topic-list {
    margin-bottom: 20px;
    padding-left: 20px;
}

.topic-list li {
    margin-bottom: 10px;
}

.topic-highlight {
    font-weight: bold;
    color: #00ffff;
}

.topic-code {
    background-color: #2c3e50;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
}

.topic-note {
    background-color: #34495e;
    border-left: 5px solid #3498db;
    padding: 15px;
    margin-bottom: 20px;
}

.topic-centered {
    text-align: center;
}




#sub-concept-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.sub-concept-button {
    padding: 5px 10px;
    background-color: #0f3460;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.sub-concept-button:hover {
    background-color: #1a5f9c;
}



/* Copy feature on the query */

/* ... (existing styles) */

/* ... (existing styles) */

.code-container {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 5px 10px;
    background-color: #3949ab;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: #303f9f;
}

.copy-btn.copied {
    background-color: #4CAF50; /* Green background when copied */
}

/* ... (rest of the existing styles) */

