html, body {
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

*, *:before, *:after {
  box-sizing: border-box;
}

.center-chatbot {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 15px;
  min-height: 0;
  box-sizing: border-box;
}

#plantcare-container {
  width: 70vw;
  max-width: 90vw;
  min-width: 300px;
  min-height: 100px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 48px rgba(80, 30, 60, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 3.5px solid #05443a;
  position: relative; /* WAŻNE! */
  margin: 0 auto;
  height: 75vh;
  max-height: 95vh;
}

/* FA-LIST MENU BUTTON (teraz w stylu WYŚLIJ) */
#plantcare-menu-btn {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 1011;
  background: #05443a;
  color: #fff;
  border: none;
  border-radius: 13px;
  box-shadow: 0 1.5px 8px #2c4a2e20;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.7rem;
  transition: background 0.18s, box-shadow 0.18s;
}
#plantcare-menu-btn .fa-list {
  color: #fff;
  font-size: 1.44em;
}
#plantcare-menu-btn:hover {
  background: #0c6b59;
  box-shadow: 0 2px 8px #05443a40;
}

@media (max-width: 700px) {
  #plantcare-menu-btn {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.28rem;
    border-radius: 10px;
  }
}

/* --- Reszta stylów czatu --- */

#plantcare-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px 14px 12px 14px;
  background: #fff;
  min-height: 120px;
}

#plantcare-input-area {
  display: flex;
  align-items: center;
  border-top: 1.5px solid #05443a;
  background: #fff;
  padding: 8px 8px;
  border-radius: 18px;
  margin: 12px;
  box-shadow: 0 1px 6px #d2ffe650;
  gap: 7px;
}

#plantcare-image-preview-container {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-right: 8px;
}
#plantcare-image-preview {
  position: relative;
  display: inline-block;
}
#plantcare-preview-img {
  max-width: 64px;
  max-height: 64px;
  border-radius: 10px;
  box-shadow: 0 2px 12px #78b18380;
}
#plantcare-remove-img {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fff;
  border: 1px solid #05443a;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-weight: bold;
  line-height: 18px;
  padding: 0;
  color: #05443a;
}

#plantcare-file-label,
#plantcare-camera-label {
  background: #f4f8f6;
  border: 2px solid #05443a;
  border-radius: 13px;
  padding: 9px 10px 7px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-right: 4px;
  transition: background 0.16s, border-color 0.16s;
  box-shadow: 0 0.5px 4px #60c06b30;
}

#plantcare-file-label svg,
#plantcare-file-label svg * {
  stroke: #05443a !important;
}
#plantcare-camera-label svg,
#plantcare-camera-label svg * {
  stroke: #05443a !important;
}
#plantcare-file-label i,
#plantcare-camera-label i {
  color: #05443a !important;
}

#plantcare-input {
  flex:1;
  border:none;
  outline:none;
  font-size: 16px !important;
  background:transparent;
  color:#05443a;
  font-family:inherit;
  border-radius:12px;
  padding:13px 14px;
}

#plantcare-send {
  background: #05443a;
  color: #fff;
  border: none;
  border-radius: 13px;
  padding: 9px 10px 7px 10px;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
  margin-left: 4px;
  box-shadow: 0 1px 4px #2c4a2e20;
  height: 44px;
  width: 44px;
}
#plantcare-send svg {
  width: 22px;
  height: 22px;
  display: block;
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(40px);}
  to   { opacity: 1; transform: translateX(0);}
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-40px);}
  to   { opacity: 1; transform: translateX(0);}
}

.plantcare-message.user {
  align-self: flex-end;
  background: #dceee6;
  color: #05443a;
  border-radius: 18px 18px 6px 18px;
  padding: 8px 15px;
  font-weight: 500;
  font-size: 1.07em;
  opacity: 0;
  animation: slide-in-right 0.5s cubic-bezier(.32,1.6,.43,.95) both;
}
.plantcare-message.bot, .plantcare-message.wait {
  align-self: flex-start;
  background: #f4f8f6;
  color: #05443a;
  border-radius: 18px 18px 18px 6px;
  padding: 8px 15px;
  font-size: 1.07em;
  opacity: 0;
  animation: slide-in-left 0.5s cubic-bezier(.32,1.6,.43,.95) both;
}
.plantcare-message img {
  max-width: 360px;
  max-height: 360px;
  border-radius: 18px;
  margin: 4px 0 0 0;
  box-shadow: 0 2px 12px #78b18340;
  display: block;
}
.plantcare-main-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  align-items: stretch;
  opacity: 0;
  animation: slide-in-left 0.5s cubic-bezier(.32,1.6,.43,.95) both;
}

.plantcare-main-btn {
  background: #f4f8f6;
  color: #05443a;
  font-weight: bold;
  border: 2px solid #05443a;
  border-radius: 14px;
  padding: 16px 9px;
  font-size: 1.09em;
  cursor: pointer;
  margin: 0;
  transition: background 0.16s, border-color 0.16s;
  text-align: left;
  box-shadow: none;
  outline: none;
}
.plantcare-main-btn:hover {
  background: #dceee6;
  border-color: #78b183;
}

/* ANIMACJA KROPEK */
.typing-dots {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}
.typing-dots span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 1px;
  background: #78b183;
  border-radius: 50%;
  opacity: 0.7;
  animation: blink 1.1s infinite both;
}
.typing-dots span:nth-child(2) { animation-delay: .3s;}
.typing-dots span:nth-child(3) { animation-delay: .6s;}
@keyframes blink {
  0%,80%,100% { opacity: 0.25;}
  40% { opacity: 1;}
}

@media (max-width: 700px) {
  .center-chatbot {
    padding-top: 0 !important;
    align-items: flex-start;
    min-height: 100vh !important;
  }
  body {
    overflow-x: hidden !important;
  }
  #plantcare-container {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    border-radius: 0 !important;
    border-width: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    max-height: 100vh !important;
  }
  #plantcare-input-area {
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 6px 4px !important;
  }
  #plantcare-messages {
    padding: 12px 4px 10px 4px !important;
  }
  #plantcare-input {
    font-size: 16px !important;
  }
  #plantcare-send {
    width: 38px !important;
    height: 38px !important;
    padding: 7px 7px !important;
  }
  #plantcare-send svg {
    width: 18px !important;
    height: 18px !important;
  }
  #plantcare-menu-btn {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.28rem;
    border-radius: 10px;
  }
}
@media (max-width: 430px) {
  #plantcare-container {
    width: 100vw !important;
    max-width: 100vw !important;
  }
  #plantcare-send {
    padding: 8px 8px !important;
    font-size: 1em !important;
    width: 34px !important;
    height: 34px !important;
  }
  #plantcare-send svg {
    width: 14px !important;
    height: 14px !important;
  }
}

/* --------- NOWA SEKCJA: Wymuszone ukrycie FAB na starcie --------- */
#plantcare-menu-btn {
  display: none !important;
}

