/* launchParent HAS LAUNCH BUTTON AND ICONS CSS */
#launchParent {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

    min-width: 560px;
    height: 60px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 8px 8px;
    border-radius: 40px;

    background: #FFFFFF; /* or whatever your background is */
    box-shadow: 1px 1px 8px rgba(0,0,0,0.45);
    /* margin-left: 10rem; */
    /* margin: 5px; */
    
}

.launch-btn {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 148.5px;
    height: 50px;
    /* padding: 0 16px; */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #6DA51A;     /* Or your Figma green – adjust if needed */
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: "M PLUS 1", sans-serif;
    font-weight: 500;         /* Medium */
    font-size: 20px;
    line-height: 28px;
    cursor: pointer;
    transition: 0.2s ease;
    /* box-shadow: 3px 3px 0px #00000030; */
}

.launch-btn:hover {
    background: #649208 !important;   /* Green shade 5 */
    border: 1px solid #FFFFFF !important;
    /* 🔥 Inner shadow */
    box-shadow:
        inset 0 0 10px 0px #002346;  /* ✅ EXACT figma */
    transform: translateY(0px);   /* Small lift – same as your style */
}
#footer-2 {
    /* min-width: 410px; */
    display: flex;
    align-items: center;
    gap: 12px;          /* ← control spacing here */
}
#footer-2 svg {
    cursor: pointer;
    pointer-events: all;
}
.footer-icon-btn {
    cursor: pointer;
    user-select: none;

    transition: transform 200ms ease;
}
/* OUTER BORDER (rect) */
.footer-icon-btn rect {
    transition: stroke 300ms ease, fill 300ms ease;
    fill: transparent;
}
/* ICON PATH */
.footer-icon-btn path {
    transition: fill 300ms ease;
}
/* HOVER STATE */
.footer-icon-btn:hover rect {
    stroke: #004F9E;                    /* violet border */
    fill: rgba(106, 90, 205, 0.12);     /* soft inner glow */
}

.footer-icon-btn:hover path {
    fill: #004F9E;                      /* icon turns violet */
}
/* Reset icon: do NOT fill paths */
#zoomResetBtn:hover path {
    fill: none !important;
    stroke: #004F9E;
}

/* THIS CSS STYLES IS FOR MENUS OPTIONS IN NAVBAR (files,feedback,settings,tutorials,help) */
.custom-menu-bar {
    /* display: flex; */
    /* position: relative;  */
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999; 
    /* margin-left: 40px;  */
    margin-left: 2rem;   /* base */
    flex-wrap: nowrap;   /* keep in one line */
  }

  .custom-menu-bar .dropbtn {
    appearance: none;
    -webkit-appearance: none;
    font-family: "1M PLUS",  sans-serif;;
    min-width: 55px;
    min-height: 29px;
    background-color: transparent;
    border: 2px solid #1E1E1E;
    padding: 4px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 0px;
    margin-left: 0px;
    color: black;
    Font-size: 13px;
    font-weight: 500;
    line-height: 21px;        /* Figma typography line-height */
    transform-origin: center; /* stops shifting */
}
  
   .custom-menu-bar .dropdown {
    position: relative;
    display: inline-block;
   /* margin-left: 1.25rem; */
  margin-left: clamp(1.3rem, 0.9vw, 1.5rem);
}


.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 180px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  border-radius: 12px;
  pointer-events: auto;
}
  
.dropdown-content.show {
  min-width: 231px;
  padding: 8px 0;
  display: block;
  pointer-events: auto;
  z-index: 9999;
  margin-top: 1.5rem;
  border: 2px solid #A7A7A7;
}

.dropdown-content a {
  color: rgb(20, 20, 20);
  padding: 12px 24px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  font-weight: 400;
  box-sizing: border-box;
  position: relative;
  border-bottom: 1px solid #E7EAEE; /* Border for all items */
}

.dropdown-content a::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 8px;
  right: 8px;
  bottom: 2px;
  background-color: transparent;
  border-radius: 4px;
  z-index: -1;
  transition: background-color 0.15s ease;
}

.dropdown-content a:hover::before {
  background-color: #DDF9CC;
}

/* Full Screen - fixed width to prevent shrinking */
#fullscreenToggle {
  border-bottom: none;
  min-width: 180px;
  height: 45.8px; /* Match other items */
}

/* HR styling */
#drop-hr {
  margin: 12px 8px;
  border: 0;
  border-top: 2px solid #E7EAEE;
  opacity: 1;
}

/* Last item (Exit) - no border */
.dropdown-content a:last-child {
  border-bottom: none;
}

.dropbtn:hover {
  background: #FFFFFF;
  color: black;
  border: 2px solid transparent;
  border-radius: 16px;
  background-image:
    linear-gradient(#FFFFFF, #FFFFFF), 
    linear-gradient(180deg, #649208 0%, #B4D647 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 3px 3px 0px #00000040;
}

.tut-disabled-btn {
  background-color: #A7A7A7 !important;
  border: 1.5px solid #5D6068 !important;
  color: white !important;
  border-radius: 16px !important;
  cursor: not-allowed !important;
  opacity: 1;
  pointer-events: auto;
}

.tut-disabled-btn:hover {
  background-color: #A7A7A7 !important;
  border-color: #5D6068 !important;
  color: white !important;
  transform: none !important;
  box-shadow: none !important;
  background-image: none !important;
}


/* .tut-disabled-btn {
    background-color: #A7A7A7 !important;  
    border: 1.5px solid #5D6068 !important; 
    color: white !important;

    border-radius: 16px !important;
    cursor: not-allowed !important;

    opacity: 1;              
    pointer-events: auto; 
    cursor: not-allowed !important;
} */

/* Disable hover effect completely */
/* .tut-disabled-btn:hover {
    background-color: #A7A7A7 !important;
    border-color: #5D6068 !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
    background-image: none !important;
} */


/* DEFAULT */
/* OUTER WRAPPER (button container) */
.connect-btn-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 48px;
    transition: box-shadow 300ms ease-in-out, background 300ms ease-in-out;
    padding: 9px;
    border-radius: 48px;
    /* border: 2px solid black; */
}

/* TEXT ONLY (as per Figma text properties) */
.connect-label {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: "M PLUS 1", sans-serif;
    width: auto;
    height: 21px;
    font-size: 13px;
    font-weight: 500;
    font-style: normal;
    line-height: 21px;
    text-align: center;
    vertical-align: middle;
    color: #1E1E1E;
    opacity: 1;
}
.connect-btn-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* HOVER */
/* ADD this */
.connect-btn-wrapper:hover {
    background: #FFFFFF;
    box-shadow: 3px 3px 0px 0px #00000040;
    /* transition: all 300ms ease-in-out; */
}
/* ICON TOGGLE ONLY */
.connect-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-block;
}

/* BOTH SVGs */
.connect-icon svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    /* transition: opacity 300ms ease-in-out, transform 300ms ease-in-out; */
    transition:
        opacity 400ms ease-in-out,
        transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* DEFAULT */
.connect-icon svg:nth-child(1) {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.connect-icon svg:nth-child(2) {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
}

/* HOVER = PLUGGED */
.connect-btn-wrapper:hover .connect-icon svg:nth-child(1) {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
}

.connect-btn-wrapper:hover .connect-icon svg:nth-child(2) {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* OUTER CONTAINER (icon-toolbox-toggle) */
.icon-toolbox-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-top: 37px;
    margin-left: 1rem; */
    background: #B4D647; /* Green shade 4 */
}

/* BUTTON */
.toolbox-toggle-btn {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EDFFE8; /* Green shade 1 */
    border: none;
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    margin-top: 4.3rem;
    margin-left: 6rem;
}

/* SVG */
.toolbox-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* ICON COLOR */
.toolbox-toggle-btn svg path {
     fill: #6DA51A; /* darker green so it’s visible */
}

/* OPTIONAL: hover (Figma-style subtle) */
.toolbox-toggle-btn:hover {
    filter: brightness(0.96);
    background: #EDFFE8; /* Green shade 1 */
}

/* OUTER WHITE CARD */
.ask-ai-wrapper {
    min-width: 120px;
    height: 76px;
    display: flex;
    padding: 8px;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    background: #FFF;
    box-shadow: 1px 1px 8px rgba(12, 61, 0, 0.45);
    position: relative;
    overflow: hidden; /* IMPORTANT for shine clipping */
    /* margin: 5px; */
    margin-bottom: 0.6rem;
}

/* INNER BLUE PILL */
.ask-ai-container {
    display: flex;
    min-width: 110px;
    height: 60px;
    padding: 12px 16px;
    /* padding: 8px; */
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 40px;
    background: #004F9E;
}
/* Footer-safe AI button — clean, no background bleed */
.ask-ai-wrapper .ai-btn {
    position: relative !important;
    bottom: unset !important;
    right: unset !important;

    height: 60px;
    padding: 0;                 /* no extra area */
    background: transparent;    /* ensure fully transparent */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none;           /* ⬅️ THIS removes the visible background */
}
/* Shine layer — tuned for Ask AI (Figma accurate) */
.ask-ai-container::before {
    content: "";
    position: absolute;
    /* Match Figma slant rectangle */
    width: 22px;          /* ~21px in Figma */
    height: 80px;         /* ~78px in Figma */
    top: -10px;
    left: -60px;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%
    );
    transform: rotate(-31.5deg); /* Figma angle */
    opacity: 0.5;
    pointer-events: none;
    transition: left 0.8s ease-out;
}

/* Hover → left to right */
.ask-ai-container:hover::before {
    left: 110%;
}

/* Hover effect – Figma match */
.ask-ai-container:hover {
    border-radius: 40px;
    /* border: 0.1px solid var(--White-shade, #FFF); */
    background: var(--Dark-Blue-shade-1, #004F9E);
    box-shadow: 0 0 10px 4px #002346 inset;
}
/* Text */
.ai-text {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #FFF;
    font-family: "M PLUS 1", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    white-space: nowrap;
}

/* .fotter-adjustment{
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
} */

.ai-extention-text{
    min-width:80px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: "M PLUS 1", sans-serif;
    font-weight: 500;
}

/* Line between menu items ONLY till Full Screen */
/* .dropdown-content a:not(#fullscreenToggle) {
    border-bottom: 1px solid #E7EAEE;
    margin: 0px 8px;
} */

/* Remove line after Full Screen */
#fullscreenToggle {
    border-bottom: none;
}
#drop-hr{
    margin: 0.5rem 0;
    color: inherit;
    border: 0;
    border-top: 1.5px solid;
    opacity: .25;
}


/* FOR BOARD SELECTION DROPDOWN OPTIONS(ARDUINO, ESP,NANO,MEGA,ETC...)  */
  /* #boardSelect {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: "M PLUS 1", sans-serif;
    width: 140px;                 
    padding: 9px 20px;            
    font-size: 13px;              
    height: 48px;                 
    line-height: 1;               
    border-radius: 50px;           */
    /* border: 1px solid #ccc ; */
    /* background-color: #fff;*/
    /* outline: none;                */
    /* color: gray; */
    /* font-weight: 500; */
    /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 14px;
    border: none; */

    /* background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 2px;
    font-style: normal;

} */
/* 
 #boardSelect {
  display: none !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: "M PLUS 1", sans-serif;
  width: 140px;
  height: 48px;
  padding: 9px 20px;
  font-size: 13px;
  line-height: 21px;
  border-radius: 50px;
  outline: none;
  font-weight: 500;
  background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 2px;
  font-style: normal;
 } */

/* .board-select {
    padding: 8px 5px;
    border-radius: 10px;
    background: transparent;
    font-size: 13px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 170px;
    height: 30px;
    margin-right: 2px;
    font-family: "M PLUS 1";
    font-style: normal;
    font-weight: 500;
    line-height: 21px; 
} */
.board-select option {
    color: #1E1E1E !important;  /* Text color */
    background-color: white !important;  /* Background color */
    font-size: 14px;
    border-radius: 20px !important;
    font-family: "M PLUS 1";
    font-style: normal;
    font-weight: 500;
    line-height: 21px; /* 161.538% */
}
.board-select:hover, .board-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 1.5px black;
    transition: background-color 0.3s ease;
}
/* Wrapper (same size as old select) */
.custom-dropdown {
  width: 140px;
  height: 48px;
  position: relative;
  font-family: "M PLUS 1", sans-serif;
}

/* Main visible box (THIS = old select look) */
.selected {
  width: 100%;
  height: 100%;
  padding: 9px 48px 9px 16px; 

  display: flex;
  align-items: center;
  justify-content: center; /* 🔥 change this */
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 21px;

  border-radius: 50px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;

  /* Arrow */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8' fill='none'><path d='M14.75 0.75L7.75 6.75L0.75 0.75' stroke='%231E1E1E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
background-size: 16px 8px;

  padding-right: 25px; /* 🔥 important: keeps gap from arrow */

  white-space: nowrap;      /* ADD THIS */
  overflow: hidden;         /* ADD THIS */
  text-overflow: ellipsis;  /* ADD THIS (optional - shows ... if too long) */
}

/* Hover / focus effect (same as before) */
.custom-dropdown:hover .selected,
.custom-dropdown:focus-within .selected {
  box-shadow: 0 0 0 1.5px black;
}

/* Dropdown list */
.dropdown-list {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 230px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  border-radius: 12px;
  pointer-events: auto;
  margin-top: 1rem;
}

/* Show dropdown */
.dropdown-list.show {
  display: block;
  border: 2px solid #A7A7A7;
}
/* #languageMenu , .block-theme-arrow, .block-renderer-arrow{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: 
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8' fill='none'><path d='M14.75 0.75L7.75 6.75L0.75 0.75' stroke='%231E1E1E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 12px center,
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='2' height='28' viewBox='0 0 2 28'><path d='M0.75 0L0.75 28' stroke='%23A7A7A7' stroke-width='1.5'/></svg>") no-repeat right 40px center;
background-color: #FFFFFF;
} */
/* Items */
.item {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #1E1E1E;
  cursor: pointer;
  border-bottom: 1.5px solid #E7EAEE;
  position: relative;
}

/* Last item no border */
.item:last-child {
  border-bottom: none;
}
.item::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 8px;
  right: 8px;
  bottom: 2px;
  background-color: transparent;
  border-radius: 4px;
  z-index: -1;
  transition: background-color 0.15s ease;
}
.item::after {
  content: '';
  position: absolute;
  left: 16px;   /* 🔥 controls left gap */
  right: 16px;  /* 🔥 controls right gap */
  bottom: 0;
  height: 1px;
  background-color: #E7EAEE;
}

.item:hover::before {
  background-color: #DDF9CC;
}
.group-title {
  background: #545454;
  display: flex;
  padding: 8px 16px;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  color: white;
  margin-top: 16px;
  font-size: 13px;
}

#barre_h .middle{
 /* display: flex;
 justify-content: flex-end;  */
    width: 100%;
}



/* ================================
   THUMB ANCHOR
================================ */
.thumb-anchor {
  position: relative;
  height: 100%;
  width: 0;
}

/* ================================
   SWITCH (optional / hidden)
================================ */
.switch {
  position: relative;
  width: 40px;
  height: 80px;
}

.switch input {
  display: none;
}

/* ================================
   CLICKABLE THUMB
================================ */
.icon-thumb {
  position: absolute;
  left: -40px;
  top: 15%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;

  background: #cdeea3;
  border: 2px solid #111;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  cursor: pointer;
}


/* Face icon container */
.face-icon-wrap {
  width: 180px;
  height: 178px;
  margin-top: 24px;
  transition: transform 0.4s ease;
}

/* Shrink icon when card opens */
.card-hover .face-icon-wrap {
  transform: scale(0.88);
}

/* Scan animation */
@keyframes faceScan {
  0%   { transform: translateY(-56px); opacity: 0.6; }
  50%  { transform: translateY(56px);  opacity: 1; }
  100% { transform: translateY(-56px); opacity: 0.6; }
}

/* Animate ONLY the scan line */
.card-hover .scan-line {
  animation: faceScan 1.2s ease-in-out infinite;
  transform-origin: center;
}


@keyframes ttsWaveMove {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

/* default: no animation */
.tts-wave {
  animation: none;
  transform-origin: left center;
}

/* animate ALL waves together on hover */
.card-hover .tts-wave {
  animation: ttsWaveMove 1.1s ease-in-out infinite;
}


.pose-corner-tr, .pose-corner-tl, .pose-corner-lr, .pose-corner-ll{
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .35s ease;
}

.card-hover .pose-corner-tr {
  transform: translate(-124px, 55px) scale(0.6);
}
.card-hover .pose-corner-tl{
  transform: translate(-4px, 55px) scale(0.6);
}
.card-hover .pose-corner-lr{
  transform: translate(-124px, -65px) scale(0.6);
}
.card-hover .pose-corner-ll{
  transform: translate(-4px, -65px) scale(0.6);
}
.card-hover .pose-corner-tr,
.card-hover .pose-corner-tl,
.card-hover .pose-corner-lr,
.card-hover .pose-corner-ll {
  stroke: #000;
  stroke-width: 2px;
}


.pose-hand {
  transform-box: fill-box;
  transform-origin: right center; /* pivot at shoulder */
}

@keyframes handWave {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(8deg); }
  50%  { transform: rotate(0deg); }
  75%  { transform: rotate(-8deg); }
  100% { transform: rotate(0deg); }
}

/* animate ONLY on card hover */
.card-hover .pose-hand {
  animation: handWave 0.8s ease-in-out infinite;
}

.thermo-liquid {
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform .4s ease;
}

/* hover animation */
.card-hover .thermo-liquid {
  animation: thermoFill 1s ease-in-out infinite alternate;
  transform: scaleY(1.6);
}

@keyframes thermoFill {
  0% {
    transform: scaleY(2.2);
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes cloudFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

.card-hover .thermo-cloud{
  animation: cloudFloat 1.2s ease-in-out infinite;
}

.thermo-cloud{
  transform-box: fill-box;
  transform-origin: center;
}


#aiGridBg{
  position:absolute;
  inset:60px 0 0 0;      /* start below navbar */
  z-index:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(to right, rgba(180,220,120,.35) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(to bottom, rgba(180,220,120,.35) 0 1px, transparent 1px 40px);
  transform: perspective(900px) rotateX(65deg);
  transform-origin: top center;
  opacity:.65;
}


.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 40px;
 
  background: #DDF9CC;
  opacity: 1;
  cursor: pointer;
  box-shadow: 0px 1px 2px 0px #0005394D;
  user-select: none;
font-family: "M PLUS 1", sans-serif;
font-size: 20px;
font-style: normal;
font-weight: 500;
line-height: 28px; /* 140% */
/* margin: auto; */
}
.category-pill:hover{
 border: 2px solid #649208;
}
#categories_content {
  padding: 10px;
}
#categories_buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.Download-wrapper{
  box-sizing: border-box;
  min-width: 140px;
  height: 48px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.Download-wrapper:hover{
  border: 2px solid black;
  border-radius: 48px;
}

.Download-icon-with-label{
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.Download-icon-label{
  color: var(--Black, #1E1E1E);
  font-family: "M PLUS 1", sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 21px;
  display: flex;
  align-items: center;
}

.Download-btn{
  border: none;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.download-icon{
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-icon svg{
  width: 20px;
  height: 20px;
  display: block;
}

/* ================================
   ICON STATES
================================ */
.icon-thumb.closed i {
   background-image: url("../blocklyduino/icons/icon-thumb-closed.svg");
}

.icon-thumb.open i {
 background-image: url("../blocklyduino/icons/icon-thumb-opened.svg");
}

/* =========================================================
   PILL WRAP (OUTER CONTAINER)
========================================================= */
.pill-wrap {
  width: 360px;
  flex-shrink: 0;
}

/* =========================================================
   SEGMENTED PILL (MAIN CONTAINER)
========================================================= */
.segmented-pill {
  position: fixed;
  bottom: 0.6rem;
  right: 8.7rem;
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 48px;
  background: #ffffff;
  box-shadow: 1px 1px 8px rgba(0,0,0,0.45);
  gap: 0;
  width: fit-content;
  min-width: 0; 
  margin-bottom: 0.4rem; 
  margin-right: 24px;
  transition: width .35s cubic-bezier(.25,.8,.25,1);
}

/* =========================================================
   SERIAL MONITOR HOLDER
========================================================= */
.serial-monitor-holder {
  position: relative;
  bottom: 0px;
  left: 0px;
  height: 56px;
  z-index: 9999;
  flex: 0 0 auto;
  transition: all .35s cubic-bezier(.25,.8,.25,1);
  width: auto; /* ADD THIS */
}

/* .serial-monitor-holder:hover {
  width: 210px;
} */

.serial-monitor-holder.active {
  background-color: transparent;
}

.serial-monitor-holder.active .serial-monitor-body {
  height: 360px;
}

/* =========================================================
   SERIAL MONITOR WRAPPER
========================================================= */
.serial-monitor-wrapper {
  min-width: 0px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  width: auto;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* REMOVED THE HOVER - THIS WAS YOUR ORIGINAL */

/* =========================================================
   SERIAL MONITOR CONTAINER (GREEN INNER)
========================================================= */
.serial-monitor-container {
  width: 56px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0px 16px;
  border-radius: 40px;
  background: #DDF9CC;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin: 0;
  overflow: hidden;
  max-width: 100%;
  transition: width .35s cubic-bezier(.25,.8,.25,1),
              box-shadow .35s ease,
              padding .35s ease;
}

.serial-monitor-container:hover {
  padding: 0px 16px;
  /* border: 2px solid #FFFFFF; */
  border-radius: 40px;
  background: #C8F0B0;
}

.serial-monitor-holder .serial-monitor-container {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.serial-monitor-holder:hover .serial-monitor-container,
.segmented-pill.mode-serial .serial-monitor-container {
  width: 100%;
  max-width: 210px;
  transition: width .35s cubic-bezier(.25,.8,.25,1); /* ADD THIS */
}

/* =========================================================
   SERIAL MONITOR INNER
========================================================= */
.serial-monitor-inner {
  position: relative;
  z-index: 2;
}

/* =========================================================
   SERIAL MONITOR BUTTON
========================================================= */
.serial-monitor-btn {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
}

/* =========================================================
   SERIAL MONITOR LABEL
========================================================= */
.serial-monitor-label {
  font-family: "M PLUS 1", sans-serif;
  color: #432806;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .22s ease, opacity .18s ease;
}

.serial-monitor-holder:hover .serial-monitor-label,
.segmented-pill.mode-serial .serial-monitor-label {
  max-width: 205px;
  opacity: 1;
}

/* =========================================================
   SERIAL MONITOR ICON
========================================================= */
.serial-monitor-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.serial-monitor-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* =========================================================
   SERIAL MONITOR BODY (PANEL)
========================================================= */
.serial-monitor-body {
  position: absolute;
  bottom: 5.5rem;
  left: -0.5rem;
  z-index: 1;
  height: 0;
  min-width: 360px;
  overflow: hidden;
  background: #fff;
  border-radius: 27px;
  margin-top: 8px;
  transition: height 0.3s ease;
  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.45);
}

.serial-monitor-holder .serial-monitor {
  position: static !important;
  width: calc(100% - 24px);
  height: 220px;
  /* margin: 15px auto; */
  margin: 70px auto 15px auto;
  border-radius: 14px;
}

/* =========================================================
   TERMINAL HOLDER
========================================================= */
.terminal-holder {
  flex: 0 0 auto;
  position: relative;
  height: 56px;
  transition: flex 0.25s ease;
}

.terminal-holder::before {
  content: "";
  position: absolute;
  left: 0;
  height: 55px;
  width: 2px;
  background: #B4E894;
}

/* =========================================================
   TERMINAL WRAPPER
========================================================= */
.terminal-wrapper {
  min-width: 0px;
  height: 56px;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  z-index: 9999;
  width: 100%;
}

/* =========================================================
   TERMINAL CONTAINER (GREEN INNER)
========================================================= */
.terminal-container {
  width: 56px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0px 16px;
  border-radius: 40px;
  background: #DDF9CC;
  margin: 0;
  overflow: hidden;
  max-width: 100%;
  transition: width .35s cubic-bezier(.25,.8,.25,1),
              box-shadow .35s ease,
              padding .35s ease;
}

.terminal-container:hover {
  padding: 0px 16px;
  /* border: 2px solid #FFFFFF; */
  border-radius: 40px;
  background: #C8F0B0;
}

.terminal-holder .terminal-container {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.terminal-holder:hover .terminal-container,
.segmented-pill.mode-terminal .terminal-container {
  width: 100%;
  max-width: 180px;
}

/* =========================================================
   TERMINAL BUTTON
========================================================= */
.terminal-btn {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
}

/* =========================================================
   TERMINAL LABEL
========================================================= */
.terminal-label {
  font-family: "M PLUS 1", sans-serif;
  color: #432806;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .35s cubic-bezier(.25,.8,.25,1),
              opacity .25s ease;
}

.terminal-holder:hover .terminal-label,
.segmented-pill.mode-terminal .terminal-label {
  max-width: 140px;
  opacity: 1;
}

/* =========================================================
   TERMINAL ICON
========================================================= */
.terminal-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.terminal-icon i {
  font-size: 18px;
}

/* =========================================================
   TERMINAL BODY (PANEL)
========================================================= */
.terminal-body {
  position: absolute;
  bottom: 5.5rem;
  right: clamp(40px, 6vw, 120px);
  width: 360px;
  max-width: calc(100vw - 40px);
  z-index: 1000;
}

/* =========================================================
   SEGMENTED MODE BEHAVIOR
========================================================= */
.segmented-pill.mode-terminal .serial-monitor-label,
.segmented-pill.mode-serial .terminal-label {
  display: none;
}

.segmented-pill.mode-terminal .serial-monitor-holder:hover .serial-monitor-label,
.segmented-pill.mode-serial .terminal-holder:hover .terminal-label {
  display: inline;
}

/* =========================================================
   ICON BASE (LEGACY)
========================================================= */
.icon-thumb i {
  width: 22px;
  height: 22px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin: 7.5px;
  pointer-events: none;
  cursor: pointer;
  transition: box-shadow 300ms ease-out, transform 300ms ease-out;
}

@media (max-width: 1350px) {
  .custom-menu-bar {
    gap: 0.4rem;
    margin-left: 2rem;
  }

  .custom-menu-bar .dropbtn {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
  }
  .control-bar{
    gap: 5px;
  }
  .board-select-wrapper{
    position: absolute;
    right: 40px;
    top: -2.8em;
  }
  .toolbox-toggle-btn{
    margin-left: 4rem;
  }
}

@media (max-width: 1200px) {
  .custom-menu-bar {
    gap: 0.2rem;
    margin-left: 1rem;
  }

  .custom-menu-bar .dropbtn {
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
  }
  .control-bar{
    gap: 1px;
  }
  .board-select-wrapper{
    position: absolute;
    right: 40px;
    top: -2.8em;
  }
  .toolbox-toggle-btn{
    margin-left: 2rem;
  }
  #boardSelect{
    width: 8rem;
    padding: 0.35rem 1.2rem;
    height: 2.2rem;
    /* font-size: 0.72rem; */
    background-position: right 0.7rem center;
  }

  .connect-btn-wrapper{
    min-width: 7.5rem;
    height: 2.2rem;
    padding: 0.35rem;
  }

  .Download-wrapper{
    min-width: 7.5rem;
    height: 2.2rem;
    padding: 0.35rem;
  }


  /* FOOTER PART RESPONSIVE */

  .ai-extension-btn{
    height: 3.5rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.8rem;
    gap: 0.25rem;
    border-radius: 2.6rem;
  }

  .ai-extension-btn svg{
    width: 1.1rem;
    height: 1.1rem;
  }

  .ai-extention-text{
    font-size: 0.78rem;
  }

  /* #LAUNCH SECTION RESPONSIVE */

  #launchParent{
    min-width: 26rem;
    height: 3.5rem;
    padding: 0.35rem 0.4rem;
    border-radius: 2.5rem;
  }

  .launch-btn{
    min-width: 8.5rem;
    height: 3.0rem;
    font-size: 0.9rem;
    gap: 0.5rem;
    border-radius: 2.5rem;
  }

  .launch-btn i{
    font-size: 0.9rem;
  }

  #footer-2{
    gap: 0.3rem;
  }

  #footer-2 svg{
    width: 2.4rem;
    height: 3.2rem;
  }
}
@media (max-width:1200px){

  .pill-wrap{
    width: 19rem;
  }

  .segmented-pill{
    padding: 0.25rem;
    border-radius: 2.8rem;
  }

  .serial-monitor-holder,
  .terminal-holder{
    display:flex;
  align-items:center;
  justify-content:center;
  height:3.5rem; /* 56px */
  }

  .terminal-container,
  .serial-monitor-container{
    width: 2.6rem;
    height: 3.4rem;
    padding: 0 0.7rem;
    border-radius: 2rem;
  }

  /* expanded width slightly smaller */
  .segmented-pill.mode-terminal .terminal-container,
  .terminal-holder:hover .terminal-container{
    max-width: 9rem;
  }

  .segmented-pill.mode-serial .serial-monitor-container,
  .serial-monitor-holder:hover .serial-monitor-container{
    max-width: 10rem;
  }

  .terminal-label,
  .serial-monitor-label{
    font-size: 1.1rem;
    line-height: 1rem;
  }

  .serial-monitor-icon svg,
  .terminal-icon{
    width: 1.4rem;
    height: 1.4rem;
  }
  /* add inside your 1200px media query */

.serial-monitor-container{
  position: relative;
}

.serial-monitor-container::after{
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2.5rem;
  width: 0.06rem;
  background: rgba(0,0,0,0.25);
}


}


@media (max-width: 1024px) {
  .custom-menu-bar {
    gap: 0.18rem;
    margin-left: -8px;
  }
  .custom-menu-bar .dropdown {
    margin-left: clamp(0.18rem, 1.1vw, 1rem);   /* scaled version */
  }
  .custom-menu-bar .dropbtn {
    padding: 0.18rem 0.5rem;
    font-size: 0.7rem;
  }
   .control-bar{
    gap: 0.06rem;
  }
  .board-select-wrapper{
    position: absolute;
    right: 1.25rem;
    top: -2.8em;
  }
  .toolbox-toggle-btn{
    margin-left: 0.2rem;
  }
  #boardSelect{
    width: 6.8rem;
    padding: 0.25rem 1rem;
    height: 2rem;
    /* font-size: 0.68rem; */
  }

  .connect-btn-wrapper{
    min-width: 6.5rem;
    height: 2rem;
    padding: 0.25rem;
  }

  .Download-wrapper{
    min-width: 6.5rem;
    height: 2rem;
    padding: 0.25rem;
  }

  .connect-btn-button,
  .Download-icon-with-label{
    gap: 0.25rem;
  }
}

