.pravdorub-assistant-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.pravdorub-assistant {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 4px solid #000000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #292929;
}

div#pravdorub-assistant-container {
  height: 100%;
}

.assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #1f1f1f;
  color: white;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clear-button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background-color 0.2s;
}

.clear-button:hover {
  background-color: #c0392b;
}

input[type="text"] {
  font-size: 12px;
}

.assistant-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.question-limit {
  font-size: 0.8rem;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.4;
}

.bot-message {
  align-self: flex-start;
  background-color: #e7e7e7;
  border-bottom-left-radius: 4px;
}

.user-message {
  align-self: flex-end;
  background-color: #3498db;
  color: white;
  border-bottom-right-radius: 4px;
}

.search-results {
  margin-top: 15px;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

.search-results h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.article-result {
  margin-bottom: 15px;
  padding: 8px;
  background-color: white;
  border-radius: 6px;
  border-left: 3px solid #3498db;
}

.article-result h4 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
}

.article-result p {
  margin: 0 0 5px 0;
  font-size: 0.85rem;
  color: #555;
}

.article-result small {
  display: block;
  font-size: 0.75rem;
  color: #888;
}

/* Example questions styling */
.example-questions {
  align-self: center;
  width: 90%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 15px;
  margin: 10px 0;
}

.example-questions p {
  color: #e7e7e7;
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  font-weight: bold;
}

.example-question {
  background-color: rgba(52, 152, 219, 0.2);
  color: #e7e7e7;
  padding: 8px 12px;
  margin: 5px 0;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.example-question:hover {
  background-color: rgba(52, 152, 219, 0.4);
}

.input-form {
  display: flex;
  padding: 15px;
  background-color: #1f1f1f;
}

.input-form input {
  font-size: 12px !important;
  flex: 1;
  color: #fff;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  margin-right: 10px;
  font-size: 0.9rem;
  background-color: #1f1f1f;
}

.input-form button {
  padding: 8px 16px;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.input-form button:hover:not(:disabled) {
  background-color: #1a2530;
}

.input-form button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.loading-indicator {
  align-self: center;
  padding: 8px 12px;
  color: #555;
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.error-message {
  align-self: center;
  padding: 8px 12px;
  background-color: #f8d7da;
  color: #721c24;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
button.clear-button {
    font-size: 12px;
}
.question-limit.available {
    font-size: 11px;
}
.example-question {
    font-size: 13px;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
  .message {
    max-width: 90%;
  }
  .brxe-popup-576937.brx-popup{
              padding-top: 0px;
  }
  .header-controls {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }
  
  .assistant-header {
    align-items: flex-start;
    gap: 10px;
  }
  
  .assistant-header h2 {
    margin-bottom: 5px;
  }
}
.question-limit {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

/* When questions are available */
.question-limit.available {
  background-color: rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}

/* When questions are running low (1-2 left) */
.question-limit.low {
  background-color: rgba(241, 196, 15, 0.3);
  color: #f1c40f;
}

/* When no questions remain */
.question-limit.depleted {
  background-color: rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

/* Special styling for limit reached message */
.limit-reached-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 10px 15px;
  border-radius: 8px;
  margin: 10px auto;
  font-weight: bold;
  border-left: 4px solid #c62828;
  max-width: 90%;
  text-align: center;
}
/* Additional styles for date range results */

.date-range-info {
  background-color: rgba(52, 152, 219, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #888;
  border-left: 3px solid #3498db;
  display: inline-block;
}

.date-results {
  margin-top: 10px;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  padding: 12px;
}

.date-results h3 {
  color: #555;
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 8px;
}

.no-results {
  font-style: italic;
  color: #888;
  text-align: center;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
}

/* Update example questions styling for date-related queries */
.example-question {
  position: relative;
}

.example-question:nth-child(2),
.example-question:nth-child(3),
.example-question:nth-child(4) {
  padding-left: 20px;
}

.example-question:nth-child(2)::before,
.example-question:nth-child(3)::before,
.example-question:nth-child(4)::before {
  content: "📅";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  opacity: 0.7;
}
