 /* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  border-radius: 10px 10px 0 0;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 10px 10px;
} 

.tabcontent {
  animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* #region Custom select */
  .custom-select {
  position: relative;
  margin-top: 5px;
  width: 100%;
  height: 35px;
  user-select: none;
  font-family: sans-serif;
}
.custom-select-header {
  border: 1px solid #ccc;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  background: #fff;
  border-radius: 5px;
}
.custom-select-header .custom-option-img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}
.custom-select-header .custom-option-text {
  flex: 1;
}
.custom-select-options {
  position: absolute;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  background: #fff;
  z-index: 10;
  margin-top: 2px;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.custom-select-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  transition: background 0.15s;
}
.custom-select-option:hover, .custom-select-option[aria-selected="true"] {
  background: #f3f6fa;
}
.custom-select-option .custom-option-img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}
/* #endregion */

/* #region DescIconsPopup */
  .descButton {
    cursor: pointer;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
  }

  .descButton:hover{
    background-color: #ddd;
    transition: background 0.15s;
  }

  #popupMenu {
    position: absolute;
    top: 50px;
    left: 20px;
    border: 1px solid #ccc;
    background: #fff;
    padding: 5px;
    box-shadow: 0 3px 3px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 1000;
    
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    
    max-height: 250px;
    overflow-y: auto;
    animation: fadeEffect 0.5s;
  }

  #popupMenu button {
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 1px 1px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 5px;
    background-color: #f2f2f2;
    transition: background-color 0.2s;
    font-size: 14px;
    text-align: center;
    height: 27px;
  }
  #popupMenu button:hover {
    background-color: #ddd;
  }

  .icon {
    width: 25px;
    height: 25px;
  }

/* #endregion */

/* #region First time Popup */
  #popup {
      display: none;
      position: fixed;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      padding: 20px;
      background: white;
      border: 2px solid black;
      box-shadow: 0 0 10px rgba(0,0,0,0.5);
      z-index: 1000;
    }
    #popup button {
      margin-top: 10px;
    }
    #overlay {
      display: none;
      position: fixed;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 999;
    }
/* #endregion */


.text-bar {
  display: flex;
  border-radius: 5px;
  margin-top: 0px;
  padding: 0 12px;
  height: 100%;
  outline: none;
  border: 1px solid #ccc; 
  transition: all 0.3s ease;
}
.text-area {
  display: flex;
  border-radius: 5px;
  
  margin-top: 0px;
  padding: 5px 12px;
  height: 100%;
  outline: none;
  resize:none;
  border: 1px solid #ccc; 
  transition: all 0.3s ease;
}

.text-bar-parent {
  align-items: center;
  position: relative;
  margin-top: 5px;
  width: 100%;
  display: flex;
  height: 35px;
}

.text-area-parent {
  align-items: center;
  position: relative;
  margin-top: 15px;
  width: 100%;
  display: flex;
  height: 150px;
}

.text-flavor-area-parent {
  align-items: center;
  position: relative;
  margin-top: 15px;
  width: 100%;
  display: flex;
  height: 50px;
}

.ui-checkbox {
  --primary-color: #1677ff;
  --secondary-color: #fff;
  --primary-hover-color: #4096ff;
  /* checkbox */
  --checkbox-diameter: 20px;
  --checkbox-border-radius: 5px;
  --checkbox-border-color: #d9d9d9;
  --checkbox-border-width: 1px;
  --checkbox-border-style: solid;
  /* checkmark */
  --checkmark-size: 1.2;
}

.ui-checkbox, 
.ui-checkbox *, 
.ui-checkbox *::before, 
.ui-checkbox *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.ui-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: var(--checkbox-diameter);
  height: var(--checkbox-diameter);
  border-radius: var(--checkbox-border-radius);
  background: var(--secondary-color);
  border: var(--checkbox-border-width) var(--checkbox-border-style) var(--checkbox-border-color);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.ui-checkbox::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-box-shadow: 0 0 0 calc(var(--checkbox-diameter) / 2.5) var(--primary-color);
  box-shadow: 0 0 0 calc(var(--checkbox-diameter) / 2.5) var(--primary-color);
  border-radius: inherit;
  opacity: 0;
  -webkit-transition: all 0.5s cubic-bezier(0.12, 0.4, 0.29, 1.46);
  -o-transition: all 0.5s cubic-bezier(0.12, 0.4, 0.29, 1.46);
  transition: all 0.5s cubic-bezier(0.12, 0.4, 0.29, 1.46);
}

.ui-checkbox::before {
  top: 40%;
  left: 50%;
  content: "";
  position: absolute;
  width: 4px;
  height: 7px;
  border-right: 2px solid var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
  -webkit-transform: translate(-50%, -50%) rotate(45deg) scale(0);
  -ms-transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  opacity: 0;
  -webkit-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6),opacity 0.1s;
  -o-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6),opacity 0.1s;
  transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6),opacity 0.1s;
}

/* actions */

.ui-checkbox:hover {
  border-color: var(--primary-color);
}

.ui-checkbox:checked {
  background: var(--primary-color);
  border-color: transparent;
}

.ui-checkbox:checked::before {
  opacity: 1;
  -webkit-transform: translate(-50%, -50%) rotate(45deg) scale(var(--checkmark-size));
  -ms-transform: translate(-50%, -50%) rotate(45deg) scale(var(--checkmark-size));
  transform: translate(-50%, -50%) rotate(45deg) scale(var(--checkmark-size));
  -webkit-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
  -o-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
  transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
}

.ui-checkbox:active:not(:checked)::after {
  -webkit-transition: none;
  -o-transition: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  transition: none;
  opacity: 1;
}

.slider-range{
  width: 100%;
}