* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	background-color: #dbdbdb;
	color: #333;
	line-height: 1.6;
}

code {
  font-family: monospace; 
  font-size: 0.85em;    
  background-color: #f5f5f5;
  padding: 2px 5px;    
  border-radius: 3px;    
}
a{
	color: #D2691E;
	border-bottom: 1px solid #D2691E;
	text-decoration: none;
	transition: border-bottom 0.3s ease;
}

a:hover {
	color: #333;
	border-bottom: 1px solid #333;
}
select {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

select:hover {
  border-color: #999;
}

select:focus {
  border-color: #D2691E;
  box-shadow: 0 0 0 2px rgba(210, 105, 30, 0.25);
}

.name-container{
  font-size: 18px;
  font-weight: 500;
  color: #333;
  text-align: center;
  margin-bottom: 5px;
}
.container {
	display: flex;
	width: 100%;
	margin: 0 auto;
	margin-left: auto;   
	margin-right: auto;
	padding: 20px;
	min-height: 100vh;
}

.chat-container {
	flex: 3;
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	margin-right: 20px;
	margin-left: 20px;
	overflow: hidden;
}
.first-container {
  display: flex;
  flex-direction: column;
}
.second-container {
	display: flex;
	flex-direction: column;
	gap: 7px; 
}
.ad-container {
	flex: 1;
	background: white;
	min-width: 300px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	padding: 20px;
	display: flex;
	flex-direction: column;
}
.settings-container {
	flex: 1;
	gap: 15px; 
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	padding: 20px;
	margin-bottom: 10px;
	display: flex;
	flex-direction: column;
}
.chat-header {
	background: #D2691E;
	color: white;
	padding: 20px;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 600;
}

.chat-messages {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	max-height: calc(100vh - 200px);
}

.message {
	margin-bottom: 15px;
	display: flex;
}

.user-message {
	justify-content: flex-end;
}

.ai-message {
	justify-content: flex-start;
}

.message-content {
	max-width: 70%;
	padding: 12px 16px;
	border-radius: 18px;
}

.user-message .message-content {
	background: #D2691E;
	color: white;
	border-bottom-right-radius: 4px;
}

.ai-message .message-content {
	background: #f0f0f0;
	color: #333;
	border-bottom-left-radius: 4px;
}

.chat-input {
	display: flex;
	padding: 15px;
	border-top: 1px solid #eee;
	background: white;
}

.chat-input input {
	flex: 1;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 24px;
	outline: none;
	font-size: 1rem;
}

.chat-input button {
	margin-left: 10px;
	padding: 12px 20px;
	background: #D2691E;
	color: white;
	border: none;
	border-radius: 24px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.3s;
}

.chat-input button:hover {
	background: #d77d31;
}

.ad-placeholder {
	flex: 1;
	background: #f9f9f9;
	border: 2px dashed #ddd;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	color: #888;
	font-size: 1.2rem;
	text-align: center;
	padding: 20px;
}

.ad-content {
	flex: 1;
	background: #f9f9f9;
	border-radius: 8px;
	padding: 15px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ad-content h3 {
	margin-bottom: 10px;
	color: #D2691E;
}

.ad-content p {
	text-align: center;
	color: #666;
	margin-bottom: 15px;
}

.settings-container{

}
.button {
  position: relative;
  overflow: hidden;
  padding: 8px 20px;
  background: #D2691E;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
  pointer-events: none; 
}

@keyframes ripple-effect {
  to {
    transform: scale(2); 
    opacity: 0;
  }
}

.button:hover {
	background-color: #d77d31;
	background-position: right center; 
}
#notification-container {
  position: fixed;
  top: 20px; 
  right: 20px; 
  display: flex;
  flex-direction: column; 
  align-items: flex-end; 
  z-index: 1000; 
  pointer-events: none; 
}

.notification {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 10px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0; 
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  transform: translateX(50px); 
  pointer-events: auto; 
}

.notification.show {
  opacity: 1; 
  transform: translateX(0); 
}

.notification .close-button {
  float: right;
  cursor: pointer;
  margin-left: 10px;
  font-weight: bold;
}

.notification.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.notification.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.notification.warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 10px;
  }
  
  .chat-container {
    flex: none;
    margin: 0 0 15px 0;
    border-radius: 8px;
    height: 70vh;
  }
  
  .ad-container,
  .settings-container {
    flex: none;
    margin: 0 0 15px 0;
    padding: 15px;
  }
  
  .chat-header {
    padding: 15px;
    font-size: 1.2rem;
  }
  
  .chat-messages {
    padding: 15px;
    max-height: calc(70vh - 120px);
  }
  
  .message-content {
    max-width: 85%;
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  
  .chat-input {
    padding: 12px;
  }
  
  .chat-input input {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  
  .chat-input button {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .ad-content h3 {
    font-size: 1rem;
  }
  
  .ad-content p {
    font-size: 0.85rem;
  }
  
  #notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    align-items: center;
  }
  
  .notification {
    width: 100%;
    max-width: 300px;
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

.visitor-counter {
	flex: 1;
	background: white;
	border-radius: 12px;
	border: 0.2px solid black;
	max-height: 70px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	text-align: center;
}

.visitor-counter__date {
  font-weight: bold;
  margin-bottom: 5px; 
  color: #555; 
}

.visitor-counter__count {
  font-size: 1.2em; 
  color: #007bff;
}

@media (max-width: 768px) {
  .visitor-counter {
    font-size: 12px;
    padding: 5px;
  }

  .visitor-counter__count {
    font-size: 1em;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 5px;
  }
  
  .chat-container,
  .ad-container,
  .settings-container {
    margin-bottom: 10px;
    border-radius: 6px;
  }
  
  .chat-header {
    padding: 12px;
    font-size: 1.1rem;
  }
  
  .chat-messages {
    padding: 10px;
  }
  
  .message-content {
    max-width: 90%;
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .chat-input {
    padding: 10px;
  }
  
  .name-container {
    font-size: 16px;
  }
}