/* Print styles */
@media print {
  body {
    background: #fff;
    color: #000;
    margin: 0;
    padding: 0;
  }
  .container,
  .top-bar,
  textarea,
  select,
  button,
  .print-content {
    display: block !important;
    width: 95%;
    padding: 0;
    background: #fff;
  }

  h2 .center,
  button,
  input,
  select,
  textarea,
  #darkModeBtn,
  .top-bar,
  .ai-container,
  .ai-prompt-container
  .top-actions,
  .bottom-actions,
  #answerBox,
  #sessionHistoryLabel,
  #historyBox,
  #logHistoryLabel,
  #aiLogBox,
  #spinner {
    display: none !important;
  }
  .qa-block {
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: 5px;
    padding: 10px;
    overflow: visible;
  }
  pre {
    white-space: pre-wrap !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .summary {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 5px;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: monospace;
  }
  .history-block:nth-child(odd) {
    background: #e0f7fa !important;
  }
  .history-block:nth-child(even) {
    background: #f1f8e9 !important;
  }
  .ai-log-block:nth-child(odd) {
    background: #e0f7fa !important;
  }
  .ai-log-block:nth-child(even) {
    background: #f1f8e9 !important;
  }
}


/* Container styling */
.container, body.dark .container {
  width: 95%;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.toggle-container {
      display: inline-block;
      position: relative;
      width: 60px;
      height: 30px;
    }

    .toggle-container input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #ccc;
      transition: 0.4s;
      border-radius: 34px;
    }

    .slider:before {
      position: absolute;
      content: "";
      height: 22px;
      width: 22px;
      left: 4px;
      bottom: 4px;
      background-color: white;
      transition: 0.4s;
      border-radius: 50%;
    }

    input:checked + .slider {
      background-color: #4caf50;
    }

    input:checked + .slider:before {
      transform: translateX(30px);
    }
.slider::after {
	content: "Off";
    color: white;
    position: absolute;
    right: 8px;
    top: 6px;
    font-size: 12px;
}
input:checked + .slider::after {
	content: "On";
	left: 10px;
	right: auto;
}
.ai-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}