/* construct3-theme.css */

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", "Noto Sans", Arial, sans-serif;
  background: #1e1e1e;
  color: #e0e0e0;
  overflow: hidden;
}

#container {
  padding: 4px;
}

/* Split.js Gutter Styling */
.gutter {
  background-color: #1e1e1e;
  background-repeat: no-repeat;
  background-position: 50%;
  transition: background-color 0.1s ease;
}

.gutter:hover {
  background-color: #2d2d2d;
}

.gutter.gutter-horizontal {
  cursor: col-resize;
}

.gutter.gutter-vertical {
  cursor: row-resize;
}

/* Split Container */
.split-container {
  display: flex;
  width: 100%;
  height: 100%;
}

.split-pane {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.split-vertical {
  display: flex;
  flex-direction: row;
}

.split-vertical-right {
  display: flex;
  flex-direction: column;
}

/* Panel Styles (Construct 3 style) */
.editor-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
}

.panel-header {
  background: #3c3c3c;
  color: #ffffff;
  padding: 0 12px;
  height: 32px;
  line-height: 32px;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid #2a2a2a;
  box-shadow: 0 1px 0 rgba(0,0,0,0.3);
  flex-shrink: 0;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  flex: 0 0 auto;
}

.panel-menu-bar {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.panel-menu-item {
  background: transparent;
  border: 1px solid transparent;
  color: #e0e0e0;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s ease;
  height: 24px;
  line-height: 14px;
}

.panel-menu-item:hover {
  background: #4a4a4a;
  border-color: #555;
}

.panel-menu-item:active {
  background: #353535;
  border-color: #444;
}

.panel-menu-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.panel-menu-item:disabled:hover {
  background: transparent;
  border-color: transparent;
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #2b2b2b;
  padding: 8px;
}

.panel-content h2 {
  color: #b8b8b8;
  font-size: 14px;
  font-weight: 500;
}

/* Zoom overlay in designer */
.zoom-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #e0e0e0;
  padding: 4px 10px;
  font-size: 11px;
  font-family: "Open Sans", "Noto Sans", Arial, sans-serif;
  border-radius: 3px;
  pointer-events: none;
  user-select: none;
  z-index: 1000;
}

/* jstree styling */
#assetTree {
  background: #2a2a2a;
  color: #fff;
  border: none;
  font-family: "Open Sans", "Noto Sans", Arial, sans-serif;
  font-size: 12px;
  padding: 0.5em 0.2em;
  overflow-x: hidden;
}
.jstree-default .jstree-anchor {
  color: #fff !important;
  background: transparent;
  border-radius: 3px;
  padding: 2px 6px;
}

/* node hover and click */
.jstree-default .jstree-clicked {
  background: #353b4a !important;
  color: #fff !important;
  min-height: 24px;
  line-height: 24px;
  align-items: center;
}
.jstree-default .jstree-hovered {
  background: #353536 !important;
  color: #fff !important;
}

/* whole-row hover and click */
.jstree-default .jstree-wholerow-clicked {
  background: none !important; /* Change to your desired color or 'none' to hide */
}
.jstree-default .jstree-wholerow-hovered {
  background: none !important; /* Change to your desired color or 'none' to hide */
}


.jstree-default .jstree-icon {
  filter: brightness(1.2) grayscale(0.2);
}
.jstree-default .jstree-node {
  margin-left: 8px;
}
.jstree-default .jstree-children {
  margin-left: 12px;
}
.jstree-default .jstree-anchor .star {
  color: #ffe066;
  margin-right: 4px;
  font-size: 16px;
  vertical-align: middle;
}
.jstree-default .jstree-anchor .folder {
  color: #b0b0b0;
  margin-right: 4px;
  font-size: 15px;
  vertical-align: middle;
}
.jstree-default .jstree-anchor .file {
  color: #808080;
  margin-right: 4px;
  font-size: 15px;
  vertical-align: middle;
}
.jstree-default .jstree-anchor img {
  height: 12px !important;
  width: auto !important;
  max-width: 18px !important;
  margin-right: 6px;
  vertical-align: middle;
  object-fit: contain;
  display: inline-block;
}
.jstree-default .custom-folder-icon {
  background-image: url('../assets/icons8-folder2.svg');
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center left;
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}
