@import url("https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Lexend&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mulish&display=swap');

:root {
  --font-heading: "Fredoka One", cursive;
  --font-main:  "Lexend", sans-serif;
  --color-bg: linear-gradient(to bottom, #000000, #293241);
  --color-light: #e0fbfc;
}

body {
  background: var(--color-bg);
  margin: 0;

  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: var(--font-main);
}


.main-wrapper {
  width: 100%;
  max-width: 1200px;
 }

.main_container {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
  padding: 20px 30px;
  max-width: 1200px;
  width: 80%;
  text-align: center;
  max-height: 80vh;
  overflow: auto;
  box-sizing: border-box;

  margin: auto;
  display: flex;
  flex-direction: column;
}
.scrollable-content {
  overflow-y: auto;
  overflow-x: hidden;
  flex-grow: 1;
  min-height: 0;
}
.scrollable-content::-webkit-scrollbar {
  width: 0px;
}

.scrollable-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 0px;
}

.scrollable-content::-webkit-scrollbar-track {
  background: transparent;
}

.about-container {
  width: 80%;
  max-width: 1100px;
  margin: 160px auto;
  padding: 80px;
  background-color: #13171e;
  color: white;
  border-radius: 8px;
  text-align: justify-all;
  font-size: 14px;
  font-family: var(--font-main);
}


h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {

  font-size: 16px;
  display: block;
  font-weight: normal;
  margin-bottom: 5px;
  font-family: var(--font-main), sans-serif;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  font-family: var(--font-main), sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #007bff;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #0056b3;
}
/*
#qrcode {
  margin-top: 30px;
  max-width: 100%;
  width: 100%;
  height: 256px;
  display: block;
  overflow: hidden;
  position: relative;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  transform: scale(1);
}

.qr-hidden {
  opacity: 0;
  transform: scale(0.8);
}



#qrcode canvas {
  max-width: 100%;
  max-height: 100%;
  width: 256px;
  height: auto;
  display: block;
  margin: 0 auto;


}
*/

#qrcode {
  margin-top: 30px;
  max-width: 100%;
  width: 100%;
  height: 256px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  transform: scale(1);
  background: #fff;
}


.qr-hidden {
  opacity: 0;
  transform: scale(0.8);
}


.qr-placeholder img {
  position: absolute;
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}


.qr-placeholder img.active {
  opacity: 1;
}


#qrcode canvas {
  max-width: 100%;
  max-height: 100%;
  width: 256px;
  height: auto;
  display: block;
  margin: 0 auto;
}






.logo-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
}

.logo-preview img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 10px;
  object-fit: contain;
}

.remove-logo-icon {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.logo-preview:hover .remove-logo-icon {
  display: flex;
}

.download-btn {
  background-color: #28a745;
  margin-top: 20px;
}

.download-btn:hover {
  background-color: #218838;
}

.remove-logo-btn {
  background-color: #dc3545;
  margin-top: 10px;
  width: 100%;
}

.remove-logo-btn:hover {
  background-color: #c82333;
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 20px;
  }

  button {
    font-size: 14px;
  }

  #qrcode {
    width: 100%;
    height: auto;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
  }

  #qrcode img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
  }

  #qrcode canvas {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}


.form-group input[type="color"] {
  padding: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 0;
}

.form-group input[type="color"]:focus {
  outline: none;
}


.color-picker-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 5px;
  width: 100%;
  align-items: center;
}


.color-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease-in-out;
}

.color-option:hover {
  transform: scale(1.1);
}


.color-option.selected {
  border: 3px solid #aab7b8;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}



.color-option-selected {
  width: 40px;
  height: 40px;
  border-radius: 10%;
  border: 2px solid #aab7b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease-in-out;
}






.rainbow-color {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease-in-out;
}


.rainbow-color::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(red, orange, yellow, green, cyan, blue, violet, red);

}


.rainbow-color::after {
  content: "+";
  font-size: 22px;
  font-weight: bold;
  color: black;
  position: absolute;
  width: 90%;
  height: 90%;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}


.color-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}


/* Responsive adjustments */
@media (max-width: 600px) {
  .color-picker-container {
    max-width: 150px;
    grid-template-columns: repeat(5, 1fr);
  }

  .dot-type-container {
    max-width: 250px;
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Responsive adjustments */
@media (max-width: 400px) {
  .color-picker-container {
    max-width: 150px;
    grid-template-columns: repeat(4, 1fr);
  }


}





.dot-type-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 20px;
  width: 100%;
  align-items: center;
}

.dot-type-option {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  border: 2px solid transparent;
  outline: 3px solid transparent;
  cursor: pointer;
  display: flex;

  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-in-out, outline 0.2s;
}


.dot-type-option img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}
.dot-type-option.selected {
  outline: 3px solid #aab7b8;
  transform: scale(1.05);
}


.dot-cs-type-container {
  display: flex;
  gap: 10px;
}

.dot-cs-type-option {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  border: 2px solid transparent;
  outline: 3px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-in-out, outline 0.2s;
}


.dot-cs-type-option img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}
.dot-cs-type-option.selected {
  outline: 3px solid  #aab7b8;
  transform: scale(1.05);
}



.dot-cd-type-container {
  display: flex;
  gap: 10px;
}

.dot-cd-type-option {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  border: 2px solid transparent;
  outline: 3px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-in-out, outline 0.2s;
}


.dot-cd-type-option img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}
.dot-cd-type-option.selected {
  outline: 3px solid  #aab7b8;
  transform: scale(1.05);
}
.accordion {
  background-color:#d5dbdb;
  color: #444;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: background-color 0.3s;
  font-family: var(--font-main), sans-serif;
  font-size: 16px;
  font-weight: normal;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion:hover {
  background-color: #293241;
  color: #f2f3f4;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: background-color 0.3s;
  font-family: var(--font-main), sans-serif;
  font-size: 16px;
  font-weight: normal;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* Icon initially set to plus (+) */
.accordion::after {
  content: "+";
  font-size: 18px;
  transition: transform 0.3s;
}

/* Change to minus (-) when active */
.accordion.active::after {
  content: "-";
}

/* Panel default state (closed) */
.panel {
  max-height: 0;
  overflow: hidden;
  background-color: #fff;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
  visibility: hidden;
  padding: 0 10px;
}

/* Open state */
.panel.open {
  max-height: 600px;
  opacity: 1;
  visibility: visible;
  padding: 10px;
  transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
}



.qr-slider-group {
  width: 100%;

}


.qr-slider-group input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
}


.qr-slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #007bff;
  border-radius: 50%;
  cursor: pointer;
}

.qr-slider-group input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #007bff;
  border-radius: 50%;
  cursor: pointer;
}


.qr-slider-group span {
  font-weight: bold;
  text-align: center;
}







.logo-upload-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-input-wrapper {
  flex: 9; /* Takes 90% width */
  display: flex;
  align-items: center; /* Ensures input is aligned properly */
}

.remove-logo-btn {
  flex: 1; /* Takes 10% width */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #dc3545; /* Bootstrap danger color */
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  padding: 6px;
  cursor: pointer;
  height: 40px;
  min-width: 45px;
  max-width: 45px;
  margin-bottom: 5px;
}


/* Default: Show X icon, hide text */
.remove-text {
  display: none;
}

.remove-logo-btn:hover {
  background-color: #c82333;
}


@media (max-width: 768px) {
  .logo-upload-container {
    flex-direction: column;
    align-items: stretch;
  }

  .remove-logo-btn {
    width: 100%;
    max-width: unset;
  }

  /* Show "Remove Logo" text on mobile, hide the X */
  .remove-text {
    display: inline;
  }

  .remove-icon {
    display: none;
  }
}

.reset-color-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  padding: 6px;
  cursor: pointer;
  height: 40px;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  margin-left: 5px;
  margin-bottom: 12px;
  vertical-align: middle;
}



.reset-color-btn:hover {
  background-color: #c82333;
}

.col-lg-6:last-child {
  position: sticky;
  top: 10px;
  align-self: flex-start;
}

#qrSizeValue
{
  font-family: var(--font-main), sans-serif;
  font-size: 12px;
  font-weight: normal;
}


.image-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 1200px;
  width: 80%;
  flex-wrap: wrap;
}

.image-row img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}






.custom-navbar {
  padding: 0.5rem 2rem !important;
  z-index: 9999 !important;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);


  position: fixed;
  top: 0;
  left: 0;
  right: 0;


  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);

  max-width: 1100px !important;
  width: 90% !important;
  margin: 0 auto !important;
}

/* Navbar brand (icon + title) */
.custom-navbar .navbar-brand {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.5rem !important;
  max-width: 100%;
}
.custom-navbar .navbar-brand img {
  width: clamp(40px, 5vw, 80px);
  transition: width 0.3s ease-in-out;
  margin-right: 10px;
}
.custom-navbar .navbar-brand span {
  font-weight: normal !important;
  transition: color 0.3s ease-in-out;
}

/* Navbar toggler (hamburger) */
.custom-navbar .navbar-toggler {
  margin-left: auto !important;
  border: none !important;
  width: auto !important;
  padding: 0.75rem 0.75rem !important;
}

.custom-navbar .navbar-toggler-icon {
  background-image: none !important;
  display: inline-block;
  width: 1.5em;
  height: 1.0em;
  position: relative;
  margin-bottom: 15px;
}

.custom-navbar .navbar-toggler-icon::before,
.custom-navbar .navbar-toggler-icon::after,
.custom-navbar .navbar-toggler-icon div {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: currentColor;
  transition: all 0.3s;
}
/*qrcode.now - sumit tiwari - softethics*/
.custom-navbar .navbar-toggler-icon::before {
  top: 0;
}

.custom-navbar .navbar-toggler-icon::after {
  bottom: 0;
}

.custom-navbar .navbar-toggler-icon div {
  top: 50%;
  transform: translateY(-50%);
}

/* Navbar links */
.custom-navbar .nav-link {
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease-in-out;
}

/* Dropdown styling */
.custom-navbar .dropdown-menu {
  background-color: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 0.5rem !important;
}

.custom-navbar .dropdown-item {
  color: #000 !important;
  display: flex;
  align-items: center;
  padding: 0.5em 0.8em;
}

.custom-navbar .dropdown-item:hover {
  background-color: #f1f1f1 !important;
}
.dropdown-item i {
  margin-right: 5px;
}
/* ---------- Mobile Design (up to 768px) ---------- */
@media (max-width: 768px) {
  .custom-navbar {
    background: var(--color-bg) !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;

  }

  .custom-navbar .navbar-brand span,
  .custom-navbar .nav-link {
    color: #e0fbfc !important;
  }

  /* Dark hamburger icon on mobile */
  .custom-navbar .navbar-toggler {
    color: #e0fbfc !important;
  }

  /* Proper space between brand and toggler */
  .custom-navbar .container-fluid {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .custom-navbar .navbar-toggler:hover,
  .custom-navbar .navbar-toggler:focus,
  .custom-navbar .navbar-toggler:active {
    outline: none;
    box-shadow: none;
    background: transparent;
    border: none;
  }
}
/*qrcode.now - sumit tiwari - softethics*/
/* ---------- Tablet/Desktop Design (769px and up) ---------- */
@media (min-width: 769px) {
  .custom-navbar {
    background-color: transparent !important;
    border-radius: 15px !important;
    box-shadow: none !important;
  }

  .custom-navbar .navbar-brand span,
  .custom-navbar .nav-link {
    color: #e0fbfc !important;
  }

  /* White hamburger icon on tablet/desktop */
  .custom-navbar .navbar-toggler {
    color: #e0fbfc !important;
  }
  .custom-navbar .navbar-toggler:hover,
  .custom-navbar .navbar-toggler:focus,
  .custom-navbar .navbar-toggler:active {
    outline: none;
    box-shadow: none;
    background: transparent;
    border: none;
  }
}




footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  padding: 2px 20px 2px 20px;
  z-index: 1000;

}


.footer-about {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #13171e;
  padding: 2px 20px 2px 20px;
  z-index: 1000;
  align-items: center;

}
.footer-about ul {
  list-style: none;
  padding: 0;
  text-align: left;
}
.footer-about li {
  display: block;
}
.footer-about a {
  color: #e0fbfc;
  font-size: 16px;
  text-decoration: none;

}

.footer-about a:hover {
  color: #ee6c4c;
  text-decoration: none;
}
.footer-about hr {
  background: var(--color-light) !important;
  height: 4px !important;
  border: none !important;
  width: 100%;
  margin: 10px 0;
  opacity: 1;
}


.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-left {
  text-align: left;

}

.footer-right {
  text-align: right;
}

.footer-text {
  color: #e0fbfc;
  font-size: 14px;
  text-decoration: none;
}

.footer-text:hover {
  color: #ee6c4c;
  text-decoration: none;
}



@media (max-width: 768px) {
  .footer-right div {
    font-size: 10px !important;
  }
  .footer-right a {
    font-size: 10px !important;
  }
  .footer-about {
    list-style: none;
    padding: 0;
    text-align: center;
  }
  .footer-about ul {
    list-style: none;
    padding: 0;
    text-align: center;
  }
}


.outer-container {
  display: flex;
  justify-content: center;
  align-items: center;

}
.contact-wrapper {
  display: flex;
  gap: 15px;
}
.contact-box {
  background-color: #e0fbfc;
  color: #13171e;
  padding: 15px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  width: 250px;
}
.contact-box i {
  margin-right: 10px;
  font-size: 1.2rem;
}
