.react-resizable {
  position: relative;
}
.react-resizable-handle {
  position: absolute;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-origin: content-box;
  box-sizing: border-box;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+);
  background-position: bottom right;
  padding: 0 3px 3px 0;
}
.react-resizable-handle-sw {
  bottom: 0;
  left: 0;
  cursor: sw-resize;
  transform: rotate(90deg);
}
.react-resizable-handle-se {
  bottom: 0;
  right: 0;
  cursor: se-resize;
}
.react-resizable-handle-nw {
  top: 0;
  left: 0;
  cursor: nw-resize;
  transform: rotate(180deg);
}
.react-resizable-handle-ne {
  top: 0;
  right: 0;
  cursor: ne-resize;
  transform: rotate(270deg);
}
.react-resizable-handle-w,
.react-resizable-handle-e {
  top: 50%;
  margin-top: -10px;
  cursor: ew-resize;
}
.react-resizable-handle-w {
  left: 0;
  transform: rotate(135deg);
}
.react-resizable-handle-e {
  right: 0;
  transform: rotate(315deg);
}
.react-resizable-handle-n,
.react-resizable-handle-s {
  left: 50%;
  margin-left: -10px;
  cursor: ns-resize;
}
.react-resizable-handle-n {
  top: 0;
  transform: rotate(225deg);
}
.react-resizable-handle-s {
  bottom: 0;
  transform: rotate(45deg);
}
html, body, #app {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #1b1b1d;
  color: #fff;
}

/* Dark scrollbar styles */
* {
  scrollbar-width: thin;
  scrollbar-color: #404040 #1a1a1a;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.monaco-editor .parameter-hints-widget .signature .code {
  font-family: "monaco" !important;
}


*::-webkit-scrollbar-track {
  background-color: #1a1a1a !important;
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
  background-color: #404040 !important;
  border-radius: 4px;
  border: 1px solid #2a2a2a;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #505050 !important;
}

*::-webkit-scrollbar-thumb:active {
  background-color: #606060 !important;
}

*::-webkit-scrollbar-corner {
  background-color: #1a1a1a !important;
}

/* Force dark color scheme */
html {
  color-scheme: dark;
}

body {
  color-scheme: dark;
}

.currentPageKeyword {
  color: #8c7cff !important;
  font-weight: bold !important;
}

/* Target specific scrollable elements */
div[class*="MuiBox"], 
.main-content,
.navigation-bar-content,
textarea,
pre,
code {
  scrollbar-width: thin;
  scrollbar-color: #404040 #1a1a1a;
}

div[class*="MuiBox"]::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.navigation-bar-content::-webkit-scrollbar,
textarea::-webkit-scrollbar,
pre::-webkit-scrollbar,
code::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

div[class*="MuiBox"]::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track,
.navigation-bar-content::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track,
pre::-webkit-scrollbar-track,
code::-webkit-scrollbar-track {
  background-color: #1a1a1a !important;
  border-radius: 4px;
}

div[class*="MuiBox"]::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb,
.navigation-bar-content::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb,
code::-webkit-scrollbar-thumb {
  background-color: #404040 !important;
  border-radius: 4px;
  border: 1px solid #2a2a2a;
}

.container {
  /* display: flex; */
  height: 100vh;
  overflow: hidden;
}

.navigation-bar {
  width: calc(100vw / 10);
  max-width: 220px;
  height: 100vh;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
}

.navigation-bar-content {
  flex: 1;
  padding: 10px;
  box-sizing: border-box;
}

.navigation-bar-header {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}

.navigation-bar-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.navigation-bar-item {
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  margin-bottom: 5px;
  transition: background-color 0.3s ease;
}

.navigation-bar-item:hover {
  background-color: #e9ecef;
}

.main-content {
  flex: 1;
  padding: 10px;
  box-sizing: border-box;
  overflow: auto;
  justify-content: center;
  align-items: center;
  position: relative;
}

.download-button, .export-button {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.download-button:hover, .export-button:hover {
  background-color: #0056b3;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.dropdown-content button {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.dropdown-content button:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.mermaid-container {
  display: flex;
  justify-content: center;
  align-items: baseline;
  width: 100%;
  background-color: #fafafa;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  box-sizing: border-box;
}

.navigation-buttons{
  transform: translate(-400px, -300px);
}

.MuiTouchRipple-root {
  display: none;
}

#title:hover {
  color: #a94fd8 !important
}
