/* Transcriptions Page Layout */
.transcriptions-container {
  background-color: var(--color-bg-primary);
  min-height: 100vh;
  padding: 40px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Breadcrumb */
.breadcrumb {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.24px;
  color: var(--color-fg-secondary);
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a {
  color: var(--color-fg-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-fg-primary);
}

.breadcrumb-separator {
  color: var(--color-fg-secondary);
}

/* Heading Section */
.transcriptions-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transcriptions-heading-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.transcriptions-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.96px;
  color: var(--color-fg-primary);
  margin: 0;
}

.transcriptions-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--color-fg-secondary);
  margin: 0;
}

.transcriptions-button-group {
  display: flex;
  gap: 16px;
}

.btn-edit {
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  gap: 4px;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--color-fg-primary);
  text-decoration: none;
  white-space: nowrap;
}

.btn-edit:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-upload {
  background-color: var(--color-button-primary);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  gap: 4px;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--color-fg-primary);
  text-decoration: none;
  white-space: nowrap;
}

.btn-upload:hover {
  background-color: #0d8360;
}

/* Empty State */
.transcriptions-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  border: 2px dashed var(--color-border);
  border-radius: 16px;
  padding: 40px;
}

.empty-state-link {
  display: flex;
  gap: 4px;
  align-items: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--color-status-success);
  text-decoration: none;
}

.empty-state-link:hover {
  text-decoration: underline;
}

.empty-state-icon {
  width: 24px;
  height: 24px;
}

/* Transcriptions Table */
.transcriptions-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.table-header {
  display: grid;
  grid-template-columns: 40px 1fr 96px 96px 124px;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.table-header-cell {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.24px;
  color: var(--color-fg-secondary);
  margin: 0;
}

.table-header-id {
  text-align: right;
}

.table-header-actions {
  text-align: center;
}

.table-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 19px;
}

.transcription-row {
  display: grid;
  grid-template-columns: 40px 1fr 96px 96px 124px;
  gap: 16px;
  padding: 8px 0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.transcription-row:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.row-id {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--color-fg-secondary);
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.row-summary {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--color-fg-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 80px;
}

.row-status {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  margin: 0;
}

.status-completed {
  color: var(--color-status-success);
}

.status-analyzing {
  color: var(--color-status-warning);
}

.status-failed {
  color: var(--color-status-error);
}

.row-date {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--color-fg-secondary);
  margin: 0;
}

.row-actions {
  display: flex;
  gap: 2px;
  align-items: flex-start;
  justify-content: flex-end;
}

.action-icon-btn {
  padding: 8px;
  border-radius: 999px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.action-icon {
  width: 24px;
  height: 24px;
}

/* Upload Page */
.upload-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.upload-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.upload-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.upload-heading {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.4px;
  color: var(--color-fg-primary);
  margin: 0;
}

.upload-info {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--color-fg-secondary);
  margin: 0;
}

.file-select-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.file-select-btn {
  display: flex;
  gap: 4px;
  align-items: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--color-status-success);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.file-select-btn:hover {
  text-decoration: underline;
}

.file-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--color-fg-secondary);
}

.file-input-hidden {
  display: none;
}

.upload-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  margin-top: auto;
}

.btn-support {
  display: flex;
  gap: 4px;
  align-items: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--color-link);
  text-decoration: none;
}

.btn-support:hover {
  text-decoration: underline;
}

.upload-action-buttons {
  display: flex;
  gap: 16px;
}

.btn-cancel {
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.32px;
  color: var(--color-fg-primary);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-cancel:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-submit {
  background-color: var(--color-button-primary);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.32px;
  color: var(--color-fg-primary);
  cursor: pointer;
}

.btn-submit:hover {
  background-color: #0d8360;
}

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

/* Responsive */
@media (max-width: 768px) {
  .transcriptions-container {
    padding: 24px;
  }

  .transcriptions-title {
    font-size: 36px;
  }

  .table-header,
  .transcription-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-header {
    display: none;
  }

  .row-actions {
    justify-content: flex-start;
  }
}
