/* 메인 컨테이너 스타일 */
/* bootstrap tab override */
.nav-tabs .nav-link {
  color: var(--bs-nav-tabs-link-active-color);
}

.nav-tabs .nav-link.active {
  color: var(--bs-nav-link-color);
}

/* 업로드 영역 스타일 */
.upload-container {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* 사용자 정보 입력 섹션 스타일 */
.user-info-section {
  background: rgba(79, 70, 229, 0.03);
  border: 1px solid rgba(79, 70, 229, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.user-info-title {
  color: var(--primary-color);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-info-title::before {
  content: "👤";
  font-size: 1.2rem;
}

.user-info-form .form-label {
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.user-info-form .form-select,
.user-info-form .form-control {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.user-info-form .form-select:focus,
.user-info-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  outline: none;
}

.user-info-form .form-select:invalid,
.user-info-form .form-control:invalid {
  border-color: #ef4444;
}

.user-info-form .form-select:valid,
.user-info-form .form-control:valid {
  border-color: #10b981;
}

@media (max-width: 768px) {
  .user-info-section {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .user-info-title {
    font-size: 1rem;
  }
}

.dropzone {
  border: 2px dashed var(--border-color);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  position: relative;
}

.dropzone.dragover {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.5rem;
  color: var(--primary-color);
}

.upload-text h3 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 12px;
}

.upload-text p {
  color: #64748b;
  font-size: 12px;
}

.file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-button {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.upload-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* 결과 표시 영역 */
.results-container {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;  /* 카드 간 간격 */
}

.result-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.result-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.result-header-title {
  display: flex;
  flex-direction: column;
  min-width: 0; /* 말줄임표 처리를 위한 설정 */
  flex-grow: 1;
}

.result-header-title h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 475px; /* 파일명이 길어도 잘리지 않도록 제한 */
  font-size: 1rem;
  margin: 0;
}

/* 반응형 스타일 */
@media (max-width: 600px) {
  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-header-title h3 {
    max-width: 340px; /* 작은 화면에서는 전체 너비 사용 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .status-badge {
    align-self: flex-end;
    margin-top: 5px;
  }
}

.result-content {
  background: var(--background-color);
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.result-section {
  margin-bottom: 1rem;
}

.result-section h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* 모니터링 패널 */
.monitoring-panel {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  height: fit-content;
  position: sticky;
  top: var(--header-height);
}

.monitoring-header {
  margin-bottom: 1.5rem;
}

.monitoring-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.monitoring-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.monitoring-title svg {
  color: var(--primary-color);
}

.reset-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-button:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.reset-button:active {
  transform: translateY(0);
}

.reset-button svg {
  flex-shrink: 0;
}

.monitoring-stats {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--background-color);
  border-radius: 0.5rem;
  justify-content: space-around;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.monitoring-list {
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.monitoring-list::-webkit-scrollbar {
  width: 6px;
}

.monitoring-list::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.monitoring-list::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 3px;
}

.monitoring-item {
  background: var(--background-color);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.monitoring-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.monitoring-item:last-child {
  margin-bottom: 0;
}

.monitoring-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.monitoring-filename {
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.9rem;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.monitoring-item-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.monitoring-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.detail-label {
  color: #64748b;
  font-weight: 500;
}

.detail-value {
  color: var(--text-color);
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.75rem;
}

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: #64748b;
}

.empty-state svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  margin: 0;
  font-size: 0.9rem;
}

/* 상태 뱃지 추가 */
.status-waiting {
  background: #f3f4f6;
  color: #374151;
}

/* 모바일 드로어 헤더 스타일 */
.offcanvas-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reset-button.mobile-reset {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

.reset-button.mobile-reset svg {
  width: 14px;
  height: 14px;
}

/* 모바일 모니터링 최적화 */
@media (max-width: 768px) {
  .monitoring-stats {
    gap: 0.5rem;
    padding: 0.75rem;
  }
  
  .stat-value {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .monitoring-item {
    padding: 0.75rem;
  }
  
  .monitoring-filename {
    max-width: 50%;
    font-size: 0.85rem;
  }
  
  .monitoring-detail {
    font-size: 0.75rem;
  }
  
  .detail-value {
    font-size: 0.7rem;
  }
  
  .monitoring-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .reset-button {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  min-width: 74px;
}

.status-processing {
  background: #dbeafe;
  color: #1e40af;
}

.status-completed {
  background: #dcfce7;
  color: #166534;
}

.status-error {
  background: #fee2e2;
  color: #991b1b;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    margin-top: 2rem;
    padding: 1rem;
  }
  
  .results-container {
    gap: 1rem;
  }
  
  .result-card {
    padding: 1rem;
  }
}

.recording-section {
  background: var(--background-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-title {
  color: var(--text-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.recording-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.record-button {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: fit-content;
}

.record-button .button-text {
  display: inline-block;
}

.record-button svg {
  flex-shrink: 0;
}

.record-button.recording {
  background: #dc2626;
  animation: pulse 2s infinite;
}

.recording-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #64748b;
}

.recording-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  display: none;
}

.recording-indicator.active {
  display: block;
  animation: blink 1s infinite;
}

.divider {
  text-align: center;
  color: #64748b;
  margin: 1.5rem 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: var(--border-color);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* 기존 스타일에 추가 */
.selected-files-container {
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  padding: 1rem;
}

.selected-file {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}

.selected-file:last-child {
  margin-bottom: 0;
}

.file-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-name {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.25rem;
}

.file-details {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.file-size,
.file-type {
  background: #e9ecef;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .selected-files-container {
    margin-bottom: 1rem;
    padding: 0.75rem;
  }

  .selected-file {
    padding: 0.5rem;
  }

  .file-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-details {
    margin-top: 0.5rem;
  }
}

#fileList {
  margin-bottom: 1rem;
}

.result-text-content {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1rem;
  margin-top: 0.5rem;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
  line-height: 1.5;
}

/* 세그먼트 스타일 추가 */
.segments-container {
  margin-top: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.segment-summary {
  padding: 0.75rem 1rem;
  background-color: #eef2ff;
  border-bottom: 1px solid #e0e7ff;
}

.summary-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #4338ca;
  font-weight: 600;
}

.segments-list {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.segments-list::-webkit-scrollbar {
  width: 8px;
}

.segments-list::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.segments-list::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.segment-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.segment-item:last-child {
  border-bottom: none;
}

.segment-item:hover {
  background-color: #f0f4f8;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.segment-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
  background-color: rgba(99, 102, 241, 0.05);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.3rem;
}

.segment-id {
  font-weight: 600;
  color: #4f46e5;
}

.segment-time-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.segment-time {
  font-family: monospace;
  background-color: rgba(99, 102, 241, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.segment-duration {
  font-size: 0.75rem;
  color: #64748b;
  background-color: #e2e8f0;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.segment-text {
  font-size: 1rem;
  line-height: 1.6;
  padding: 0.5rem 0.8rem;
  color: #1e293b;
  background-color: white;
  border-radius: 4px;
  border-left: 3px solid #4f46e5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  white-space: pre-line;
}

.segment-item:hover .segment-text {
  border-left-width: 5px;
  background-color: #fafafa;
}

.segment-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  user-select: none;
  background-color: #f8fafc;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.segment-toggle:hover {
  background-color: #eef2ff;
  border-color: #c7d2fe;
}

.segment-toggle input {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: #4f46e5;
}

.segment-toggle label {
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.segment-toggle svg {
  color: #4f46e5;
  transition: transform 0.2s ease;
}

.segment-toggle:hover svg {
  transform: scale(1.1);
}

.result-section {
  margin-bottom: 1.5rem;
  text-align: left;
}

.result-section h4 {
  color: #4f46e5;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.error-message {
  color: #dc2626;
  padding: 0.5rem;
  background-color: #fee2e2;
  border-radius: 4px;
}



/* 오디오 컨트롤 스타일 */
.audio-controls-container {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
}

.audio-controls-extra {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-left: 0.5rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.download-btn:hover {
  background-color: #4338ca;
}

.segment-audio {
  height: 30px !important;
  width: 100% !important;
  display: block !important;
  min-height: 30px !important;
  visibility: visible !important;
}

audio {
  height: 30px !important;
  width: 100% !important;
  display: block !important;
  min-height: 30px !important;
  visibility: visible !important;
}

/* 오디오 플레이어 컨테이너 스타일 */
.audio-player-container {
  margin-top: 0.5rem;
  width: 100%;
}

.segment-audio-container {
  margin-top: 0.5rem;
  width: 100%;
}

.segment-duration {
  font-size: 0.75rem;
  color: #64748b;
  background-color: #e2e8f0;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

/* 오디오 재생 관련 스타일 */
.audio-controls {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.play-all-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s;
  height: 30px;
  white-space: nowrap;
}

.play-all-btn:hover {
  background-color: #4338ca;
}

.play-segment-btn {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.4rem;
  background-color: #6366f1;
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.play-segment-btn:hover {
  background-color: #4f46e5;
}

.segment-audio-container {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: #f8fafc;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.segment-audio {
  width: 100%;
  height: 30px;
}

#audio-player-container {
  margin-top: 1rem;
  padding: 0.5rem;
  background-color: #f8fafc;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.button-text {
  font-size: medium;
}

#mobileMonitoringButton {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000; /* Bootstrap modal보다 낮고 드로워보다 높게 */
  width: 16px;
  height: 118px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background-color: var(--primary-color);
  color: white;
  border-radius: 20px 0 0 20px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .button-text {
    font-size: 1rem !important;
  }
  
  /* Bootstrap 그리드 오버라이드 */
  .recording-section .col {
    flex: none !important;
    width: auto !important;
  }
  
  .recording-section .col-sm-3 {
    width: 100% !important;
    margin-bottom: 1rem;
  }
  
  .recording-section .col-sm-9 {
    width: 100% !important;
  }
}

/* 녹음 섹션 모바일 최적화 */
@media (max-width: 576px) {
  .recording-section.row {
    flex-direction: column !important;
    gap: 1rem;
  }
  
  .record-button {
    width: 100% !important;
    max-width: none !important;
    padding: 1.2rem 1rem;
    font-size: 1.1rem;
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .recording-status {
    width: 100% !important;
    max-width: none !important;
    justify-content: center;
    text-align: center;
  }
  
  .button-text {
    font-size: 1.1rem !important;
  }
}

/* 태블릿 최적화 */
@media (min-width: 577px) and (max-width: 768px) {
  .record-button {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    min-width: 140px;
  }
  
  .button-text {
    font-size: 0.95rem !important;
  }
}

/* 매우 작은 화면 (320px 이하) */
@media (max-width: 320px) {
  .record-button {
    padding: 1rem 0.8rem;
    font-size: 0.9rem;
    gap: 0.4rem;
  }
  
  .record-button .button-text {
    font-size: 0.9rem !important;
  }
}

.tab-content {
  margin-top: 1rem;
  min-height: 221px;
}

/* 녹음 중 컨트롤 스타일 - 클래식 디자인 */
.recording-controls-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 녹음 상태와 타이머를 한 줄에 표시 */
.recording-status-with-timer {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #495057;
  margin-bottom: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* 컨트롤 버튼들 */
.recording-control-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* 타이머 디스플레이 - 심플하게 */
.recording-timer-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 36px;
  background: #e9ecef;
  border: 1px solid #adb5bd;
  border-radius: 0.375rem;
  padding: 0 0.75rem;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
}

/* 컨트롤 버튼 공통 스타일 - 크기 증가 */
.control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 56px;
  border: 2px solid;
  border-radius: 0.5rem;
  padding: 0 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
  text-decoration: none;
  outline: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recording-text {
  font-size: 1rem;
  font-weight: 500;
}

/* 기존 스타일 제거 - 새로운 .recording-horizontal-controls로 대체됨 */

/* 취소 버튼 */
.cancel-button {
  border-color: #dc3545;
  color: #dc3545;
}

.cancel-button:hover {
  background: #dc3545;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.25);
}

.cancel-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(220, 53, 69, 0.25);
}

/* 완료 버튼 */
.complete-button {
  border-color: #198754;
  color: #198754;
}

.complete-button:hover {
  background: #198754;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(25, 135, 84, 0.25);
}

.complete-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(25, 135, 84, 0.25);
}

.recording-indicator.active {
  display: block;
  animation: blink 1s infinite;
}

/* 녹음 시작 버튼 전체 너비 조정 */
#recordStartContainer .record-button {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* 반응형 디자인 */
/* 테블릿용 미디어 쿼리 */
@media (min-width: 769px) and (max-width: 1024px) {
  .recording-controls-wrapper {
    padding: 2.5rem;
    gap: 2rem;
  }
  
  .recording-status-with-timer {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    gap: 1.5rem;
  }
  
  .recording-control-buttons {
    gap: 2rem;
  }
  
  .recording-timer-display {
    min-width: 80px;
    height: 40px;
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .control-button {
    min-width: 140px;
    height: 64px;
    font-size: 1.2rem;
    padding: 0 2.5rem;
  }
  
  .recording-text {
    font-size: 1.2rem;
  }
}

/* 모바일용 미디어 쿼리 */
@media (max-width: 768px) {
  .recording-controls-wrapper {
    padding: 1.5rem;
    gap: 2rem;
  }
  
  .recording-status-with-timer {
    font-size: 1rem;
    margin-bottom: 1rem;
    gap: 0.75rem;
  }
  
  .recording-control-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .recording-timer-display {
    min-width: 80px;
    height: 32px;
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }
  
  .control-button {
    width: 100%;
    height: 54px;
    font-size: 1.1rem;
    max-width: 280px;
    align-self: center;
    min-width: auto;
  }
  
  .recording-text {
    font-size: 1rem;
  }
}
