* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', monospace;
    background-color: #0e0e10;
    color: #f0f0f0;
    height: 100vh;
    overflow: hidden;
}

/* ===== Main Layout ===== */
.main-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ===== Output & Resizer ===== */
/* ===== Output & Resizer ===== */
#output-container {
    border: 2px solid #ff0055;
    border-radius: 0px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 100, 0.2);
    display: none;
    flex-shrink: 0;
    flex-basis: 50%; /* <-- PERUBAHAN DI SINI */
}

#resizer {
    background-color: #ff0055;
    display: none;
    flex-shrink: 0;
}
#resizer.horizontal { cursor: ns-resize; height: 5px; width: 100%; }
#resizer.vertical { cursor: ew-resize; width: 5px; height: 100%; }

/* Position Classes */
.output-top { order: -1; }
.output-bottom { order: 1; }
.main-wrapper.layout-horizontal { flex-direction: row; }
.output-left, .output-right { flex-basis: 40%; }
.output-left { order: -1; }
.output-right { order: 1; }

#output-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Editor with Tabs ===== */
.editor-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.editor-tabs {
    display: flex;
    background-color: #1a1a1d;
    border-bottom: 2px solid #ff0055;
    flex-shrink: 0;
}

.tab {
    background: none;
    border: none;
    color: #f0f0f0;
   padding: 6px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.tab.active { background-color: #ff0055; color: white; }
.tab:hover:not(.active) { background-color: #333; }

.editor-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
        padding: 2px;
    padding-top: 5px;
    min-height: 0;
}

.editor-panel {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}
.editor-panel.active { display: flex; }

/* ===== Panel Content ===== */
.copy-paste-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.copy-paste-buttons button {
    background-color: #292929;
    color: #f0f0f0;
    border: 1px solid #ff0055;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}
.copy-paste-buttons button:hover {
    background-color: #ff0055;
    color: white;
    transform: scale(1.05);
}

.textarea-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.code-editor {
    flex-grow: 1;
    background-color: #111111 !important;
    border-radius: 6px;
    overflow: auto;
    border: 1px solid #333;
    box-shadow: inset 0 0 5px rgba(255, 0, 100, 0.1);
    color: #fff;
    font-size: 14px;
}

/* Scrollbar */
.code-editor::-webkit-scrollbar { width: 8px; height: 8px; }
.code-editor::-webkit-scrollbar-track { background: #1e1e1e; }
.code-editor::-webkit-scrollbar-thumb { background: #ff007f; border-radius: 4px; }
.code-editor::-webkit-scrollbar-thumb:hover { background: #ff99bb; }

/* ===== Floating Widget ===== */
.widget-toggle {
    position: fixed;
    bottom: 25px;
    right: 10px;
    background-color: #ff0055;
    color: white;
    font-size: 20px;
    padding: 12px 16px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.6);
    transition: 0.3s ease;
}
.widget-toggle:hover { background-color: #ff3366; transform: scale(1.1); }

.widget-actions {
    position: fixed;
    bottom: 80px;
    right: 10px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    background-color: #1c1c1e;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 100, 0.3);
    transition: all 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.widget-actions button,
.widget-actions a,
.widget-actions select,
.widget-actions label {
    background: linear-gradient(to right, #9900ff, #ff0055);
    border: none;
    color: white;
    padding: 10px 15px;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}
.widget-actions select { background: #292929; border: 1px solid #ff0055; }
.widget-actions label { background: transparent; padding: 5px; cursor: default; font-size: 12px; }
.widget-actions button:hover,
.widget-actions a:hover {
    background: linear-gradient(to right, #ff0055, #9900ff);
    transform: scale(1.05);
}