/* Parky Chatbot CSS */

#parky-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  cursor: pointer;
  width: 110px;
  height: 110px;
  transition: transform 0.2s ease;
}

#parky-button:hover {
  transform: scale(1.45);
}


#parky-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#parky-chatbox {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 360px;
  height: 480px;
  background: white;
  border: 2px solid #0db58f;
  border-radius: 12px;
  z-index: 1001;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

/* Resizable handles was pain to do still dosent work how i wanted it */
.parky-resize-handle {
  position: absolute;
  z-index: 1002;
  background: transparent;
}
.parky-resize-handle.right {
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  cursor: ew-resize;
}
.parky-resize-handle.left {
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  cursor: ew-resize;
}
.parky-resize-handle.bottom {
  bottom: 0;
  left: 0;
  height: 6px;
  width: 100%;
  cursor: ns-resize;
}
.parky-resize-handle.top {
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  cursor: ns-resize;
}

#parky-header {
  background: #0db58f;
  color: white;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  border-radius: 12px 12px 0 0;
  user-select: none;
}

#parky-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

#parky-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
  background: #fff;
}

/*  input area container */
#parky-input-section {
  display: flex;
  border-top: 1px solid #ccc;
  padding: 10px;
  gap: 8px;
  box-sizing: border-box;
  background: #f9f9f9;
}

#parky-input {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#parky-send {
  background: #0db58f;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease-in-out;
}

#parky-send:hover {
  background: #0aa57f;
}

.parky-msg {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.parky-msg.user {
  justify-content: flex-start;
}

.parky-msg.bot {
  justify-content: flex-end;
}

.parky-msg .bubble {
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 75%;
  font-size: 0.95rem;
  line-height: 1.4;
}

.parky-msg.user .bubble {
  background: #f1f1f1;
  color: black;
  border-top-left-radius: 0;
}

.parky-msg.bot .bubble {
  background: #0db58f;
  color: white;
  border-top-right-radius: 0;
}

.parky-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* Typing animation */
.parky-typing {
  font-style: italic;
  color: #999;
  padding: 5px 14px;
  font-size: 13px;
  animation: blink 1s steps(1, start) infinite;
}

@keyframes blink {
  50% { opacity: 0.5; }
}
