/* Custom styles for improved UI */
:root {
  --primary-color: #4a6cf7;
  --secondary-color: #0e1133;
  --text-color: #4a5568;
  --bg-color: #ffffff;
  --border-color: #e2e8f0;
  --hover-color: #3a56e4;
  --shadow-color: rgba(14, 17, 51, 0.1);
  --transition: all 0.3s ease;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
.product-switcher{
  display: flex;
  align-items: center;
  gap: 20px;
}

.pull-right {
  float: right;
}

/* Header styles */
.switcher-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: white;
  box-shadow: 0 2px 10px var(--shadow-color);
  position: relative;
  z-index: 100;
}

.product-switcher a {
  display: flex;
  align-items: center;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  padding: 8px 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
}

.product-switcher a:hover {
  background-color: #f7fafc;
  color: var(--primary-color);
}

.product-switcher a span {
  margin-left: 8px;
  display: flex;
  align-items: center;
}

.header-btn {
  margin-left: 10px;
}

.header-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background-color: #f7fafc;
  color: var(--text-color);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.header-btn a:hover, .header-btn.active a {
  background-color: var(--primary-color);
  color: white;
}
iframe.product-iframe{
  display: block !important;
  margin-left: auto;
  margin-right: auto;
}

/* Project list section */
.switcher-body {
  display: flex;
  align-items: center;
  background-color: #f7fafc;
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  position: absolute;
  z-index: 99;
  height: 180px;
}

body.toggle .switcher-body {
  transform: translateY(0);
}

.nav-arrow {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  margin: 0 10px;
  transition: var(--transition);
  box-shadow: 0 2px 5px var(--shadow-color);
  text-decoration: none;
  z-index: 10;
}
.nav-next{
  right: 0;
}
.nav-arrow:hover {
  background-color: var(--primary-color);
  color: white;
}

.products-wrapper {
  width: calc(100% - 100px);
  overflow: hidden;
  padding: 20px 0;
}

.products-list {
  display: flex;
  transition: transform 0.3s ease;
}

.product {
  position: relative;
  margin: 0 10px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px var(--shadow-color);
  transition: var(--transition);
  background-color: white;
  width: 236px;
  height: 120px;
  text-decoration: none;
  flex-shrink: 0;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-color);
}

.product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product .title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  color: white;
  font-weight: 600;
  text-align: center;
}

.product .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* Iframe container */
.product-iframe {
  width: 100%;
  border: none;
  transition: width 0.4s ease;
}

/* Loading indicator */
.loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Onboarding tooltip */


.onboarding-tooltip p {
  margin: 0 0 10px;
}
.onboarding-tooltip {
  position: fixed;
  top: 85px;
  left: 20px;
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-color);
  max-width: 250px;
  z-index: 500;
  animation: fadeIn 0.5s ease;
  display: none;
  border-left: 4px solid var(--primary-color);
}
.onboarding-tooltip:before,
.responsive-tooltip:before {
    content: '';
    position: absolute;
    top: -10px; 
    right: 15px;
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

.onboarding-tooltip:before{
  right: unset;
  left: 15px;
}
@media (max-width: 768px) {
  .responsive-tooltip {
    right: 10px;
    top: 60px;
    max-width: 200px;
  }
  
  .responsive-tooltip:before {
    right: 20px;
    top: -10px;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent white transparent;
  }
}
.close-tooltip {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.close-tooltip:hover {
  background-color: var(--hover-color);
}

/* Custom tooltip */
.custom-tooltip {
  position: absolute;
  background-color: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  max-width: 200px;
  text-align: center;
  pointer-events: none;
}

.custom-tooltip:after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #333 transparent;
}

.custom-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive styles */
@media (max-width: 768px) {
  .hidden-xs {
    display: none !important;
  }
  
  .product-switcher a {
    font-size: 14px;
  }
  
  .products-wrapper {
    width: calc(100% - 60px);
  }
  
  .nav-arrow {
    width: 30px;
    height: 30px;
  }
}
/* Add these styles to your custom.css file */

/* Header tag styles */
.header-tag {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: normal;
}

.product-switcher h3 {
  display: inline-block;
  margin-left: 10px;
  font-weight: 600;
  color: var(--secondary-color);
}

/* Fixed carousel navigation positioning */
.switcher-body {
  display: flex;
  align-items: center;
  background-color: #f7fafc;
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  position: absolute;
  width: 100%; /* Make sure it spans the full width */
  z-index: 99;
  height: 180px;
}

.nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 5px var(--shadow-color);
  text-decoration: none;
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.nav-arrow.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-prev {
  left: 10px;
}

.nav-next {
  right: 10px;
}

.nav-arrow:hover:not(.disabled) {
  background-color: var(--primary-color);
  color: white;
}

/* Better touch support for carousel */
.products-wrapper {
  width: calc(100% - 100px);
  overflow: hidden;
  padding: 20px 0;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
}

/* Make sure products list has proper layout */
.products-list {
  display: flex;
  transition: transform 0.3s ease;
  width: fit-content;
}

/* Ensure product cards have consistent width */
.product {
  position: relative;
  margin: 0 10px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px var(--shadow-color);
  transition: var(--transition);
  background-color: white;
  width: 236px;
  height: 120px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Make sure switcher-body can be visible */
body.toggle .switcher-body {
  transform: translateY(0);
  top: 70px; /* Adjust based on your header height */
}

/* Responsive tooltip styling */
.responsive-tooltip {
  position: fixed;
  top: 85px;
  right: 20px;
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-color);
  max-width: 250px;
  z-index: 500;
  animation: fadeIn 0.5s ease;
  display: none;
  border-left: 4px solid var(--primary-color);
}

.responsive-tooltip p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
}

.close-responsive-tooltip {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
}

.close-responsive-tooltip:hover {
  background-color: var(--hover-color);
}