.dilytics-tabs-wrapper {
  --tab-bg-color: #f0f5fa;
  --tab-active-color: #1cb0f6;
  /* Adjust this to match your exact brand blue */
  --tab-border-radius: 24px;
}

.dilytics-tabs-wrapper {
  background-color: var(--tab-bg-color);
  padding: 18px;
  border-radius: 24px;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.dilytics-tabs-container {
  display: flex;
  align-items: stretch;
  border-radius: var(--tab-border-radius);
  overflow: hidden; /* This clips both sidebar and content area to a single rounded shape */
  position: relative;
}

.dilytics-tabs-sidebar {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 2;
  overflow: hidden; /* Clips the sliding indicator corners at the top/bottom */
}

.dilytics-tabs-sidebar .dilytics-tab {
  min-height: 150px;
  height: 150px;
  flex: 1;
  background: #ffffff;
  border-radius: var(--tab-border-radius);
  color: #111;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  margin-right: 20px;
  padding-left: 20px;
}

/* Active Tab Styling - Now handles transparency to show the sliding indicator */
.dilytics-tab.active {
  background: transparent;
  color: #fff;
  margin-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
  transform: none;
}

/* Sliding Indicator */
.dilytics-tab-indicator {
  position: absolute;
  right: 0;
  width: 100%;
  background: var(--tab-active-color);
  border-radius: var(--tab-border-radius) 0 0 var(--tab-border-radius) !important;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.dilytics-tab-indicator.initialized {
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.dilytics-tab {
  z-index: 2;
}

.dilytics-tab-header {
  display: flex;
  align-items: center;
  gap: 10px;

}

.dilytics-tab-content-mobile {
  display: none;
}

.dilytics-tab .arrow-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  color: var(--tab-active-color);
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
  transition: color 0.3s;
}

.dilytics-tab.active .arrow-icon {
  color: #fff;
}

/* Concave corners moved to indicator for smooth sliding */
.dilytics-tab-indicator::before,
.dilytics-tab-indicator::after {
  content: '';
  position: absolute;
  right: 0;
  width: 24px;
  height: 24px;
  background: transparent;
  pointer-events: none;
  opacity: 1;
}

.dilytics-tab-indicator::before {
  bottom: 100%;
  background-image: radial-gradient(circle at top left, transparent var(--tab-border-radius), var(--tab-active-color) var(--tab-border-radius));
}

.dilytics-tab-indicator::after {
  top: 100%;
  background-image: radial-gradient(circle at bottom left, transparent var(--tab-border-radius), var(--tab-active-color) var(--tab-border-radius));
}

/* Corners are now clipped by overflow: hidden on the sidebar */

/* Right Side Content Area */
.dilytics-tabs-content-area {
  display: flex;
  align-items: center;
  width: 50%;
  background-color: var(--tab-active-color);
  border-radius: 0 var(--tab-border-radius) var(--tab-border-radius) 0 !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Content area corners are now clipped by the parent .dilytics-tabs-container */

/* Gradient overlay to seamlessly blend the solid blue tab into the background image */
.dilytics-tabs-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--tab-active-color) 0%, rgba(28, 176, 246, 0.85) 40%, rgba(28, 176, 246, 0.8) 100%);
  z-index: 0;
}

.dilytics-tab-content {
  position: relative;
  z-index: 1;
  padding: 50px 40px;
  display: none;
  color: #fff;
}

.dilytics-tab-content.active {
  display: block;
  animation: slideIn 0.5s ease forwards;
}

.dilytics-tab-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dilytics-tab-content ul li {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  align-items: center;
}

.dilytics-tab-content ul li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  color: #fff;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
  margin-top: 2px;
  flex-shrink: 0;
}

.dilytics-tabs-content-area .dilytics-tab-content li:last-child{
    margin-bottom: 0px !important;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive styling */
@media (max-width: 768px) {
  .dilytics-tabs-container {
    flex-direction: column;
  }

  .dilytics-tabs-sidebar {
    width: 100%;
    margin-bottom: 0;
  }

  .dilytics-tabs-sidebar .dilytics-tab {
    margin-right: 0;
    border-radius: 12px !important;
    padding: 24px;
    min-height: auto !important;
    height: auto;
    justify-content: flex-start;
  }

  .dilytics-tab .arrow-icon {
    display: inline-block;
    margin-left: 6px;
  }

  .dilytics-tab-indicator {
    display: none;
  }

  /* Hide the right-side content entirely on mobile */
  .dilytics-tabs-content-area {
    display: none;
  }

  /* Show mobile accordion content when active */
  .dilytics-tab.active .dilytics-tab-content-mobile {
    display: block;
  }

  .dilytics-tab-content-mobile .mobile-separator {
    background-color: rgba(255, 255, 255, 0.8);
  }

  .mobile-separator {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
  }

  .dilytics-tab-content-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-top: 18px;
  }

  .dilytics-tab-content-mobile ul li {
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
    color: #fff;
  }

  .dilytics-tab-content-mobile ul li::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 12px;
    margin-top: 4px;;
    color: #fff;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
    flex-shrink: 0;
  }
}