#edgeExplorerApp {
  width: 900px;
  height: auto;
  border: 2px solid #a1887f;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
  background-color: #f5f5f5;
  box-sizing: border-box;
}

#edgeExplorerApp header {
  background: #bcaaa4;
  color: #3e2723;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: bold;
}


#edgeExplorerApp header button {
  background: #8d6e63;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
#edgeExplorerApp .main-container {
  display: flex;
  padding: 16px;
  flex: 1 1 auto;
  gap: 16px;
  overflow: hidden;
}

#edgeExplorerApp .editor-section {
  flex: 1;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

#edgeExplorerApp header button:hover {
  background-color: #6d4c41;
}

/* Code cell */
#edgeExplorerApp .code-cell {
  background: #272822;
  padding: 10px;
  border-radius: 6px;
  color: white;
  display: flex;
  flex-direction: column;
  height: auto;
  box-sizing: border-box;
}

#edgeExplorerApp .cell-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  flex-shrink: 0;
}

#edgeExplorerApp .cell-main {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  overflow: hidden;
}

#edgeExplorerApp .right-panel button {
  width: 100%;
  padding: 8px 12px;
  background-color: #f9f9f9;
  color: #333;
  border: 1px solid #999;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#edgeExplorerApp .right-panel button:hover {
  background-color: #e6e6e6;
  border-color: #777;
}

#edgeExplorerApp .CodeMirror {
  height: 100% !important;
  font-size: 13px;
  flex: 1;
  border-radius: 4px;
}

#edgeExplorerApp .output {
  background: #111;
  color: #0f0;
  padding: 10px;
  border-radius: 4px;
  margin-top: 10px;
  white-space: pre-wrap;
  min-height: 40px;
  font-family: monospace;
  overflow-y: auto;
  height: auto;
  user-select: text;
}

#edgeExplorerApp .image-output {
  margin-top: 10px;
  height: auto;
  overflow: auto;
}

#edgeExplorerApp .image-output img {
  max-width: 100%;
  border-radius: 4px;
  display: block;
}

#edgeExplorerApp .hidden {
  display: none;
}

#edgeExplorerApp .right-panel {
  width: 220px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#edgeExplorerApp .right-panel button {
  width: 100%;
  padding: 8px;
  background-color: #fff;
  color: black;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}

#edgeExplorerApp .file-list div {
  background: #eee;
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
  word-break: break-word;
  font-size: 14px;
}

.cell-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 0;
}

.cell-toolbar button {
  width: 32px;
  height: 32px;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.cell-toolbar button:hover {
  background-color: #555;
}

@media (max-width: 1024px) {
  #edgeExplorerApp {
    width: 100%;
    border-radius: 0;
  }

  #edgeExplorerApp .main-container {
    flex-direction: column;
    padding: 12px;
  }

  #edgeExplorerApp .right-panel {
    width: 100%;
    order: -1; /* pindahkan ke atas di mode mobile/tablet */
  }

  #edgeExplorerApp .editor-section {
    width: 100%;
  }

  #edgeExplorerApp header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  #edgeExplorerApp header {
    font-size: 14px;
    padding: 8px;
  }

  #edgeExplorerApp header button {
    padding: 6px 10px;
    font-size: 12px;
  }

  #edgeExplorerApp .right-panel button {
    font-size: 14px;
  }

  #edgeExplorerApp .file-list div {
    font-size: 13px;
  }

  .cell-toolbar {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .cell-toolbar button {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}
