/* ===============================
   CHATBOT BUBBLE
================================ */
#zaman-chatbot-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 28px;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4), 0 5px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

#zaman-chatbot-bubble:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5), 0 8px 15px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

#zaman-chatbot-bubble:active {
  transform: scale(1.05) translateY(0);
}

/* ===============================
   CHATBOT BOX (DI ATAS BUBBLE)
================================ */
#zaman-chatbot-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 10px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===============================
   HIDDEN
================================ */
.hidden {
  display: none !important;
}

/* ===============================
   HEADER
================================ */
.zaman-header {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#zaman-close {
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 8px;
  z-index: 10001;
  pointer-events: auto !important;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-weight: 300;
  user-select: none;
  -webkit-user-select: none;
}

#zaman-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

#zaman-close:active {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg) scale(0.95);
}

/* ===============================
   MESSAGE AREA
================================ */
.zaman-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  font-size: 14px;
  background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
  scroll-behavior: smooth;
}

/* Scrollbar styling */
.zaman-messages::-webkit-scrollbar {
  width: 6px;
}

.zaman-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.zaman-messages::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

.zaman-messages::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* USER MESSAGE */
.zaman-messages .user {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 18px 18px 4px 18px;
  margin: 8px 0;
  max-width: 85%;
  margin-left: auto;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  animation: messageSlide 0.3s ease;
}

/* BOT MESSAGE */
.zaman-messages .bot {
  background: #ffffff;
  color: #2d3748;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 4px;
  margin: 8px 0;
  max-width: 85%;
  word-wrap: break-word;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  animation: messageSlide 0.3s ease;
}

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

/* ===============================
   INPUT
================================ */
#zaman-input {
  border: none;
  border-top: 1px solid #e5e7eb;
  padding: 16px 20px;
  font-size: 14px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

#zaman-input:focus {
  border-top-color: #667eea;
  box-shadow: 0 -2px 8px rgba(102, 126, 234, 0.1);
}

#zaman-input::placeholder {
  color: #9ca3af;
  font-style: italic;
}
