* {
  margin: 0;
  padding-top: 0;
  box-sizing: border-box;
}

:root {
  --color-background: #0a0a0f;
  --color-surface: #1a1a24;
  --color-surface-elevated: #252535;
  --color-primary: #8b5cf6;
  --color-primary-hover: #7c3aed;
  --color-accent: #06b6d4;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-border: #2d2d3d;

  /* Added lightning blue and neon purple for folder system */
  --color-lightning-blue: #00d4ff;
  --color-neon-purple: #b026ff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: white;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

/* Optional: ensure icons don't shrink */
.tab-icon {
  flex-shrink: 0;
}

/* Optional: hide tab-label on small screens */
@media (max-width: 768px) {
  .tab-label {
    display: none;
  }
}

.tab-label {
  font-weight: 500;
}

/* Smooth transitions */

/* Dashboard styles */

.dashboard-main2 {
  padding-top: 100px;
  padding-left: 190px;
}
.content-header2 {
  color: black;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
  background-color: var(--color-surface-elevated);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-surface);
  border-color: var(--color-primary);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Meetings List */
.meetings-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 95%;
  margin-top: 5%;
}

.meeting-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.meeting-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.meeting-card-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.meeting-card-header p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.meeting-status {
  padding: 0.375rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.meeting-status.recorded {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.meeting-summary {
  margin-bottom: 1rem;
}

.meeting-summary h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.meeting-summary p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.meeting-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.meeting-stat {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.meeting-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meeting-sort-controls {
  margin-left: 80%;
}

/* Added folder system styles with lightning blue and neon purple accents */

/* Breadcrumb Navigation */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  padding-left: 190px;
  padding-top: 20px;
}

.breadcrumb-item {
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.breadcrumb-item:hover {
  background: #ffffff;
  border-color: var(--color-lightning-blue);
  color: var(--color-lightning-blue);
}

.breadcrumb-item.active {
  background: linear-gradient(135deg, var(--color-lightning-blue), var(--color-neon-purple));
  color: #ffffff;
  border-color: transparent;

}

.breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin-left: 0.75rem;
  color: #6b7280;
}

/* View Controls */
.view-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  margin-top: 10px;
}

.view-buttons {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  padding: 0.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.view-btn:hover {
  border-color: var(--color-lightning-blue);
  color: var(--color-lightning-blue);
}

.view-btn.active {
  background: linear-gradient(135deg, var(--color-lightning-blue), var(--color-neon-purple));
  color: #ffffff;
  border-color: transparent;
}

/* Folders Container */
.folders-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.folder-item {
  padding: 0.875rem 1rem;
  background: #f8f9fa;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem 0.5rem 0 0;
  border-bottom: 3px solid var(--color-lightning-blue);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
  min-height: 30px;
}

.folder-item:hover {
  background: #ffffff;
  border-color: var(--color-lightning-blue);
  border-bottom-color: var(--color-neon-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

.folder-item.active-folder {
  background: linear-gradient(135deg, var(--color-lightning-blue), var(--color-neon-purple));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

.folder-item.active-folder .folder-name,
.folder-item.active-folder .folder-count {
  color: #ffffff;
}

.folder-item:hover {
  border-color: var(--color-lightning-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

.folder-item.drag-over {
  border-color: var(--color-neon-purple);
  background: rgba(176, 38, 255, 0.05);
}

.folder-icon {
  display: none;
}

.folder-name {
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
}

.folder-count {
  font-size: 0.85rem;
  color: #6b7280;
}

.folder-delete {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
  transition: all 0.2s;
}

.folder-delete:hover {
  transform: scale(1.2);
}

/* Meetings Grid */
.meetings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.meetings-grid.list-view {
  grid-template-columns: 1fr;
}

/* Meeting Card Dragging */
.meeting-card.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}
.meetings-grid.list-view {
  grid-template-columns: 1fr;
}

.meetings-grid.list-view .meeting-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 0 1.5rem;
}

.meetings-grid.list-view .meeting-card-header {
  grid-column: 1 / 2;
}

.meetings-grid.list-view .meeting-summary {
  grid-column: 1 / 2;
}

.meetings-grid.list-view .meeting-stats {
  grid-column: 1 / 2;
}

.meetings-grid.list-view .meeting-actions {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  flex-direction: column;
  justify-content: center;
}

.meeting-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.meeting-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: 1rem;
  padding: 0;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: #1a1a1a;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #1a1a1a;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.modal-body input:focus {
  outline: none;
  border-color: var(--color-lightning-blue);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Main Content */
.meetings-main {
  padding: 2rem;
  min-height: calc(100vh - var(--jx-shell-h, 52px));
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.content-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.content-header p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

/* Transcription Popup */
.transcription-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 450px;
  max-height: 600px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(0, 212, 255, 0.4);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  transition: all 0.3s ease;
}

.transcription-popup.active {
  display: flex;
}

.transcription-popup.minimized {
  max-height: 60px;
}

.transcription-popup.minimized .transcription-popup-body {
  display: none;
}

.transcription-popup-header {
  padding: 1rem 1.25rem;
  background: rgba(0, 212, 255, 0.1);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}

.transcription-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.transcription-title h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #ffffff;
}

.recording-indicator {
  width: 10px;
  height: 10px;
  background: #64748b;
  border-radius: 50%;
  transition: all 0.3s;
}

.transcription-popup.recording .recording-indicator {
  background: #ef4444;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

.popup-controls {
  display: flex;
  gap: 0.5rem;
}

.popup-control-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.popup-control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.transcription-popup-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.transcription-section {
  padding: 1.25rem;
}

.summary-section {
  background: rgba(176, 38, 255, 0.05);
  border-bottom: 1px solid rgba(176, 38, 255, 0.2);
}

.summary-section h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: var(--color-secondary);
}

.summary-text {
  color: #e0e0e0;
  line-height: 1.6;
  font-size: 0.9rem;
}

.transcript-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.section-header h4 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.transcript-scroll-container {
  flex: 1;
  overflow-y: auto;
}

.transcript-text {
  color: #e0e0e0;
  line-height: 1.7;
  font-size: 0.95rem;
}

.transcript-placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  text-align: center;
  padding: 2rem 1rem;
}
