
.marking-widget-panel {
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  width: 20%;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  margin: 0px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-right: unset;
  justify-content: space-between;
  min-height: 0;
}

.marking-widget-canvas-holder {
  width: 80%;
}

.marking-widget-block-hint {
    padding: 8px 12px;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
    font-weight: 500;
    text-align: center;
}

.marking-widget-elements-panel {
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  width: 15%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  margin-top: 10px;
  border-radius: 15px;
  margin: 0px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-left: unset;
  align-items: center;
  overflow-y: scroll;
}

.marking-widget-element-button {
  margin: 5px;
  width: calc(100% - 10px);
  display: flex;
  flex-direction: row;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 15px;
  height: 40px;
  min-height: 40px;
}

.marking-widget-element-button.active {
  border: 3px solid #ccc;
}

.marking-widget-element-button-text {
  display: flex;
  align-items: center;
  padding-right: 10px;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.marking-widget-labels-panel {
  padding: 0;
  margin: 0px 5px 5px 5px;
  justify-content: start;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  background-color: #ffffff;
  overflow-y: scroll;
}

.marking-widget-actions-panel {
  padding: 10px;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  background-color: #ffffff;
}

.marking-widget-info-panel {
  justify-content: start;
  padding: 10px;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  background-color: #ffffff;
}

.marking-widget-label-description {
  min-height: 20%;
  padding: 15px 10px;
  margin: 5px 5px;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  border: 1px solid #ccc;
  overflow: scroll;
  font-size: 14px;
  color: #333;
}

.marking-widget-element-settings {
  min-height: 20px;
  max-height: 30%;
  padding: 15px 5px;
  margin: 5px 5px;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  border: 1px solid #ccc;
  overflow: scroll;
  user-select: unset;
  -o-user-select: text;
  -moz-user-select: text;
  -webkit-user-select: text;
  user-select: text;
}

.marking-widget-mask-settings-panel-width-setting {
  display: flex;
  flex-direction: row;
  border-radius: 15px;
  overflow: scroll;
  user-select: unset;
  -o-user-select: text;
  -moz-user-select: text;
  -webkit-user-select: text;
  user-select: text;
}

.marking-widget-mask-settings-panel-width-value {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

.marking-widget-json-output {
  min-height: 20px;
  max-height: 30%;
  padding: 15px 5px;
  margin: 5px 5px;
  /* display: flex; */
  display: none;
  flex-direction: column;
  border-radius: 15px;
  border: 1px solid #ccc;
  overflow: scroll;
  user-select: unset;
  -o-user-select: text;
  -moz-user-select: text;
  -webkit-user-select: text;
  user-select: text;
}

.marking-widget-label-button {
  margin: 5px 0px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 0px 0px 0px 15px;
  border: 1px solid #ccc;
  border-radius: 15px;
  height: 40px;
  min-height: 40px;
}

.marking-widget-label-button.active {
  border: 3px solid #ccc;
}

.marking-widget-label-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin: 5px;
  padding: 5px;
  width: 10%;
}

.marking-widget-display-actions-panel {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  border: 1px solid #ccc;
  border-radius: 15px;
  padding: 5px;
  margin: 5px;
  margin-top: auto;
  margin-bottom: 15px;
}

.marking-widget-label-color {
  width: 10%;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin: 5px;
  padding: 5px;
}

.marking-widget-label-num {
  color: #484848;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 10%;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin: 5px;
  padding: 5px;
}

.marking-widget-label-text {
  width: 60%;
  color: #484848;
  font-size: 14px;
  align-content: center;
  text-align: start;
}

.marking-widget-display-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  background: #f5f5f5;
  margin: 4px 0;
  flex: 0 1 auto;
  min-width: fit-content;
  white-space: nowrap;
  width: auto;
}

.marking-widget-element-button:hover,
.marking-widget-label-button:hover,
.marking-widget-display-button:hover {
  background-color: #e0e0e0;
}

.marking-widget-display-button-icon {
  width: 16px;
  height: 16px;
}


.marking-widget-display-button-text {
  font-size: 12px;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.marking-widget-display-button-hotkey {
  font-size: 10px;
  color: #666;
  padding: 2px 6px;
  background: #e0e0e0;
  border-radius: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.marking-widget-icon {
  font-size: 16px;
  color: #666;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marking-widget-tooltip {
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: pre-line;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  max-width: 320px;
  pointer-events: none;
  position: absolute;
  left: 0%;
  top: 5%;
  margin-top: 6px;;
}


/* dark mode styles */

.skin-hop-dark .marking-widget-panel,
.skin-hop-dark .marking-widget-elements-panel,
.skin-hop-dark .marking-widget-element-button,
.skin-hop-dark .marking-widget-labels-panel,
.skin-hop-dark .marking-widget-actions-panel,
.skin-hop-dark .marking-widget-info-panel {
  background-color: #ddd;
}

.skin-hop-dark .marking-widget-element-button,
.skin-hop-dark .marking-widget-label-button,
.skin-hop-dark .marking-widget-label-description {
  background-color: #f5f5f5;
}

.skin-hop-dark .marking-widget-element-button:hover,
.skin-hop-dark .marking-widget-label-button:hover,
.skin-hop-dark .marking-widget-display-button:hover {
  background-color: #e9e9e9;
}
