:root {
  --border: #e6e8ec;
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #4f46e5;
  --badge-bg: #eef2ff;
  --badge-text: #4338ca;
}

.record-section {
  padding: 6px;
  background: var(--bg);
}

.recorder-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.panel-1 {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.record-btn-1,
.stop-btn-1,
.submit-audio-button-1,
.submit-video-button-1 {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
}

.submit-audio-button-1,
.submit-video-button-1 {
  background: var(--primary);
  color: white;
  border: none;
  margin-top: 10px;
}








#filesSection {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  overflow-x: hidden;
}

.files-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.files-body{
  overflow-x: auto;
  max-height: 500px;
}

.files-body::-webkit-scrollbar {
 display: none;
}

.filters button,
.actions button {
  border: 1px solid var(--border);
  background: white;
  padding: 6px 10px;
  border-radius: 8px;
  margin-right: 6px;
  margin-bottom: 4px;
}

.actions button:disabled {
  opacity: 0.5;
}

.files-head,
.file-row {
  display: grid;
  grid-template-columns: 32px 250px 1.5fr 80px 160px 90px 120px 80px;
  align-items: center;
  gap: 20px;
}

.files-head {
  font-size: 12px;
  color: var(--muted);
  padding: 8px;
  overflow-x: auto;
}

.files-head::-webkit-scrollbar {
 display: none;
}

.recorded-filename {
  overflow: hidden;
  text-overflow: ellipsis;
}



.file-row {
  border-top: 1px solid var(--border);
  padding: 8px;
}

.file-row:hover {
  background: #fafafa;
}

.status-badge,
.saved-badge {
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.saved-badge {
  min-width: 80px;
}


.saved-badge.not-saved {
  background: #ffefee;
  color: #e55646;
}

.saved-badge.saved {
  background: #ecfdf5;
  color: #047857;
}



.video-preview video {
  width: 100%;
  max-height: 180px;
  max-width: 240px;
  border-radius: 10px;
  background: #000;
  object-fit: cover;
}

.hide-preview {
  background-color: rgb(239, 116, 82);
}

.hide {
  display: none;
}

.live-video {
  outline: 2px solid #ff3b3b;
}

.file-row.selected {
  background: #f5f6fb;
}

.filter-selected {
  color: #2563eb;
}

.speed-buttons-container button {
  margin-bottom: 4px;
}


/* FILE UPLOAD */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  height: 90%;
  transition: background 0.2s, border-color 0.2s;
}

.drop-zone.drag-over {
  background: #eef2ff;
  border-color: var(--primary);
}

.drop-zone p {
  margin: 6px 0;
  color: var(--muted);
}

.drop-zone button {
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  display: none;
}

