/* Updated CSS */
.zild-chat-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--wp--preset--color--contrast-3, #ccc);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
  color: inherit;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.zild-chat-container.first-message-sent {
  animation: expandContainer 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes expandContainer {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.zild-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.zild-chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 20px;
}

.zild-chat-welcome-title {
  font-size: 24px;
  font-weight: 600;
  color: #6366f1;
  margin-bottom: 8px;
  text-align: center;
}

.zild-chat-welcome-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
  text-align: center;
}

.zild-chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.zild-chat-suggestion-btn {
  padding: 14px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.zild-chat-suggestion-btn:hover {
  border-color: #6366f1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.15);
}

.zild-chat-suggestion-btn:active {
  transform: translateY(0);
}

.zild-chat-message { 
  margin-bottom:16px; 
  max-width:85%; 
  white-space:pre-wrap;
  animation: slideIn 0.4s ease-out;
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zild-chat-message-user {
  margin-left:auto; 
  padding:12px 18px; 
  border-radius:18px 18px 4px 18px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  font-weight: 500;
}

.zild-chat-message-bot {
  padding:12px 18px; 
  border-radius:18px 18px 18px 4px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(249,250,251,0.9) 100%);
  border:1px solid var(--wp--preset--color--contrast-3,#e5e7eb);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
}

.zild-chat-message-bot.typing {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.zild-chat-input-row { 
  display:flex; 
  padding:12px; 
  border-top:1px solid var(--wp--preset--color--contrast-3,#ccc);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

#zild-chat-input {
  flex:1; 
  min-width:70%; 
  padding:12px; 
  height:55px;
  border:2px solid var(--wp--preset--color--contrast-3,#e5e7eb);
  border-radius:12px; 
  background: #ffffff;
  color:inherit;
  margin:0 !important;
  transition: all 0.3s ease;
  font-family: inherit;
  resize: none;
}

#zild-chat-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#zild-chat-send {
  margin-left:10px; 
  padding:0 24px; 
  border-radius:12px;
  border:none;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  cursor:pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

#zild-chat-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

#zild-chat-send:active {
  transform: translateY(0);
}

#zild-chat-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
