/* Custom Styles */
body {
    font-family: Arial, sans-serif;
}

.hero {
    background-color: #f9f9f9;
    padding-top: 50px;
    padding-bottom: 50px;
}

h1.display-4 {
    color: #4a90e2;
}

p.lead {
    font-size: 1.2rem;
    color: #333;
}
.container-editor {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex: 1;
    margin: 40px;
    border-radius: 15px;
    overflow: hidden;
    background: #d86d43;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: #d86d43;
}
.left-panel, .right-panel {
    padding: 20px;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
}
.left-panel {
    width: 60%;
    background: #f1e3de;
    border-right: 2px solid #ffafbd;
    border: 2px solid #d86d43;
}
.right-panel {
    width: 40%;
    background: #f1e3de;
    border: 2px solid #d86d43;
}
h1 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #733922;
}
form {
    margin-bottom: 20px;
}
label {
    font-weight: bold;
    color: #733922;
}
input[type="file"] {
    margin-top: 10px;
    padding: 8px 12px;
    border: 2px solid #733922;
    border-radius: 5px;
    background: white;
    cursor: pointer;
}
input[type="file"]:hover {
    background: #ffcdb9;
    color: black;
}
button {
    background: #ca6137;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    margin-top: 10px;
}
button:hover {
    background: #c89a87;
    color: #ca6137;
}
.editor-container {
    background: #fff3f3;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px; /* Batas lebar maksimum */
    overflow: hidden;
}

.CodeMirror {
    border: 2px solid #ff6f61;
    border-radius: 5px;
    height: 350px;
   
    white-space: pre; /* Hindari teks melipat otomatis */
}

.output-container {
    background-color: #fff3f3;
    padding: 20px;
    border: 2px solid #733922;
    border-radius: 10px;
    color: #333;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    height: 450px;
    /* margin-top: 20px; */
}
pre {
    color: #00796b;
    font-size: 1em;
}
img {
    max-width: 100%;
    /* border: 5px solid #7d5443;
    border-radius: 10px; */
    margin-top: 10px;
}
.right-panel h1 {
    color: #733922;
}
.btn-register {
    background-color: #d6783e; 
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-register:hover {
    background-color: #d87d4c; 
}

.btn-login {
    background-color: #c46b52; 
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #bf5d45; 
}
.header {
    text-align: center;
    margin-bottom: 20px;
}
.header h1 {
    font-size: 24px;
    color: #5f27cd;
}
.list {
    list-style: none;
    padding: 0;
}
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    background: #f1f1f1;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.3s ease;
}
.list-item:hover {
    background: #5f27cd;
    color: white;
}
.list-item span {
    font-weight: bold;
}
.list-item .icon {
    font-size: 18px;
    color: #555;
    transition: color 0.3s ease;
}
.list-item:hover .icon {
    color: white;
}
@media (max-width: 768px) {
    .editor-output-layout {
        flex-direction: column; /* Susunan vertikal pada layar kecil */
    }

    .left-panel, .right-panel {
        flex: none; /* Hilangkan proporsi */
        width: 100%; /* Kedua panel memenuhi lebar penuh */
    }
}
