* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

.app {
    display: flex;
    min-height: 100vh;
}

.navigation {
    width: 150px;
    background-color: #252526;
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

.nav-header {
    padding: 1rem;
    border-bottom: 1px solid #3e3e42;
}

.nav-header h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #cccccc;
}

.navigation nav {
    padding: 1rem 0;
}

.navigation ul {
    list-style: none;
}

.navigation li {
    margin: 0;
}

.navigation a {
    display: block;
    padding: 0.75rem 1rem;
    color: #cccccc;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navigation a:hover {
    background-color: #0e639c;
    color: white;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: calc(100% - 150px);
    margin-left: 150px;
}



.btn {
    background-color: #0e639c;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    background-color: #1177bb;
}

#convert-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#convert-btn:hover {
    background-color: #45a049;
}

#convert-btn:active {
    background-color: #3d8b40;
}

main {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    align-items: flex-start;
}

.panel {
    width: 50%;
    height: 800px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel.full-width {
    width: 100%;
}

.panel-footer {
    background-color: #252526;
    padding: 1rem;
    border-top: 1px solid #3e3e42;
    display: flex;
    justify-content: center;
    align-items: center;
}

.panel-header {
    background-color: #252526;
    padding: 1rem;
    border-bottom: 1px solid #3e3e42;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 1rem;
    color: #cccccc;
    font-weight: 500;
}





.code-editor {
    flex: 1;
    padding: 1rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    border: none;
    resize: none;
    background-color: #1e1e1e;
    color: #d4d4d4;
    tab-size: 4;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 0;
}

.code-editor:focus {
    outline: none;
    background-color: #1e1e1e;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

#output-editor {
    background-color: #1e1e1e;
}

/* Prism.js styles override */
.code-editor code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Placeholder styles for contenteditable */
.code-editor:empty:before {
    content: attr(placeholder);
    color: #666;
    pointer-events: none;
}

#status-message {
    padding: 1rem 2rem;
    text-align: center;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#status-message.success {
    background-color: #d4edda;
    color: #155724;
    opacity: 1;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    
    .panel {
        height: 40vh;
    }
}