.chatbot-back-btn:hover {
background-color: #e8f1e5;
color: #00000080

}

.chatbot-settings-panel {
max-width: 500px;
margin: 0;
background: #f8f8f4;
border-radius: 20px;
padding: 10px;
box-sizing: border-box;

}

.setting-group {
margin: 2px;

}

.setting-group .font-option.small{font-size:10px!important}

.setting-group .font-option.medium{font-size:14px!important}

.setting-group .font-option.large{font-size:16px!important}

.group-title {
font-size: 12px;
font-weight: bold;
color: #00000050;
margin-bottom: 2px;

}

#chatbot_container label {
display: auto;
margin: 4px 0 4px;

}

#chatbot_container select {
width: 30%;
padding: 4px 10px;
border-radius: 8px;
border: 1px solid #ccc;

}

#chatbot_container .toggle-row {
display: flex;
justify-content: space-between;
align-items: center;
margin: 6px 0;
font-size: 12px;

}

#chatbot_container .font-size {
margin-top: 2px;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 12px;

}

#chatbot_container .font-buttons {
display: flex;
gap: 8px;
margin-top: 6px;

}

#chatbot_container .font-buttons button {
flex: 1;
padding: 6px;
border-radius: 8px;
border: 1px solid #ccc;
background: #fff;
font-weight: 500;
cursor: pointer;

}

#chatbot_messages{
display: flex;
flex-direction: column;
height: 400px; /* Sabit yükseklik */
overflow-y: auto;

padding-left: 4px;
padding-right: 4px;
border: 1px solid #ccc;
background-color: #f9f9f9;
width:100%

}

#chatbot_container .font-buttons .active {
border: 2px solid #96b165;
font-weight: bold;

}

#chatbot_container hr {
border: none;
height: 1px;
background: #ddd;
margin: 10px auto;
display: flex;
max-width: 80%;

}

#chatbot_container .delete-button {
width: 30%;
background: #f44336;
color: white;
border: none;
padding: 4px;
font-weight: 400;
border-radius: 8px;
cursor: pointer;
margin-top: 7px;

}

#chatbot_container .delete-button:hover {
background: #d32f2f;

}

#chatbot_container .switch {
position: relative;
display: inline-block;
width: 40px;
height: 21px;

}

#chatbot_container .switch input {
opacity: 0;
width: 0;
height: 0;

}

#chatbot_container .slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: none;
transition: 0.4s;
border: #00000050 1px solid;
border-radius: 24px;

}

#chatbot_container .slider::before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 3px;
bottom: 2px;
background-color: #00000030;
transition: 0.4s;
border-radius: 50%;

}

#chatbot_container .switch input:checked+.slider {
background: none;
border: #aedb5b 1px solid;

}

#chatbot_container .switch input:checked+.slider::before {
transform: translateX(16px);
background-color: #96b165;

}

#chatbot_container .font-size-selector {
display: flex;
justify-content: space-between;
gap: 0px;
padding: 3px 6px;
background: none;
border: 1px solid #d6e2b9;
border-radius: 12px;
width: 150px;
margin-top: 0px;
font-family: sans-serif;

}

#chatbot_container .font-option {
cursor: pointer;
padding: 4px 0px;
border-radius: 12px;
font-weight: 500;
color: #555;
transition: background-color 0.3s, color 0.3s;
font-size: 12px;

}

#chatbot_container .font-option.active {
font-weight: 600;
color: #96b165;
font-size: 14px

}

#chatbot_container .font-option.small {
font-size: x-small;

}

#chatbot_container .font-option.large {
font-size: large;
	width:49px;
}

#chatbot_container .setting-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2px;

}

#chatbot_container .setting-row label {
flex: 1;
font-size: 12px;

}

#chatbot_container .setting-row select,

#chatbot_container .setting-row .toggle-switch {
margin-left: 20px;
font-size: 12px;

}

.chatbot-container {


font-family: 'Segoe UI', sans-serif;
background: #f8f8f4;
color: #333;
display: flex;
flex-direction: column;
align-items: center;
width: 330px;
height: auto;
position: fixed;
bottom: 20px;
right: 20px;
border-radius: 12px 12px 0px 0px;
border: 1px solid #d6e2b9;
overflow: hidden;
z-index: 9999;
overflow-y: auto;
justify-content: space-between;

}

.chatbot-page {
display: flex;
flex-direction: column;
align-items: center;
overflow: hidden;
z-index: 9999;
overflow-y: auto;
justify-content: flex-start;
height: 100%;

}

#chatbot_container.messages .chatbot-page.messages {
transform: scale(1, 1);
transition: transform 0.4s ease;

}

.chatbot-page.messages p{
margin:0!important;

}

#chatbot_container.messages .chatbot-header-group.messages {
display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;

}

#chatbot_container.messages .chatbot-page.settings {
transform: scale(0, 0);
transition: transform 0.4s ease;
height: 0;

}

#chatbot_container.messages .chatbot-header-group.settings {
display: none;

}

#chatbot_container.settings .chatbot-page.settings {
transform: scale(1, 1);
transition: transform 0.4s ease;

}

#chatbot_container.settings .chatbot-header-group.settings {
display: flex;

}

#chatbot_container.settings .chatbot-page.messages {
transform: scale(0, 0);
transition: transform 0.4s ease;
height: 0;

}

#chatbot_container.settings .chatbot-header-group.messages {
display: none;

}

#chatbot_container.settings .chatbot-align-bottom>.bottom-bar {
display: none;

}

.chatbot-scrollable {
overflow-y: scroll;

}

.chatbot-align-bottom,

.chatbot-align-top {
width: 100%;
margin-top: 18px;
margin-bottom: 4px;

}

.chatbot-align-top {
display: contents;
overflow-y: scroll;

}

.chatbot-settings-btn, .chatbot-back-btn, .chatbot-close-btn {
position: absolute;
top: 20px;
left: 18px;
background-color: #edf2ec;
border-radius: 6px;
padding: 8px;
border: 1px solid #95AC57;
cursor: pointer;
color: #333;
font-size: 18px;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;

}

.chatbot-close-btn {
right: 18px;
left: auto;

}



#chatbot_container .chatbot-settings-btn:hover {
background-color: #dfe9dd;

}

#chatbot_container .chatbot-title {
text-align: center;
/*margin-bottom: 15px;*/

}

#chatbot_container h1.chatbot-title{
font-size: 24px;
font-weight: 700;
margin-top:12px;
width: 100%;
}

#chatbot_container .chatbot-title p {
font-size: 15px;
color: #555;
margin: 0;

}

#chatbot_container .question-buttons {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: 20px 0;
gap: 5px;
min-width:100%;
}

#chatbot_container .question-buttons button {
padding: 6px 4px;
font-size: 10px;
font-weight: 400;
border-radius: 5px;
background-color: #00000003;
cursor: pointer;
transition: all 0.2s ease-in-out;
max-width: 48%;
line-height: 1.05rem;
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.6);
}

#chatbot_container .question-buttons button.green {
border: 1.5px solid #6F8E15;

}

#chatbot_container .question-buttons button.green:hover {
background-color: #dfe9dd;

}


#chatbot_container .bottom-bar {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
max-width: 600px;
margin: 0 auto;
height: 60px;
padding: 8px;
box-sizing: border-box;
position: relative;
bottom: 10px;

}

#chatbot_container .menu-btn,

#chatbot_container .mic-btn {
background-color: #edf2ec;
border: 1px solid #6F8E15;
border-radius: 8px;
padding: 10px;
font-size: 16px;
cursor: pointer;
flex-shrink: 0;
width: 41px;
height: 41px;

}

#chatbot_container .menu-btn:hover {
background-color: #dfe9dd;

}

#chatbot_container .send-btn {
background-color: white;
cursor: pointer;
width: 41px;
height: 41px;
padding: 10px;
border: none;

}

#chatbot_container .send-btn:hover {
transition: color 0.3s ease;
color: #6F8E15;

}

#chatbot_container .input-group {
display: flex;
flex: 1;
border: 1.5px solid #c6dc91;
border-radius: 8px;
overflow: hidden;
background-color: white;

}

#chatbot_container .input-group input {
flex: 1;
border: none;
padding: 10px;
font-size: 11px;
outline: none;

}

#chatbot_container a {
color: inherit;
text-decoration: none;

}

.chatbot-logo {
max-width: 70px;
height: auto;

}

@media (min-width: 768px) {
.question-buttons {
	max-width: 600px;
}
.question-buttons button {
	font-size: 10px;
	padding: 6px 18px;
}


.chatbot-logo {
	max-width: 72px;
}

}

@media (max-width: 992px) {

}

@media (max-width: 576px) {


#chatbot_messages{
	height:100%;
}
	.chatbot-container{
		width:90%;
		height:90%;
		
		margin-right: 0;
		margin: 0 auto;
		top: 50%!important;
		left: 50%!important;
		transform: translate(-50%, -50%);
	}

}

.chatbot-footer {
width: 100%;
text-align: left;
padding: 0px 10px;
color: #474747;
font-size: 9px;
position: relative;
bottom: 0;
left: 0;
z-index: 1000;
text-align: center;

}

.chatbot-footer a {
color: #000;
text-decoration: none;
font-weight: normal;

}

.chatbot-footer a:hover {
text-decoration: underline;

}

.chatbot-icon {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;

}

.chatbot-container.messages.large .chatbot-page *{
font-size:large!important;

}



.chat-bubble {
max-width: 100%;
padding: 6px 10px;
margin: 2px;
font-size: 11px;
background-color: #00000005;
border: 1.5px solid #c6dc91;
color: #333;
position: relative;
line-height: 1.5;
margin-bottom:20px;

}

.chat-bubble.user {
align-self: flex-end;
border-radius: 10px 0 10px 10px;
margin-right: 8px;
margin-left:40px;
}

.chat-bubble.bot {
align-self: flex-start;
border-radius: 0 10px 10px 10px;
margin-left: 8px;
margin-right:40px;
}

.typing {
align-items: center;
display: flex;
height: 17px;

}

.typing .dot {
animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
background-color: #6CAD96 ; 
border-radius: 50%;
height: 7px;
margin-right: 4px;
vertical-align: middle;
width: 7px;
display: inline-block;

}

.typing .dot:nth-child(1) {
animation-delay: 200ms;

}

.typing .dot:nth-child(2) {
animation-delay: 300ms;

}

.typing .dot:nth-child(3) {
animation-delay: 400ms;

}

.typing .dot:last-child {
margin-right: 0;

}

@keyframes mercuryTypingAnimation {
0% {
  transform: translateY(0px);
  background-color:#6CAD96; 
}
28% {
  transform: translateY(-7px);
  background-color:#9ECAB9; 
}
44% {
  transform: translateY(0px);
  background-color: #B5D9CB;
}

}



#chat-circle {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: white;
    padding: 0;
    cursor: pointer;
	z-index:99999;
}
#chat-circle button {
    border-radius: 50%;
    width:100%;
    height:100%;
	background: #fefefe66;
	border:2px solid #eee;
	padding: 0px 2px 3px 4px;

}
#chat-circle button i{
font-size: 32px;
} 

#chatbot_container .delete-button{font-size:10px}
.chatbot-container.messages.small .chatbot-page.messages *{
font-size:11px!important;

}

.chatbot-container.messages.medium .chatbot-page.messages *{
font-size:12px!important;

}
.chatbot-container.messages.large .chatbot-page.messages *{
font-size:16px!important;

}
.chatbot-container.contrast .chatbot-page.messages {
	background-color:#111!important; 
}
.chatbot-container.contrast .chatbot-page.messages *{
	color:#fefefe!important;
}
.chatbot-container.contrast .chatbot-page.messages .question-buttons button{
    border-style: outset !important;
    border-width: 2px !important;
	background-color: #333!important;
    border-color: #ccc !important;

}
#chatbot_container.contrast .question-buttons button.green:hover {
background-color: #111!important;

}


.cursor {
    border-left: 2px solid orange;
    margin-left: 3px;
    animation: blink 0.7s step-end infinite;
  }
  @keyframes blink { 50% { border-color: transparent; } }

#cursor {
    display: inline-block;
    color: orange;
    font-weight: bold;
    margin-left: 2px;
    animation: blink-fast 0.2s step-end infinite;
}

#cursor.slow {
    animation: blink-slow 1s step-end infinite;
}



.typewriter {
  color: #333;
  overflow: hidden;
  border-right: .15em solid orange;
  white-space: nowrap;
  margin: 0 auto;
  
  /* 1. typing: 0.5s hızlı yazım
     2. blink-fast: Yazım sırasında hızlı imleç (5 tekrar = 0.5s)
     3. blink-slow: Yazım bittikten sonra başlayan (0.5s delay), 
        3 kez yavaşça yanıp sönen ve sonra biten animasyon
  */
  animation: 
    typing 0.5s steps(30, end) forwards, 
    blink-fast .1s step-end 5, 
    blink-slow 1s step-end 0.5s 3 forwards; /* 3 kez yanıp söner ve durur */
}



/* Yazma efekti */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* Yazma sırasındaki hızlı imleç */
@keyframes blink-fast {
  from, to { border-color: transparent }
  50% { border-color: orange }
}

/* Yazma bittikten sonraki yavaş imleç */
@keyframes blink-slow {
  from { border-color: orange }
  50% { border-color: transparent }
  /* 'forwards' sayesinde en son bu durumda (şeffaf) kalacak */
  to { border-color: transparent }
}