/* theme-extractor.css */
.theme-extractor {
  padding: 2rem;
  background: #111;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
}

.input-toggle {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.input-mode {
  padding: 0.5rem 1rem;
  border: 1px solid #00ccff;
  background: transparent;
  color: #00ccff;
  border-radius: 5px;
  cursor: pointer;
}

.input-mode.active {
  background: #00ccff;
  color: #111;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tile {
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
}

.tile:hover {
  border-color: #00ccff;
}

.tile.selected {
  border-color: #00ccff;
  background: #2a2a2a;
}

.file-upload,
.paste-box {
  margin-bottom: 1.5rem;
}

textarea#inputText,
textarea#extractedParagraphs {
  width: 100%;
  padding: 1rem;
  background: #1e1e1e;
  color: #fff;
  border-radius: 10px;
  border: 1px solid #333;
  font-size: 1rem;
  resize: vertical;
  font-family: monospace;
  min-height: 200px;
  box-sizing: border-box;
}

button#extractBtn,
.note-actions button {
  padding: 0.75rem 1.5rem;
  border: none;
  background: #00ccff;
  color: #000;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1rem;
  margin-right: 1rem;
}

.note-actions {
  margin-top: 2rem;
}

.note-actions label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

.note-actions input[type="email"] {
  padding: 0.5rem;
  width: 300px;
  border-radius: 5px;
  border: 1px solid #555;
  background: #1e1e1e;
  color: #fff;
}

.emotion-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1rem 0;
}

.emotion-options label {
  cursor: pointer;
  font-weight: 600;
  color: #00ccff;
}

.emotion-options input[type="radio"] {
  margin-right: 0.5rem;
}

/* Horizontal scroll for tile mode (if used) */
.tile-scroll-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 10px;
}

.content-tile {
  background-color: #1a1a1a;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 15px;
  min-width: 260px;
  max-width: 280px;
  box-shadow: 0 0 8px rgba(0, 204, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.content-tile:hover {
  border-color: #00ccff;
  box-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
}

/* Tabbed UI Styling for Books and Articles inside Select Mode */
#tileTabsSection {
  margin-top: 20px;
}

.tile-tab-container {
  display: flex;
  flex-direction: column;
}

.tile-tabs {
  display: flex;
  border-bottom: 2px solid #333;
  margin-bottom: 10px;
}

.tile-tab {
  padding: 10px 20px;
  cursor: pointer;
  background-color: #1e1e1e;
  color: #ccc;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-weight: bold;
  margin-right: 5px;
  border: 1px solid #00ccff;
  border-bottom: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tile-tab:hover {
  background-color: #00ccff;
  color: #000;
}

.tile-tab.active {
  background-color: #00ccff;
  color: #000;
}

.tile-tab-content {
  display: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  padding: 15px 10px;
  border: 1px solid #00ccff;
  border-radius: 0 0 10px 10px;
  background-color: #1e1e1e;
  margin-bottom: 25px;
}

.tile-tab-content.active {
  display: flex;
}

/* Final Feed Tile Styling */
.feed-tile {
  border: 2px solid #00ffff;
  border-radius: 8px;
  padding: 12px;
  margin: 8px;
  cursor: pointer;
  background-color: #111;
  transition: all 0.3s ease;
  position: relative;
}

.feed-tile.selected {
  border: 2px solid #00ffcc;
  background-color: #1a1a1a;
  box-shadow: 0 0 10px #00ffcc;
}

.tile-checkmark {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
  color: #00ffcc;
  background-color: #111;
  border-radius: 50%;
  padding: 4px 8px;
  font-weight: bold;
  box-shadow: 0 0 5px #00ffcc;
  display: none;
}

.feed-tile.selected .tile-checkmark {
  display: inline-block;
}
.intro-text {
  margin-bottom: 2rem;
  text-align: center;
}
.intro-text h1 {
  font-size: 2rem;
  color: #00ccff;
  margin-bottom: 0.5rem;
}
.intro-text p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}
