@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

body {
  margin: 0;
  padding: 0;
  background-color: #212429;
}

.content {
  display: flex;
  width: 100%;
  height: 100vh;
  padding-top: 10vh;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #212429;
  position: relative;
  gap: 10%;
}

.slider_container {
  display: flex;
  color: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  width: 45%;
  height: 100%;
}

.option_tabs {
  width: 100%;
  height: 60px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.slider_content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 450px;
  height: 500px;
  border-radius: 40px;
  background-color: #263a4a42;
}
.canvas_container {
  width: 45%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.grobot_eyes {
  padding: 10px;
  background: #2b3038;
  zoom: 1.25;
  border-radius: 2rem;
  display: flex;
  box-shadow: 0px 2px 20px #0000003c;
}
.export-zone {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

.input_field {
  width: 400px;
  height: 100px;
  border-radius: 8px;
  background: #00000032;
  border: 5px solid #2c3138;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  padding: 10px;
  font-size: 12px;
  resize: none;
  outline: none;
}
.input_field:focus {
  border: 5px solid #303d60;
}

.button_area {
  margin-top: 20px;
  width: 430px;
  display: flex;
  justify-content: space-between;
}
.task_button {
  margin: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 60px;
  background: #3746633e;
  border-radius: 25px;
  color: #b9b9b9;
  font-weight: 500;
  font-size: 20px;
  font-family: sans-serif;
  cursor: pointer;
  transition: 0.2s all;
}

.material-symbols-outlined {
  font-size: 24px;
  height: 28px;
  width: 28px;
  vertical-align: middle;
}

.task_button:hover {
  background: #3e81ff;
  color: #0a3686;
}

.btn-active {
  border: 1px solid #3e81ff;
  background: transparent;
  color: #3e81ff;
}

.slider_card {
  width: 410px;
  height: 50px;
  margin: 5px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  border-radius: 2rem;
  transition: 0.2s all;
}
.custom {
  color: #51b6f5;
}

.oppositeY {
  transform: scaleY(-1);
}
.oppositeX {
  transform: scaleX(-1);
}

.normal_icon {
  width: 40px;
  height: 40px;
  padding: 5px;
  transition: 0.1s all;
}
.normal_icon:active {
  border-radius: 10px;
  background-color: #2b3038;
}

.smaller_icon {
  width: 48px;
  height: 48px;
  padding: 1px;
  transition: 0.1s all;
}

.smaller_icon:active {
  border-radius: 10px;
  background-color: #2b3038;
}

.gb-icon {
  opacity: 0.5;
  filter: grayscale(1);
  cursor: pointer;
  padding: 5px 10px;
  margin: 0px 5px;
  background-color: #d9d9d90b;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}
.custom {
  pointer-events: auto;
}
.custom use {
  pointer-events: none;
}
.btn_grp {
  background-color: #00375e;
  font-size: 20px;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  margin: 10px;
  color: #51b6f5;
  border-radius: 25px;
}
.slider_card,
.slider,
.custom {
  touch-action: manipulation;
}

.tab_btn {
  background: #0f1c2a;
  height: 40px;
  padding: 5px 40px;
  color: #7f8c8d;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 24px;
}
.tab_btn:nth-child(1){
  border-radius: 20px 3px 3px 20px;
}
.tab_btn:nth-last-child(1){
  border-radius: 3px 20px 20px 3px;
}
.tab_btn.active {
  background: #00375e; /* Slightly lighter */
  color: #3498db; /* That nice Blue color from your image */
}

input[type="radio"]:checked + .gb-icon {
  opacity: 1;
  filter: grayscale(0);
  color: #51b6f5;
}

input[type="radio"] {
  display: none;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 70%;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  background: #1444a3ac;
  border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  background: #ccc;
  margin-top: -10px;
  cursor: pointer;
  border: 2px solid #1b1f13;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background: #000000;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-weight: bold;
  font-size: 15px;
  font-weight: 400;
  font-family: "IBM Plex Mono";
  animation:
    slideUp 0.3s ease-out,
    fadeOut 0.3s ease-in 2.5s forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@media (max-width: 1000px) {
  .content {
    padding-top: 5vh;
    gap: 5%;
  }
  .canvas_container,
  .slider_container {
    width: 47%;
  }
  .presets_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .slider_content {
    width: 90%;
    max-width: 450px;
    height: 70%;
    padding: 10px 0;
  }

  .slider_card {
    width: 100%;
    max-width: 410px;
    max-height: 50px;
  }
  .export-zone {
    width: 330px;
  }

  .input_field {
    width: 90%;
    max-width: 330px;
  }
  .button_area {
    width: 100%;
    max-width: 330px;
  }

  .grobot_eyes {
    zoom: 1;
    max-width: 90%;
  }
  .task_button {
    padding: 8px 30px;
  }
}

@media (max-width: 600px) {
  .content {
    flex-direction: column-reverse;
    height: auto;
    overflow: visible;
    padding-top: 10px;
    padding-bottom: 50px;
    gap: 0;
  }
  .btn-text {
    display: none;
  }

  .slider_container,
  .canvas_container {
    width: 100%;
    height: auto;
    align-items: center;
    margin-top: 20px;
  }

  .export-zone {
    width: 95vw;
    max-width: 300px;
    margin-top: 20px;
    flex-direction: row;
  }
  
  .task_button,
  .task_button.compact {
    padding: 10px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
  }

  .input_field {
    width: 70%;
    height: 10vh;
    font-size: 12px;
  }

  .slider_content {
    width: 80%;
  }

  .presets_grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 15px 10px;
    gap: 10px;
  }
  
  .preset_actions {
    padding: 0 10px;
  }

  .modal_box {
    width: 90%;
    max-width: 300px;
  }

  .button_area {
    width: 20%;
    flex-direction: column;
    margin: 0;
    display: inline-flex;
    align-items: last baseline;
  }
  .grobot_eyes {
    zoom: 0.9;
  }
}

/* Modals and Dynamic Vue UI Components */
.app-inner-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.slider_content.presets_content {
  align-items: stretch;
  justify-content: flex-start;
}

.presets_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 25px 20px;
  overflow-y: auto;
  width: 100%;
  box-sizing: border-box;
  max-height: calc(100% - 70px);
}

.preset_card {
  background: #10151c;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: 0.2s;
}

.preset_card.selected {
  border-color: #0b2241;
}

.preset_checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #51b6f5;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(16, 21, 28, 0.8);
  z-index: 10;
  transition: 0.2s;
}

.preset_checkbox.selected {
  background: #00375e;
  border-color: #00375e;
}

.check_icon {
  font-size: 14px;
  color: #51b6f5;
  font-weight: bold;
}

.preset_image {
  width: 100%;
  height: 75px;
  object-fit: cover;
  background: #040608;
  border-bottom: 1px solid #1c2633;
}

.preset_name {
  color: #3e81ff;
  text-align: center;
  padding: 10px 0;
  font-family: sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.preset_actions {
  display: flex;
  gap: 15px;
  margin-top: auto;
  margin-bottom: 25px;
  width: 100%;
  padding: 0 25px;
  box-sizing: border-box;
  justify-content: center;
}

.preset_delete_btn {
  border: none;
  cursor: pointer;
  flex: 1;
  margin: 0;
  transition: 0.2s;
}

.disabled_delete {
  opacity: 0.5;
  pointer-events: none;
}

.preset_add_btn {
  border: none;
  cursor: pointer;
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 20px;
}

.task_button.compact {
  padding: 8px 15px;
}

.modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal_box {
  background: #141b25;
  padding: 25px;
  border-radius: 12px;
  border: 2px solid #51b6f5;
  text-align: center;
  width: 300px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal_title {
  color: #51b6f5;
  font-family: sans-serif;
  margin-top: 0;
}

.modal_input {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  background: #040608;
  border: 1px solid #3e81ff;
  color: #fff;
  border-radius: 6px;
  font-family: 'IBM Plex Mono';
  margin-bottom: 25px;
  outline: none;
}

.modal_actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal_btn {
  padding: 8px 20px;
  font-size: 16px;
}
