 /* Quotes Section */
.quotes-container {
  display: grid;
  gap: 2rem;
  margin-top: 1rem;
}

.quote-theme {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-title {
  color: #2c3e50;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f3f5;
  font-size: 1.2rem;
  font-weight: 600;
}

.quotes-list {
  display: grid;
  gap: 1rem;
}

.quote-item {
  background: #f8f9fa;
  border-left: 4px solid #4a90e2;
  padding: 1rem;
  border-radius: 0 4px 4px 0;
}

.quote-text {
  color: #495057;
  line-height: 1.6;
  font-style: italic;
  position: relative;
  padding: 0 1rem;
}

.quote-text::before,
.quote-text::after {
  color: #adb5bd;
  font-size: 2em;
  line-height: 0.1em;
  vertical-align: -0.4em;
}

.quote-text::before {
  content: '\201C';
  margin-right: 0.25em;
}

.quote-text::after {
  content: '\201D';
  margin-left: 0.1em;
}

.quote-textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.theme-input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.no-quotes {
  color: #6c757d;
  font-style: italic;
  padding: 2rem;
  text-align: center;
  background: #f8f9fa;
  border-radius: 8px;
}

/* Codes Section */
.codes-container {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.code-item {
  background: #ffffff;
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.code-label {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.code-definition {
  color: #495057;
  line-height: 1.5;
  font-size: 0.95rem;
}

.code-input,
.code-definition-input {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.no-codes {
  color: #6c757d;
  font-style: italic;
  padding: 1rem;
  text-align: center;
}

/* Analysis Sections */
.analysis-section,
.reflection-section {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.analysis-section h3,
.reflection-section h3 {
  color: #2c3e50;
  border-bottom: 2px solid #f1f3f5;
  padding-bottom: 10px;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.analysis-content,
.reflection-content {
  line-height: 1.6;
  color: #495057;
}

.analysis-content p,
.reflection-content p {
  margin-bottom: 15px;
}

/* Tabs */
.tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  border-bottom: 1px solid #dee2e6;
}

.tabs li {
  padding: 10px 20px;
  cursor: pointer;
  margin-right: 5px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  color: #495057;
  transition: all 0.2s ease;
}

.tabs li:hover,
.tabs li.active {
  background-color: #f8f9fa;
  border-color: #dee2e6 #dee2e6 #fff;
  color: #0d6efd;
}

.tab-content {
  display: none;
  padding: 20px 0;
}

.tab-content.active {
  display: block;
}

/* Export buttons */
.export-buttons {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.export-buttons h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #495057;
  font-weight: 600;
}

.export-buttons .button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.export-buttons .btn-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ffffff;
  color: #495057;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.export-buttons .btn-export:hover {
  background: #f1f3f5;
  border-color: #ced4da;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.export-buttons .btn-export:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.export-buttons .btn-export svg {
  width: 16px;
  height: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .export-buttons .button-group {
    flex-direction: column;
  }
  
  .export-buttons .btn-export {
    justify-content: center;
    width: 100%;
  }
}

/* Fix for editable textareas - ensure white background */
[data-edit-mode-target="edit"] textarea,
[data-edit-mode-target="edit"] input[type="text"] {
  background-color: #ffffff !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 4px !important;
  padding: 0.5rem !important;
  color: #495057 !important;
}

[data-edit-mode-target="edit"] textarea:focus,
[data-edit-mode-target="edit"] input[type="text"]:focus {
  outline: none !important;
  border-color: #4a90e2 !important;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2) !important;
}
