/* Component-specific styles to replace inline styles */

/* Dialog (modal) centering */
dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Background effects */
.background-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

/* Voice recording rings */
[data-voice-ring="outer"] {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

[data-voice-ring="inner"] {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
}

/* Atmospheric glows */
.atmospheric-glow-purple {
  background: radial-gradient(circle, rgba(255, 200, 255, 0.4), transparent);
}

.atmospheric-glow-zinc {
  background: radial-gradient(circle, rgba(161, 161, 170, 0.3), transparent);
}

.atmospheric-glow-yellow {
  background: radial-gradient(circle, rgba(255, 255, 200, 0.3), transparent);
}

/* Animation delays */
.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }
.delay-3 { animation-delay: 3s; }
.delay-6 { animation-delay: 6s; }

/* Mobile menu transform */
[data-mobile-menu-initial="true"] {
  transform: translateX(100%);
}

/* Status indicators */
.status-indicator-blue {
  animation-delay: 0.5s;
}

.status-indicator-purple {
  animation-delay: 1s;
}

/* Glow field dynamic styles - these need to be inline due to dynamic values */
.glow-field {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(20px);
  animation: float-glow infinite ease-in-out;
  --glow-scale: 1;
}

@keyframes float-glow {
  0%, 100% {
    transform: translateY(0px) scale(calc(1 * var(--glow-scale, 1)));
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) scale(calc(1.1 * var(--glow-scale, 1)));
    opacity: 0.9;
  }
}

/* Responsive scaling for glow fields on small screens */
@media (max-width: 768px) {
  .glow-field {
    filter: blur(15px);
    --glow-scale: 0.4;
  }
}

@media (max-width: 480px) {
  .glow-field {
    filter: blur(12px);
    --glow-scale: 0.3;
  }
}

/* Email styles for mailer templates */
.email-container {
  font-family: Arial, sans-serif;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.email-header {
  color: #333;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

.email-section {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin: 20px 0;
  border-left: 4px solid #007bff;
}

.email-section.warning {
  border-left-color: #ffc107;
}

.email-section h3 {
  color: #007bff;
  margin-top: 0;
}

.email-section.warning h3 {
  color: #ffc107;
}

.email-section p,
.email-section div {
  margin-bottom: 0;
}

.email-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.email-footer p {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.email-footer .center {
  text-align: center;
  margin: 0;
}

.email-footer a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.contact-message {
  padding: 15px;
  background-color: #f5f5f5;
  border-left: 4px solid #007cba;
  margin: 10px 0;
}

.contact-footer {
  margin: 20px 0;
  color: #666;
  font-size: 12px;
}

/* Ensure chat input caret is always visible */
[data-chat-target="bottomInput"],
[data-chat-target="centerInput"] {
  caret-color: currentColor !important;
}

[data-chat-target="bottomInput"]:focus,
[data-chat-target="centerInput"]:focus {
  caret-color: currentColor !important;
}

/* CRITICAL: Ensure bottom input always has correct height */
[data-chat-target="bottomInput"] {
  height: 3rem !important;
  min-height: 3rem !important;
  display: block !important;
  line-height: 1.5rem !important;
}

[data-chat-target="bottomInput"]:empty,
[data-chat-target="bottomInput"]:not(:focus) {
  height: 3rem !important;
  min-height: 3rem !important;
}
