@charset "UTF-8";

/* AI styl */
  #chatbox-toggle {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background: #0072bc;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  #chatbox {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 340px;
    max-height: 520px;
    background: linear-gradient(to bottom right, #ffffff, #f0f8ff);
    border: 1px solid #ccc;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    font-family: sans-serif;
    display: none;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
  }

  #chatlog {
    height: 320px;
    overflow-y: auto;
    padding: 10px;
    font-size: 14px;
  }

  #chat-input-row {
    display: flex;
    border-top: 1px solid #ddd;
	background-color:#FFFFFF;
  }

  #userInput {
	  flex: 1;
	  resize: none;
	  border: none;
	  padding: 5px;
	  font-size: 14px;
	  border-radius: 0 0 0 10px;
	  line-height: 1.4;
	  min-height: 40px;
	  background-color:#FFFFFF;
	  font-family: inherit;
	}
	
  #sendBtn {
    background: #0072bc;
    color: white;
    border: none;
    padding: 0 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 0 16px 0;
  }

  #sendBtn:hover {
    background: #005b99;
  }

  .msg {
    margin: 8px 0;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
  }

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

  .user {
    text-align: right;
  }

  .user .bubble {
    background: #e0f3ff;
    color: #003355;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 16px;
    max-width: 80%;
  }

  .bot {
    text-align: left;
  }

  .bot .bubble {
    background: #0072bc;
    color: white;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 16px;
    max-width: 80%;
  }

  .ai-reply {
    line-height: 1.2;
    font-size: 14px;
    padding: 6px 0;
  }

  .intro-message {
    font-size: 13px;
    color: #444;
    background: #e8f4fc;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    line-height: 1.5;
  }
  
  #chatbox-header {
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	  background: #0072bc;
	  color: white;
	  padding: 8px 12px;
	  font-size: 14px;
	  font-weight: bold;
	}
	
	#chatbox-resize {
	  background: none;
	  border: none;
	  color: white;
	  font-size: 18px;
	  cursor: pointer;
	}
	
	#chatbox.expanded {
	  width: 90vw;
	  height: 80vh;
	  max-height: unset;
	  bottom: 50px;
	  left: 50%;
	  transform: translateX(-50%);
	  display: flex;
	  flex-direction: column;
	}
	
	#chatbox.expanded #chatlog {
	  height: calc(100% - 100px);
	}
	
	.ai-question {
	  background: #eaf4fb;
	  padding: 6px 10px;
	  margin: 6px 0;
	  border-left: 4px solid #0072bc;
	  font-style: italic;
	  font-size: 14px;
	}
	
	.bot-typing .dots span {
	  animation: blink 1.4s infinite steps(1);
	  display: inline-block;
	  opacity: 0;
	}
	
	.bot-typing .dots span:nth-child(1) { animation-delay: 0s; }
	.bot-typing .dots span:nth-child(2) { animation-delay: 0.2s; }
	.bot-typing .dots span:nth-child(3) { animation-delay: 0.4s; }
	
	@keyframes blink {
	  0% { opacity: 0; }
	  50% { opacity: 1; }
	  100% { opacity: 0; }
	}
	
	#chatbox-close {
	  background: none;
	  border: none;
	  color: white;
	  font-size: 18px;
	  cursor: pointer;
	  line-height: 1;
	}


  @media (max-width: 768px) {
    #chatbox-toggle {
      width: auto;
      height: auto;
      padding: 10px 14px;
      border-radius: 20px;
      font-size: 16px;
    }
  }
  
  @media (max-width: 768px) {
	  #chatbox-resize {
		display: none;
	  }
	}
/* AI styl koniec */
