body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #F0F0F0;
}

.gradient-bg {
  background: linear-gradient(180deg, rgba(255, 222.55, 51, 0) 0%, rgba(255, 222.55, 51, 0.10) 100%),
             radial-gradient(ellipse 50% 41.77% at 50% 50%, #FFE6E6 0%, rgba(255, 178.50, 178.50, 0) 100%);
  min-height: 100vh;
  padding: 1rem;
}

.with-sidebar .gradient-bg {
  padding-top: 1rem;
}

.header-gradient {
  background: radial-gradient(ellipse 48.43% 48.43% at 50% 8.02%, rgba(255, 0, 0, 0.16) 0%, rgba(255, 0, 0, 0) 100%);
  border-top: 3px #FF0000 solid;
  border-bottom-right-radius: 50px;
  border-bottom-left-radius: 60px;
}

.card {
  background: rgba(252, 252, 251, 0.70);
  border-radius: 20px;
  outline: 1px #E6E6EB solid;
  outline-offset: -1px;
}

.connect-btn {
  background: #FCFCFB;
  box-shadow: 0px 2px 14px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  outline: 1px #E6E6F2 solid;
  outline-offset: -1px;
}

.notification-box {
  background: linear-gradient(180deg, #FFF7E5 0%, #FFF0CC 100%);
  border-radius: 10px;
  outline: 1px #FFDCB2 solid;
  outline-offset: -1px;
}

.info-box {
  background: rgba(252, 252, 251, 0.70);
  border-radius: 10px;
  outline: 1px #E6E6EB solid;
  outline-offset: -1px;
}

.badge {
  background: #E6E6F2;
  border-radius: 4px;
}

/* Chat component specific styles */
.media {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.media-left {
  flex-shrink: 0;
}

.media-content {
  flex: 1 1 0%;
}

.chief-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Animations */
@keyframes opacity {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animated {
  animation: opacity 0.3s ease-in-out;
}

/* Utilities */
.disable-scroll {
  overflow: hidden;
}

.mr-auto {
  margin-right: auto;
}

.ml-auto {
  margin-left: auto;
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
  .gradient-bg {
    background: linear-gradient(180deg, rgba(255, 222.55, 51, 0) 0%, rgba(255, 222.55, 51, 0.10) 100%),
               radial-gradient(ellipse 50% 41.77% at 50% 50%, #E6E6FF 0%, rgba(178.50, 178.50, 255, 0) 100%);
  }

  .header-gradient {
    padding: 16px 46px;
    justify-content: flex-start;
    align-items: center;
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 60px;
  }

  .w-full.max-w-3xl.mx-auto.pt-6,
  .w-full.max-w-3xl.mx-auto.mt-16 {
    width: 100%;
    max-width: 100%;
    padding: 0 8px;
    gap: 12px;
  }

  .card {
    padding: 12px;
    margin-bottom: 8px;
  }

  .text-xl {
    font-size: 16px;
    line-height: 24px;
  }

  /* User controls at top */
  .user-controls {
    position: absolute;
    top: 16px;
    display: flex;
    width: 100%;
    padding: 0 8px;
    justify-content: space-between;
    z-index: 10;
  }

  .back-btn,
  .menu-btn {
    width: 40px;
    height: 40px;
    padding: 8px;
    background: #FCFCFB;
    box-shadow: 0px 2px 14px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    outline: 1px solid #E6E6F2;
    outline-offset: -1px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .user-profile {
    margin-left: auto;
  }

  /* Card layouts */
  .card h1,
  .card h2 {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
  }

  .connect-btn {
    padding: 8px 16px;
    width: 100%;
    justify-content: center;
  }

  .info-box {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .info-box .text-xl {
    font-size: 20px;
    line-height: 20px;
  }

  .info-box .text-sm {
    font-size: 14px;
    line-height: 20px;
  }

  /* Campaign header adjustments */
  .card .flex.justify-between.items-center {
    width: 100%;
  }

  /* Mobile visibility controls */
  .user-controls {
    display: flex;
  }

  /* Adjust notification box for mobile */
  .notification-box {
    padding: 12px;
  }

  /* Better spacing for mobile layout */
  .card .flex.flex-col.gap-4 {
    gap: 10px;
  }

  /* Badge positioning */
  .badge {
    margin-left: 4px;
  }

  /* Mobile experiment items */
  .experiment-item {
    padding: 10px;
  }

  /* Mobile experiment detail styles */
  .w-full.max-w-3xl.mx-auto.mt-16 {
    margin-top: 20px;
    padding: 0 8px;
  }

  /* Control button width and alignment on mobile */
  .add-experiment-btn,
  .add-product-btn,
  button[class*="add-"] {
    width: auto !important;
    min-width: 140px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* Adjust header spacing */
  .experiment-list-header h2,
  .product-list-header h2,
  .campaign-list-header h2 {
    font-size: 1.125rem;
    white-space: nowrap;
    margin-right: 0.5rem;
  }
  
  /* Fix for flex container */
  .experiment-list-header,
  .product-list-header {
    flex-wrap: nowrap !important;
    overflow: hidden;
  }
}

/* Desktop-only styles */
@media (min-width: 768px) {
  .user-controls {
    display: none;
  }
  
  /* Adjust main content with sidebar */
  .with-sidebar .w-full.max-w-3xl.mx-auto {
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
  }
  
  /* Give space at the top when we have the sidebar */
  .with-sidebar .gradient-bg {
    padding-top: 1.5rem;
  }
}

/* Experiment Items */
.experiment-item {
  background: rgba(252, 252, 251, 0.9);
  border: 1px solid #E6E6F2;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.experiment-item:hover {
  background: rgba(252, 252, 251, 1);
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
  border-color: #D6D6E2;
}

.experiment-item .flex {
  gap: 8px;
}

/* Animation for adding/removing experiments */
@keyframes opacity {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated {
  animation: opacity 0.3s ease-in-out;
}

/* Experiment Detail Page Styles */
.gradient-bg.experiment-detail {
  background: linear-gradient(180deg, rgba(255, 222.55, 51, 0) 0%, rgba(255, 222.55, 51, 0.10) 100%),
               radial-gradient(ellipse 50.00% 41.77% at 50.00% 50.00%, #FFE6E6 0%, rgba(255, 178.50, 178.50, 0) 100%);
}

/* Button styles for experiment page */
.select-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #FCFCFB;
  border-radius: 0.625rem;
  border: 1px solid #E6E6F2;
  box-shadow: 0px 2px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}

.select-btn:hover {
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.select-btn .icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.select-btn .text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #363B45;
}

/* Settings button */
.settings-btn {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background-color: #FCFCFB;
  border-radius: 0.625rem;
  border: 1px solid #E6E6F2;
  box-shadow: 0px 2px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}

.settings-btn:hover {
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Additional button styles for experiment detail page */
.value-proposition-btn,
.audience-btn {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background-color: #FCFCFB;
  border-radius: 10px;
  border: 1px solid #E6E6F2;
  gap: 8px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.value-proposition-btn:hover,
.audience-btn:hover {
  box-shadow: 0px 2px 14px rgba(0, 0, 0, 0.08);
}

.value-proposition-btn span,
.audience-btn span {
  font-size: 14px;
  font-weight: 600;
  color: #363B45;
}

/* Additional adjustments for experiment detail desktop layout */
@media (min-width: 768px) {
  .card .flex.justify-between.items-center h2 {
    font-size: 20px;
    line-height: 32px;
  }

  .info-box {
    padding: 12px 16px 12px 24px;
  }

  .connect-btn.disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }
}

/* Login and register fixes */
app-login-page, app-register-page {
  display: block;
  height: calc(100vh - 64px);
  overflow: hidden;
}
