/* ===================================== */
/* FONT FACES */
/* ===================================== */

@font-face {
  font-family: 'TT Hoves Pro Medium';
  src: url('./font/TT_Hoves_Pro_Medium.woff2') format('woff2');
  font-weight: normal;
}

/* @font-face {
  font-family: 'TT Hoves Pro Regular';
  src: url('../../fonts/tt_hoves_pro_trial_regular.woff') format('woff');
  font-weight: normal;
} */

/* ===================================== */
/* ROOT VARIABLES */
/* ===================================== */

:root {
  --color-primary: var(--color-black);
  --color-accent: var(--color-grey);
  --color-accent-grey: var(--color-grey2);
  --color-accent-variant: var(--color-lightgrey);
  --color-background: var(--color-white);
  --color-brand: var(--color-lime);

  --color-black: #1f1f1f;
  --color-grey: #a0a0a0;
  --color-grey2: #dedede;
  --color-lightgrey: #efefef;
  --color-white: #fcfcfc;
  --color-lime: #aff7a1;
}

/* ===================================== */
/* RESET + GLOBAL ELEMENTS */
/* ===================================== */

a {
  color: inherit;
  text-decoration: none;
}

/* ===================================== */
/* BASIC LAYOUT FOR BODY & CANVAS CONTAINER */
/* ===================================== */
body {
  margin: 0;
  padding: 0;
  font-family: 'TT Hoves Pro Medium', sans-serif;
  background-color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#canvas-container {
  width: 100%;
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  background-color: #d8d8d8;
}

#dotCanvas {
  display: block;
}

.main-container {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 250px;
  border: 6px solid var(--color-brand);
  background-color: var(--color-accent);
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 8px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.section {
  background-color: var(--color-lightgrey);
  padding: 10px;
  border-radius: 8px;
}

/* Removed export-specific styles */

/* ===================================== */
/* SECTION + COLLAPSE UI */
/* ===================================== */

.collapse-circle {
  width: 24px;
  height: 24px;
  background-color: var(--color-brand);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-primary);
  margin-left: auto;
  cursor: pointer;
  user-select: none;
}

.collapse-circle img {
  width: 14px;
  height: 14px;
  display: block;
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-label,
.speed-value,
.tool-note {
  color: var(--color-grey);
  font-size: 1rem;
}

/* ===================================== */
/* MINI-BOX STYLES */
/* ===================================== */
textarea.mini-box {
  border: none; /* Remove default border */
  outline: none; /* Remove outline when focused */
  background-color: var(--color-grey2);
  resize: none; /* Disable manual resizing corner */
  width: 100%;
  height: 100%;
  padding: 6px 10px; /* Add some internal padding */
  box-sizing: border-box; /* Let padding work as intended */
  border-radius: 6px; /* Match the mini-box corner radius */
  font-size: 14px; /* Inherit styling from your UI */
  font-family: inherit; /* Keep fonts consistent */
  color: var(--color-black);
}

/* Apply mini-box styling to both textareas and color inputs */
.mini-box {
  width: 100%;
  height: 32px;
  border-radius: 6px;
  background-color: var(--color-grey2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-top: 6px;
  font-size: 14px;
}

/* Style color inputs to fill their parent .mini-box */
.mini-box input[type='color'] {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border-radius: 6px;
}

/* Removes the default color picker border on WebKit browsers */
.mini-box input[type='color']::-webkit-color-swatch-wrapper {
  padding: 0;
}

.mini-box input[type='color']::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

/* Firefox */
.mini-box input[type='color']::-moz-color-swatch {
  border: none;
  border-radius: 6px;
}

/* ===================================== */
/* GRID AND LAYOUT STYLES */
/* ===================================== */
.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.grid-item {
  display: flex;
  flex-direction: column;
}

.toggle-row,
.speed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===================================== */
/* SWITCH / TOGGLE STYLES */
/* ===================================== */
.switch {
  position: relative;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-accent);
  border-radius: 20px;
  transition: 0.4s;
  box-shadow: none;
}

.slider:before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-white);
  border-radius: 50%;
  transition: 0.4s;
  box-shadow: none;
}

.switch input:checked + .slider {
  background-color: var(--color-brand);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* ===================================== */
/* SPEED BAR STYLES */
/* - Styles for the range input (speed bar) including custom slider thumbs and tracks */
/* ===================================== */
.speed-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--color-accent);
  border-radius: 4px;
  outline: none;
  margin: 0 12px;
}

.speed-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--color-brand);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.speed-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.speed-bar::-moz-range-track {
  background: var(--color-accent);
  height: 6px;
  border-radius: 4px;
}

/* ===================================== */
/* ROW SET STYLES */
/* - Additional styling for vertically aligned row sets */
/* ===================================== */
.row-set {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main-container.collapsed .content-area {
  display: none;
}

/* ===================================== */
/* HEADER STYLES */
/* - Styles for the header menu including logo, navigation items, and hamburger menu */
/* ===================================== */
.header {
  display: flex;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  position: fixed;
  align-items: center;
  overflow: hidden;
  background: var(--color-accent);
  border-radius: 8px;
  height: 52px;
  transition: width 0.4s ease-in-out;
  z-index: 1001;
}

.header-logo {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-variant);
  border: 6px solid var(--color-accent);
  border-radius: 10px;
  padding: 8px 12px;
  z-index: 3;
}

.header-logo img {
  display: block;
  height: 24px;
}

.inside {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.inside ul {
  display: flex;
  list-style: none;
  margin: 0px;
  padding: 0px;
}

.header-item {
  font-family: 'TT Hoves Pro Medium', sans-serif;
  font-size: 1.5rem;
  color: var(--color-accent-variant);
  margin-right: 10px;
  margin-left: 25px;
  transform: translateY(1px);
}

.header-button {
  display: flex;
  padding-right: 15px;
  padding-left: 15px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.hamburger img {
  display: block;
  width: 25px;
  height: 25px;
}
