:root {
  --primary: #2563eb;
  --bg-light: #f1f4f7;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --success: #10b981;
  --error: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  display: flex;
  background: var(--bg-light);
  color: var(--text);
}

.sidebar {
  width: 260px;
  height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px;
  position: fixed;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--primary);
}

.nav-item {
  padding: 12px 16px;
  margin: 4px 0;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.2s;
}

.nav-item:hover {
  background: var(--bg-light);
}

.nav-item.active {
  background: var(--primary);
  color: var(--white);
}

.main {
  margin-left: 260px;
  padding: 40px;
  width: calc(100% - 260px);
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.upload-zone {
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  transition: all 0.2s;
}

.upload-zone:hover {
  border-color: var(--primary);
}

.upload-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.file-input {
  display: none;
}

.btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover:not(:disabled) {
  opacity: 0.9;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.file-info {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  display: none;
}

.status {
  margin-top: 16px;
  color: var(--text-light);
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.loading-spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid var(--border);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.processing-status {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--bg-light);
  border-radius: 8px;
  margin-bottom: 20px;
}

.transcript {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
}
.transcript p {
  margin: 1.5em 0;
}

.transcript strong {
  font-weight: 600;
  margin-right: 0.5em;
}
.speaker-mapping {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

h2 {
  margin-bottom: 20px;
  font-weight: 600;
}

.speaker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.speaker-item input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
}

.speaker-item input:focus {
  border-color: var(--primary);
}

.actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.btn-secondary {
  background: #c6d6e4;
  color: var(--text);
  font-size: medium;
}
.btn-secondary:hover {
  background: #a5c2df;
  color: var(--text);
}
.process-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.file-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-light);
  border-radius: 20px;
  font-size: 14px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin: 16px 0;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    rgba(37, 99, 235, 0.8) 50%,
    var(--primary) 100%
  );
  background-size: 200% 100%;
  animation: gradient 2s linear infinite;
}
@keyframes gradient {
  0% {
    background-position: 100% 0%;
  }
  100% {
    background-position: -100% 0%;
  }
}
.upload-content {
  margin-top: 24px;
}

.process-button {
  margin-top: 16px;
  width: 100%;
}

.transcript-section {
  margin-top: 24px;
  display: none;
}
.copy-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.copy-notification.show {
  opacity: 1;
  transform: translateY(0);
}
/* responsivenss */
.sidebar-toggle {
  position: fixed;
  left: 248px;
  top: 20px;
  width: 24px;
  height: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.sidebar-toggle svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-light);
  transition: transform 0.3s ease;
}

.sidebar.collapsed {
  width: 0;
  padding: 0;
  overflow: hidden;
}

.sidebar.collapsed + .main {
  margin-left: 0;
  width: 100%;
}

.sidebar.collapsed .sidebar-toggle {
  left: 10px;
  transform: rotate(180deg);
  z-index: 1111;
}

/* Update existing media queries */
@media screen and (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    /* transform: translateX(-100%); */
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar-toggle {
    top: 20px;
    right: 20px;
    position: fixed;
    /* display: none; Hide the desktop toggle on mobile */
  }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .sidebar.collapsed + .main {
    margin-left: 0;
  }
  .actions {
    flex-direction: column;
  }
  .process-header {
    display: block;
  }
}
/* history  */
/* Dashboard Styles */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.transcript-history {
  position: relative;
  min-height: 200px;
}

.history-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.history-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.history-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.history-item-header h3 {
  font-size: 16px;
  margin: 0;
  word-break: break-word;
  max-width: 70%;
}

.history-item-header .date {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
}

.history-item-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-light);
}

.history-item-details span {
  background: var(--bg-light);
  padding: 4px 8px;
  border-radius: 4px;
}

.empty-state {
  text-align: center;
  padding: 40px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state p {
  color: var(--text-light);
}

.error-message {
  text-align: center;
  padding: 20px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #dc2626;
}

/* Update your existing media query for mobile responsiveness */
@media screen and (max-width: 768px) {
  .history-item-header {
    flex-direction: column;
    gap: 8px;
  }

  .history-item-header h3 {
    max-width: 100%;
  }

  .history-item-details {
    flex-direction: column;
    gap: 8px;
  }
}
.sidebar-title {
  font-size: 14px;
  color: var(--text-light);
  margin: 16px 0 8px;
  padding: 0 16px;
}

.sidebar-history-list {
  margin-top: 8px;
}

.sidebar-history-item {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-history-item:hover {
  background: var(--bg-light);
  color: var(--text);
}

.sidebar-history-item.active {
  background: var(--primary);
  color: var(--white);
}
/* Add these to your main.css file */

.upload-options {
  margin-bottom: 24px;
}

.btn-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-group .btn {
  flex: 1;
}

.btn-group .btn.active {
  background: var(--primary);
  color: var(--white);
}

.paste-zone {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.transcript-textarea {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: inherit;
  resize: vertical;
}

.transcript-textarea:focus {
  outline: none;
  border-color: var(--primary);
}
