.opzio-ai-composer,
.opzio-ai-composer * {
  box-sizing: border-box;
}

.opzio-ai-composer {
  --opzio-composer-glow: rgba(132, 75, 255, 0.6);
  --opzio-composer-button-size: 47px;
  --opzio-composer-icon-size: 16px;
  --opzio-composer-control-gap: 8px;
  position: relative;
  width: 100%;
  margin: 0;
}

.opzio-ai-composer__inner {
  position: relative;
  width: 100%;
  min-height: 195px;
  padding: 38px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(158, 96, 255, 0.32);
  border-radius: 30px;
  background-color: #0b0c12;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.opzio-ai-composer__inner::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -85%;
  height: 120%;
  background: radial-gradient(circle at center, var(--opzio-composer-glow), transparent 37%);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(1.5);
  z-index: 0;
}

.has-hover-lift:hover .opzio-ai-composer__inner {
  transform: translateY(-3px);
}

.has-focus-glow:focus-within .opzio-ai-composer__inner {
  border-color: rgba(180, 120, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 70px var(--opzio-composer-glow);
}

.opzio-ai-composer__plus-wrap {
  position: relative;
  z-index: 50;
}

.opzio-ai-composer__plus-popup {
  pointer-events: auto;
  z-index: 9999;
}

.opzio-ai-composer__plus-option {
  position: relative;
  z-index: 10000;
  pointer-events: auto;
}

.opzio-ai-composer.is-plus-open .opzio-ai-composer__textarea {
  pointer-events: none;
}

.opzio-ai-composer__textarea {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 170px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
  padding: 0;
}
.opzio-ai-composer__textarea:focus{
  border:none !important
}

.opzio-ai-composer__textarea::placeholder {
  color: #8f8f9f;
  opacity: 1;
}

.opzio-ai-composer__presets {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.opzio-ai-composer__preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.opzio-ai-composer__preset:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
}

.opzio-ai-composer__footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.opzio-ai-composer__left,
.opzio-ai-composer__right {
  display: flex;
  align-items: center;
  gap: var(--opzio-composer-control-gap);
}


.opzio-ai-composer__button,
.opzio-ai-composer__mode {
  appearance: none;
  border: 0;
  outline: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, filter 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.opzio-ai-composer__button {
  width: var(--opzio-composer-button-size);
  height: var(--opzio-composer-button-size);
  min-width: var(--opzio-composer-button-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0 !important;
  color: #ffffff;
}

.opzio-ai-composer__button svg {
  width: var(--opzio-composer-icon-size);
  height: var(--opzio-composer-icon-size);
  display: block;
}

.opzio-ai-composer__button:hover,
.opzio-ai-composer__mode:hover {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.1);
}

.opzio-ai-composer__mode {
  min-height: var(--opzio-composer-button-size);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.05) !important;
  border-radius: 999px;
  padding: 0 12px !important;
  color: #797c8c;
}

.opzio-ai-composer__mode-icon {
  display: inline-flex;
}

.opzio-ai-composer__mode-icon svg {
  width: calc(var(--opzio-composer-icon-size) - 1px);
  height: calc(var(--opzio-composer-icon-size) - 1px);
}

.opzio-ai-composer__mode-text {
  font-size: 12px;
  line-height: 1;
}

.opzio-ai-composer__submit {
  background: #ad72c6;
  color: #ffffff;
}

.opzio-ai-composer__mic,
.opzio-ai-composer__submit {
  position: relative;
}

.has-mic-pulse.is-listening .opzio-ai-composer__mic::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid currentColor;
  animation: opzComposerMicPulse 1.1s ease-out infinite;
}

.opzio-ai-composer.is-empty .opzio-ai-composer__inner {
  animation: opzComposerShake 0.35s ease;
}

.opzio-ai-composer.is-private-mode .opzio-ai-composer__mode {
  color: #ffffff;
  border-color: rgba(173, 114, 198, 0.65) !important;
  background: rgba(173, 114, 198, 0.18) !important;
}


.opzio-ai-composer__status {
  position: relative;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.opzio-ai-composer__status-chip {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.opzio-ai-composer.is-web-search-enabled .opzio-ai-composer__status,
.opzio-ai-composer.has-files .opzio-ai-composer__status {
  display: flex;
}

.opzio-ai-composer.is-web-search-enabled .opzio-ai-composer__status-chip--web {
  display: inline-flex;
}

.opzio-ai-composer.has-files .opzio-ai-composer__status-chip--file {
  display: inline-flex;
}

.opzio-ai-composer.is-web-search-enabled .opzio-ai-composer__plus {
  color: #ffffff;
  background: rgba(48, 180, 120, 0.35);
}

.opzio-ai-composer.has-files .opzio-ai-composer__plus {
  color: #ffffff;
  background: rgba(255, 86, 56, 0.35);
}

@keyframes opzComposerMicPulse {
  from { transform: scale(0.7); opacity: 0.7; }
  to { transform: scale(1.35); opacity: 0; }
}

@keyframes opzComposerShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}


.opzio-ai-composer__plus-wrap {
  position: relative;
  display: inline-flex;
}

.opzio-ai-composer__plus-popup {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  min-width: 160px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: #111;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transform-origin: left bottom;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 999;
}

.opzio-ai-composer.is-plus-open .opzio-ai-composer__plus-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.opzio-ai-composer__plus-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px !important;
  border: 0;
  border-radius: 8px;
  background: transparent !important;
  color: #fff;
  font-size: 14px !important;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.opzio-ai-composer__plus-option:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(2px);
}

.opzio-ai-composer__plus-option-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.opzio-ai-composer__plus-option-icon svg {
  width: 16px;
  height: 16px;
}

.opzio-ai-composer__response {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  display: none;
}

.opzio-ai-composer__response:not(:empty) {
  display: block;
}

.opzio-ai-composer.is-generating .opzio-ai-composer__submit {
  opacity: 0.65;
  pointer-events: none;
}

@media (max-width: 767px) {
  .opzio-ai-composer__inner { min-height: 170px; }
  .opzio-ai-composer__footer { align-items: flex-end; }
  .opzio-ai-composer__mode-text { display: none; }
  .opzio-ai-composer__mode {
    width: var(--opzio-composer-button-size);
    padding: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opzio-ai-composer *,
  .opzio-ai-composer *::before,
  .opzio-ai-composer *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
