/* Notes View - NotebookLM Style */
.notes-view-container {
  display: none;
  padding: 16px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 768px) {
  .notes-view-container {
    padding: 12px;
  }
  
  .note-card {
    padding: 16px;
  }
  
  .note-actions {
    flex-wrap: wrap;
  }
  
  .action-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

.notes-view-container.active {
  display: block;
}

/* Note Card */
.note-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
}

.note-header {
  margin-bottom: 16px;
}

.note-timestamp {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-title {
  color: #e2e8f0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.note-content {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0;
  max-height: 120px;
  overflow: hidden;
  position: relative;
}

.note-content.expanded {
  max-height: none;
}

.note-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.tag-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* Action Buttons */
.note-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.4);
}

.action-btn.play-btn {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.action-btn.play-btn:hover {
  background: rgba(99, 102, 241, 0.25);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: none;
}

.dropdown-menu.active {
  display: block;
}

.menu-item {
  padding: 10px 16px;
  color: #cbd5e1;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
  position: relative;
}

.menu-item:hover {
  background: rgba(99, 102, 241, 0.15);
}

.menu-item .material-symbols-outlined {
  font-size: 18px;
  color: #94a3b8;
}

.menu-item.has-submenu::after {
  content: '›';
  margin-left: auto;
  color: #64748b;
  font-size: 20px;
}

/* Submenu */
.submenu {
  position: absolute;
  left: 100%;
  top: -8px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 220px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: none;
  margin-left: 4px;
}

.menu-item:hover > .submenu {
  display: block;
}

.submenu .menu-item {
  padding: 10px 16px;
}

.menu-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
  margin: 8px 0;
}

/* Related Notes */
.related-notes {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.related-notes-title {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.related-note-item {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.related-note-item:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
}

.related-note-title {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.related-note-preview {
  color: #64748b;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}