body {
margin: 0;
padding: 0;
height: 100vh;
overflow: hidden;
background-color: #1e1e1e;
color: #e0e0e0;
}

.sidebar {
background-color: #1e2433;
color: #e0e0e0;
height: 100vh;
padding: 0;
width: 200px;
transition: all 0.3s ease;
z-index: 1000;
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.sidebar-header {
background: linear-gradient(to right, #2b3a57, #1e2433);
padding: 15px;
text-align: center;
font-weight: bold;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #394867;
color: #61dafb;
}

.sidebar-button {
display: block;
width: 100%;
padding: 12px 15px;
text-align: left;
color: #c9d1d9;
background-color: transparent;
border: none;
border-bottom: 1px solid #2d3748;
cursor: pointer;
transition: all 0.2s ease;
}

.sidebar-button:hover {
background-color: #2b3a57;
color: #61dafb;
border-left: 3px solid #61dafb;
padding-left: 12px;
}

.sidebar-button i {
color: #61dafb;
width: 20px;
text-align: center;
}

.sidebar-footer {
padding: 15px;
text-align: center;
font-size: 0.8rem;
background: linear-gradient(to right, #1e2433, #2b3a57);
width: 100%;
border-top: 1px solid #394867;
color: #8b949e;
}

.sidebar-content {
height: calc(100vh - 130px);
overflow-y: auto;
background-color: #1e2433;
}

/* Scrollbar styling for sidebar specifically */
.sidebar-content::-webkit-scrollbar {
width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
background: #1e2433;
}

.sidebar-content::-webkit-scrollbar-thumb {
background: #394867;
border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
background: #61dafb;
}

.sidebar-button {
display: block;
width: 100%;
padding: 10px 15px;
text-align: left;
color: #e0e0e0;
background-color: transparent;
border: none;
border-bottom: 1px solid #333;
cursor: pointer;
transition: background-color 0.3s;
}

.sidebar-button:hover {
background-color: #2d2d2d;
color: #61dafb; /* Light blue accent color */
}

.sidebar-footer {
padding: 10px;
text-align: center;
font-size: 0.8rem;
background-color: #1e1e1e;
width: 100%;
border-top: 1px solid #333;
}

.main-content {
height: 100vh;
overflow: hidden;
background-color: #1e1e1e;
}

.editor-container {
height: 100%;
border-right: 1px solid #333;
position: relative;
overflow: hidden;
}

.preview-container {
height: 100%;
overflow: auto;
background-color: #fff; /* Keep preview with white background */
}

textarea {
width: 100%;
height: 100%;
border: none;
resize: none;
padding: 15px;
font-family: 'Consolas', 'Monaco', monospace;
background-color: #1e1e1e;
color: #e0e0e0;
line-height: 1.5;
}

.editor-header {
background-color: #252526;
padding: 5px 15px;
border-bottom: 1px solid #333;
font-family: monospace;
color: #e0e0e0;
}

.toggle-sidebar {
display: none;
background: none;
border: none;
color: #e0e0e0;
font-size: 1.2rem;
cursor: pointer;
}

.sidebar-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
z-index: 999;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
.sidebar {
position: fixed;
left: -200px;
transition: left 0.3s ease;
}

.sidebar.show {
left: 0;
}

.toggle-sidebar {
display: block;
position: fixed;
top: 10px;
left: 10px;
z-index: 1001;
}

.mobile-header {
display: flex;
background-color: #1e1e1e;
color: #e0e0e0;
padding: 10px;
justify-content: center;
align-items: center;
position: relative;
}

.sidebar-overlay.show {
display: block;
}

.content-wrapper {
padding-top: 50px;
}
}

/* Tablet adjustments for split view */
@media (max-width: 767.98px) {
.split-view {
flex-direction: column;
}

.editor-container, .preview-container {
width: 100%;
height: 50vh;
}

.editor-container {
border-right: none;
border-bottom: 1px solid #333;
}
}

/* Fixed footer for mobile */
@media (max-height: 600px) {
.sidebar-footer {
position: static;
}
}

.sidebar-content {
height: calc(100vh - 130px);
overflow-y: auto;
}

.btn-toolbar {
display: none;
}

@media (max-width: 767.98px) {
.btn-toolbar {
display: flex;
padding: 10px;
background-color: #252526;
justify-content: space-around;
border-bottom: 1px solid #333;
}

.btn-toolbar .btn {
color: #e0e0e0;
border-color: #444;
}

.btn-toolbar .btn:hover {
background-color: #2d2d2d;
color: #61dafb;
}
}

/* Code editor styling */
#codeEditor {
width: 100%;
height: 100%;
padding: 15px;
font-family: monospace;
font-size: 14px;
background-color: #1e1e1e;
color: #d4d4d4;
white-space: pre-wrap !important;
word-wrap: break-word !important;
overflow-wrap: break-word !important;
overflow-y: auto !important;
overflow-x: hidden;
line-height: 1.5;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}

::-webkit-scrollbar-track {
background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
background: #424242;
border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
background: #4f4f4f;
}

/* Resize handle styles */
.gutter {
    background-color: #eee;
    background-repeat: no-repeat;
    background-position: 50%;
    width: 10px;
    cursor: col-resize;
}

.gutter:hover {
    background-color: #ddd;
}

.split-view {
    display: flex;
    width: 100%;
}

/* Ensure this only applies to desktop */
@media (max-width: 767px) {
    .gutter {
        display: none;
    }
}

/* Add these styles at the end of your file */
#codeEditor.hljs {
    padding: 15px;
    font-family: monospace;
    font-size: 14px;
    background-color: #1e1e1e;
}

.hljs {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}


