/* Global styles to prevent outer scrolling */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* 전역 스크롤 방지 */
  box-sizing: border-box;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  color: #ffffff;
  font-family: "Inter", "Poppins", sans-serif;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Root element styles */
#root {
  height: 100vh;
  overflow: hidden; /* 루트 레벨 스크롤 방지 */
}

/* Main container with proper spacing */
.container {
  padding: 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  height: calc(100vh - 120px); /* MUI 탭 공간 확보 */
  width: 100vw;
  font-family: "Inter", "Poppins", sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin-top: 0;
  color: #ffffff;
}

/* Additional spacing and layout fixes */
.container::after {
  content: '';
  display: block;
  height: 15px; /* 컨테이너 하단 여백을 40px에서 15px로 줄임 */
}

/* Header styles */
h1 {
  text-align: center;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin: 0 0 20px 0;
  font-size: 2rem;
  flex-shrink: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Actions container */
.actions-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Button styles */
.save-button, 
.audio-library-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px; /* 12px 20px에서 8px 16px로 줄임 */
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  border: none;
  border-radius: 20px; /* 25px에서 20px로 줄임 */
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem; /* 0.95rem에서 0.85rem로 줄임 */
  transition: all 0.3s ease;
  box-shadow: 0 6px 12px rgba(44, 62, 80, 0.25); /* 그림자 크기 줄임 */
  position: relative;
  overflow: hidden;
  min-width: 100px; /* 120px에서 100px로 줄임 */
  text-align: center;
  white-space: nowrap;
}

.save-button::before,
.audio-library-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.save-button:hover::before,
.audio-library-button:hover::before {
  left: 100%;
}

.save-button:hover,
.audio-library-button:hover {
  box-shadow: 0 8px 16px rgba(44, 62, 80, 0.35); /* 12px 24px에서 8px 16px로 줄임 */
}

/* Table card container */
.table-container {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  margin: 0 0 10px 0; /* 하단 여백을 20px에서 10px로 줄임 */
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Ensure table wrapper has proper scrolling */
.table-wrapper {
  flex: 1;
  overflow-x: auto !important;
  overflow-y: auto !important;
  border-radius: 16px;
  -webkit-overflow-scrolling: touch; /* iOS에서 부드러운 스크롤 */
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 152, 219, 0.6) rgba(0, 0, 0, 0.1);
}

.table-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(52, 152, 219, 0.6);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 152, 219, 0.8);
}

.table-wrapper::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.05);
}

/* Force horizontal scrollbar to be visible when needed */
.table-wrapper::-webkit-scrollbar-horizontal {
  height: 12px;
}

.table-wrapper::-webkit-scrollbar-track-horizontal {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}

.table-wrapper::-webkit-scrollbar-thumb-horizontal {
  background: rgba(52, 152, 219, 0.6);
  border-radius: 6px;
}

.table-wrapper::-webkit-scrollbar-thumb-horizontal:hover {
  background: rgba(52, 152, 219, 0.8);
}

/* Table styles */
.custom-table {
  width: 100%;
  min-width: 2150px; /* 2100px에서 2150px로 증가 */
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  font-family: "Inter", "Poppins", sans-serif;
  background: rgba(26, 26, 26, 0.95);
  table-layout: auto; /* 내용에 맞게 자동 조정 */
  color: #ffffff;
}

/* Table header */
.custom-table thead {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.custom-table th {
  color: #ffffff;
  padding: 16px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap; /* 헤더 텍스트 한 줄로 유지 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  width: auto; /* 내용에 맞게 자동 조정 */
  min-width: fit-content; /* 최소 너비를 내용에 맞게 설정 */
}

.custom-table th:last-child {
  border-right: none;
}

/* Table body - Enhanced hover effects */
.custom-table tbody tr {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  background: rgba(26, 26, 26, 0.95);
}

.custom-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.custom-table td {
  padding: 8px 12px; /* 14px 12px에서 8px 12px로 줄임 */
  text-align: center;
  font-size: 0.85rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  white-space: normal; /* 글자 줄바꿈 허용 */
  overflow: visible; /* 내용이 보이도록 변경 */
  text-overflow: clip; /* ellipsis 제거 */
  position: relative;
  width: auto; /* 내용에 맞게 자동 조정 */
  word-wrap: break-word; /* 긴 단어 줄바꿈 */
  word-break: break-word; /* 단어 강제 줄바꿈 */
  vertical-align: middle; /* 세로 정렬 추가 */
  background: rgba(26, 26, 26, 0.95);
  color: #ffffff;
}

/* 숫자 타입 셀의 너비 최적화 */
.custom-table td[data-type="number"] {
  width: 80px; /* 숫자 셀 너비 제한 */
  max-width: 80px;
  min-width: 60px;
  white-space: nowrap; /* 숫자는 한 줄로 유지 */
}

/* 텍스트 타입 셀의 너비 최적화 */
.custom-table td[data-type="text"] {
  min-width: 120px;
  max-width: 300px; /* 최대 너비 증가 */
}

.custom-table td:last-child {
  border-right: none;
}

/* First column (ID) styling */
.custom-table th:first-child,
.custom-table td:first-child {
  width: 50px; /* ID 컬럼 너비 줄임 */
  min-width: 50px;
  max-width: 50px;
  padding: 12px 6px; /* 패딩도 줄임 */
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  position: sticky;
  left: 0;
  z-index: 5;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

/* 컬럼별 특정 너비 설정 - 헤더는 내용에 맞게 자동 조정 */
.custom-table th:nth-child(1), /* Drag handle */
.custom-table td:nth-child(1) {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  white-space: nowrap;
}

.custom-table th:nth-child(2), /* Key ID */
.custom-table td:nth-child(2) {
  width: 150px; /* 120px에서 150px로 증가 */
  min-width: 150px; /* 120px에서 150px로 증가 */
  max-width: 180px; /* 150px에서 180px로 증가 */
  white-space: nowrap;
}

/* 숫자 컬럼들 - 데이터 셀만 제한 */
.custom-table td:nth-child(n+3):nth-child(-n+12) {
  width: 120px; /* 너비를 90px에서 120px로 증가 */
  min-width: 100px; /* 최소 너비를 80px에서 100px로 증가 */
  max-width: 150px; /* 최대 너비를 110px에서 150px로 증가 */
  white-space: nowrap;
}

/* 헤더는 내용에 맞게 자동 조정 */
.custom-table th:nth-child(n+3):nth-child(-n+12) {
  width: auto;
  min-width: fit-content;
  white-space: nowrap;
}

.custom-table th:nth-child(13), /* Base Attack 컬럼 */
.custom-table td:nth-child(13) {
  width: 150px; /* Base Attack 버튼 컬럼 너비 */
  min-width: 150px;
  max-width: 180px;
  white-space: nowrap;
}

.custom-table th:nth-child(14), /* Base Attack Audio 컬럼 */
.custom-table td:nth-child(14) {
  width: 290px; /* 오디오 컬럼 너비 */
  min-width: 290px;
  max-width: 330px;
}

.custom-table th:nth-child(15), /* Side Effect Attack 컬럼 */
.custom-table td:nth-child(15) {
  width: 150px; /* Side Effect Attack 버튼 컬럼 너비 */
  min-width: 150px;
  max-width: 200px;
  white-space: nowrap;
}

.custom-table th:nth-child(16), /* After Effect 컬럼 */
.custom-table td:nth-child(16) {
  width: 150px; /* After Effect 버튼 컬럼 너비 */
  min-width: 150px;
  max-width: 180px;
  white-space: nowrap;
}

.custom-table th:nth-child(17), /* After Effect Audio 컬럼 */
.custom-table td:nth-child(17) {
  width: 290px; /* 오디오 컬럼 너비 */
  min-width: 290px;
  max-width: 330px;
}

.custom-table th:last-child, /* Actions 컬럼 */
.custom-table td:last-child {
  width: 200px; /* 너비를 140px에서 200px로 증가 */
  min-width: 200px; /* 최소 너비를 140px에서 200px로 증가 */
  max-width: 240px; /* 최대 너비를 180px에서 240px로 증가 */
  white-space: nowrap;
}

/* Form elements styling */
.custom-table input,
.custom-table select,
.custom-table textarea {
  width: 100%;
  padding: 6px 8px; /* 패딩 줄임 */
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px; /* 둥근 모서리 줄임 */
  font-size: 0.85rem;
  background: rgba(26, 26, 26, 0.9);
  color: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
  min-width: 60px; /* 최소 너비 설정 */
  white-space: normal; /* 입력 필드에서 줄바꿈 허용 */
  overflow: visible; /* 내용이 보이도록 */
  word-wrap: break-word;
  position: relative;
}

/* 숫자 입력 필드 너비 최적화 */
.custom-table input[type="number"] {
  width: 80px;
  max-width: 90px;
  text-align: left;
  white-space: nowrap;
}

/* form-control 클래스가 적용된 숫자 입력 필드 스피너 숨기기 */
.custom-table .form-control[type="number"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

/* 모든 테이블 내 숫자 입력 필드 스피너 숨기기 - 더 구체적인 선택자 */
.custom-table td input[type="number"],
.custom-table th input[type="number"],
.custom-table .form-control[type="number"],
.custom-table input.form-control[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* 웹킷 브라우저 스피너 완전히 숨기기 - 더 구체적인 선택자 */
.custom-table td input[type="number"]::-webkit-outer-spin-button,
.custom-table td input[type="number"]::-webkit-inner-spin-button,
.custom-table th input[type="number"]::-webkit-outer-spin-button,
.custom-table th input[type="number"]::-webkit-inner-spin-button,
.custom-table .form-control[type="number"]::-webkit-outer-spin-button,
.custom-table .form-control[type="number"]::-webkit-inner-spin-button,
.custom-table input.form-control[type="number"]::-webkit-outer-spin-button,
.custom-table input.form-control[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  display: none;
}

.custom-table input:focus,
.custom-table select:focus,
.custom-table textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.custom-table input:hover,
.custom-table select:hover,
.custom-table textarea:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* EditableDropdown 컴포넌트 전용 스타일 */
.custom-table .form-control {
  width: 100%;
  padding: 6px 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.85rem;
  background: rgba(26, 26, 26, 0.9);
  color: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: nowrap !important; /* 강제로 한 줄 유지 */
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  min-width: 120px; /* 최소 너비 설정 */
  position: relative;
}

/* 드롭다운(select) 요소에만 화살표 적용 */
.custom-table select.form-control {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%204%205'%3E%3Cpath%20fill%3D'%23666'%20d%3D'M2%200L0%202h4zM2%205L0%203h4z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px !important;
  padding-right: 35px;
}

/* 일반 input 요소에는 화살표 제거 */
.custom-table input.form-control {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: none !important;
  cursor: text;
  padding-right: 8px;
}

/* 모든 브라우저에서 기본 드롭다운 화살표 완전히 제거 */
.custom-table .form-control::-ms-expand {
  display: none;
}

.custom-table .form-control::-webkit-appearance {
  -webkit-appearance: none;
}

.custom-table .form-control::-moz-appearance {
  -moz-appearance: none;
}

.custom-table .form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.custom-table .form-control:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 드롭다운 옵션들 강제 스타일링 */
.custom-table .form-control option {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 12px;
  font-size: 0.85rem;
  background-color: white;
  color: #333;
}

/* 드롭다운을 포함한 셀의 최소 너비 설정 */
.custom-table td:has(.form-control) {
  min-width: 150px;
  white-space: nowrap;
}

/* Button styling - Dark theme design */
.custom-table .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px; /* 패딩 증가 */
  font-size: 0.8rem; /* 폰트 크기 약간 증가 */
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); /* 다크 네이비 그라데이션으로 변경 */
  border: none;
  border-radius: 12px; /* 더 둥글게 */
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); /* 부드러운 easing */
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3); /* 다크 색상에 맞는 그림자 */
  position: relative;
  overflow: hidden;
  min-width: 120px; /* 최소 너비 증가 */
  max-width: 180px; /* 최대 너비 설정 */
  text-transform: uppercase; /* 대문자 변환 */
  letter-spacing: 0.5px; /* 자간 추가 */
  white-space: nowrap; /* 텍스트 한 줄로 유지 */
  text-overflow: ellipsis; /* 긴 텍스트는 ... 표시 */
}

/* 글로우 효과 추가 */
.custom-table .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.3s ease;
}

.custom-table .btn-primary:hover::before {
  left: 100%;
}

.custom-table .btn-primary:hover {
  background: linear-gradient(135deg, #1a252f 0%, #273746 100%); /* 다크 호버 색상 변경 */
}

.custom-table .btn-primary:active {
  transition: all 0.1s ease;
}

/* Alert styles */
.alert,
.custom-alert {
  margin-bottom: 20px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Remove button with icon styling */
.btn-danger {
  background: linear-gradient(135deg, #5d4e75 0%, #4a3c64 100%); /* 다크 퍼플 그라데이션으로 변경 */
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(93, 78, 117, 0.3); /* 퍼플에 맞는 그림자 */
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  white-space: nowrap;
}

.btn-danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.3s;
}

.btn-danger:hover::before {
  left: 100%;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #4a3c64 0%, #3d3052 100%); /* 다크 퍼플 호버 */
  box-shadow: 0 4px 16px rgba(93, 78, 117, 0.4);
  transform: translateY(-2px);
}

/* Remove button with trash icon */
.btn-danger-icon {
  background: linear-gradient(135deg, #5d4e75 0%, #4a3c64 100%); /* 다크 퍼플 그라데이션으로 변경 */
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(93, 78, 117, 0.3); /* 퍼플에 맞는 그림자 */
  padding: 8px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  position: relative;
  overflow: hidden;
}

.btn-danger-icon::before {
  content: '🗑️';
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-danger-icon:hover {
  background: linear-gradient(135deg, #4a3c64 0%, #3d3052 100%); /* 다크 퍼플 호버 */
  box-shadow: 0 4px 16px rgba(93, 78, 117, 0.4);
  transform: translateY(-2px) scale(1.1);
}

.btn-danger-icon:active {
  transform: translateY(0) scale(0.95);
}

/* Dark theme logout button - Modern sleek design */
.logout-btn-dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0.3px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
  overflow: hidden !important;
  backdrop-filter: blur(20px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 80px !important;
}

.logout-btn-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.5s ease;
}

.logout-btn-dark:hover::before {
  left: 100%;
}

.logout-btn-dark:hover {
  background: linear-gradient(135deg, #0f0f23 0%, #0d1929 100%) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-1px) !important;
}

.logout-btn-dark:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Logout button with icon */
.logout-btn-dark::after {
  content: '⏻';
  margin-left: 6px;
  font-size: 0.9rem;
  display: inline-block;
  transition: transform 0.3s ease;
  opacity: 0.8;
}

.logout-btn-dark:hover::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* Alternative logout button with different styling */
.logout-btn-dark-alt {
  background: rgba(44, 62, 80, 0.9) !important;
  color: #ecf0f1 !important;
  border: 1px solid rgba(52, 152, 219, 0.3) !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  text-decoration: none !important;
}

.logout-btn-dark-alt:hover {
  background: rgba(52, 152, 219, 0.8) !important;
  border-color: rgba(52, 152, 219, 0.8) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.4) !important;
}

/* Table actions column specific styles */
.custom-table .actions-column {
  text-align: center;
  vertical-align: middle;
}

.custom-table .actions-column .btn-danger {
  margin: 0 auto;
}

/* Specific Audio column styles for EventBoss and Enemy tables */
/* EventBoss table - Audio is 12th column */
.custom-table.eventboss-table th:nth-child(12),
.custom-table.eventboss-table td:nth-child(12) {
  width: 250px !important;
  min-width: 250px !important;
  max-width: 280px !important;
}

/* Enemy table - Audio is 13th column */
.custom-table.enemy-table th:nth-child(13),
.custom-table.enemy-table td:nth-child(13) {
  width: 250px !important;
  min-width: 250px !important;
  max-width: 280px !important;
}

/* Responsive adjustments for remove button */
@media (max-width: 768px) {
  .btn-danger {
    min-width: 80px;
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .btn-danger-icon {
    width: 32px;
    height: 32px;
    padding: 6px;
  }
  
  .btn-danger-icon::before {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .btn-danger {
    min-width: 70px;
    padding: 5px 8px;
    font-size: 0.7rem;
  }
  
  .btn-danger-icon {
    width: 28px;
    height: 28px;
    padding: 5px;
  }
  
  .btn-danger-icon::before {
    font-size: 12px;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
    height: calc(100vh - 140px); /* 모바일에서 탭과 여백 고려 */
  }
  
  h1 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  
  .actions-container {
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .save-button, 
  .audio-library-button {
    min-width: 100px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .table-container {
    margin-bottom: 20px;
  }
  
  .custom-table th,
  .custom-table td {
    padding: 10px 8px;
    font-size: 0.8rem;
  }
  
  .custom-table th:first-child,
  .custom-table td:first-child {
    width: 35px;
    min-width: 35px;
    max-width: 35px;
    padding: 8px 4px;
  }
  
  .custom-table th:nth-child(n+3):nth-child(-n+12),
  .custom-table td:nth-child(n+3):nth-child(-n+12) {
    width: 60px;
    min-width: 55px;
    max-width: 70px;
  }
  
  .custom-table {
    min-width: 1300px; /* 모바일에서 약간 줄인 최소 너비 */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
    height: calc(100vh - 120px); /* 작은 화면에서 탭과 여백 고려 */
  }
  
  h1 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  
  .actions-container {
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .save-button, 
  .audio-library-button {
    min-width: 80px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .table-container {
    margin-bottom: 15px;
  }
  
  .custom-table th,
  .custom-table td {
    padding: 8px 6px;
    font-size: 0.75rem;
  }
  
  .custom-table th:first-child,
  .custom-table td:first-child {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    padding: 6px 3px;
  }
  
  .custom-table th:nth-child(n+3):nth-child(-n+12),
  .custom-table td:nth-child(n+3):nth-child(-n+12) {
    width: 50px;
    min-width: 45px;
    max-width: 60px;
  }
  
  .custom-table {
    min-width: 1200px; /* 작은 화면에서 더 줄인 최소 너비 */
  }
}

/* EditableExpandableCell styling */
.editable-expandable-cell-container {
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.editable-expandable-cell-container textarea {
  font-family: inherit;
  background-color: rgba(26, 26, 26, 0.9) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  padding: 8px 30px 8px 12px !important;
  font-size: 0.85rem !important;
  transition: all 0.3s ease !important;
  resize: vertical !important;
  min-height: 40px !important;
  white-space: pre-wrap !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  position: relative !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
}

.editable-expandable-cell-container textarea::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.editable-expandable-cell-container textarea:focus {
  outline: none !important;
  border-color: #667eea !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3) !important;
  background-color: rgba(26, 26, 26, 0.95) !important;
}

.editable-expandable-cell-container textarea:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Expand/Collapse button styling */
.editable-expandable-cell-container button {
  background: rgba(26, 26, 26, 0.9) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.editable-expandable-cell-container button:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #667eea !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}

.editable-expandable-cell-container button:active {
  transform: scale(0.95) !important;
}

/* Table cell containing expandable component */
.custom-table td:has(.editable-expandable-cell-container) {
  padding: 8px !important;
  min-width: 300px !important;
  max-width: 500px !important;
  white-space: normal !important;
  vertical-align: top !important;
  overflow: visible !important;
  background: rgba(26, 26, 26, 0.95) !important;
  color: #ffffff !important;
}

/* Image Upload Cell styling */
.image-upload-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 8px;
}

.image-container {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rune-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.image-container:hover .image-overlay {
  opacity: 1;
}

.image-overlay svg {
  color: white;
  font-size: 20px;
}

.upload-placeholder {
  width: 60px;
  height: 60px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.5);
}

.upload-placeholder:hover {
  border-color: #3498db;
  background-color: rgba(52, 152, 219, 0.1);
}

.upload-placeholder svg {
  color: #888;
  font-size: 24px;
}

.upload-placeholder:hover svg {
  color: #3498db;
}

.loading-indicator {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
}

.loading-indicator svg {
  color: #3498db;
  font-size: 28px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}/* Audio Upload Styles - Modern trendy design */
.audio-upload-container {
  display: flex;
  flex-direction: column; /* row에서 column으로 변경 */
  align-items: stretch; /* center에서 stretch로 변경 */
  justify-content: flex-start; /* space-between에서 flex-start로 변경 */
  width: 100%;
  padding: 8px 10px; /* 6px 8px에서 8px 10px로 증가 */
  gap: 8px; /* 간격 유지 */
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.3s ease;
  min-height: 70px; /* 최소 높이를 60px에서 70px로 증가 */
  max-height: auto; /* 최대 높이 제한 제거 */
  flex-wrap: nowrap; /* wrap에서 nowrap으로 변경 */
  box-sizing: border-box;
}

.audio-upload-container:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: rgba(52, 152, 219, 0.3);
}

.audio-filename {
  font-size: 0.75rem; /* 0.7rem에서 0.75rem로 증가 */
  font-weight: 600;
  white-space: normal; /* nowrap에서 normal로 변경하여 줄바꿈 허용 */
  overflow: visible; /* hidden에서 visible로 변경 */
  text-overflow: unset; /* ellipsis 제거 */
  max-width: 100%; /* 120px에서 100%로 변경 */
  color: #475569;
  text-align: center; /* left에서 center로 변경 */
  padding: 3px 8px; /* 2px 6px에서 3px 8px로 증가 */
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  backdrop-filter: blur(4px);
  line-height: 1.3; /* 줄간격 조정 */
  flex-shrink: 0;
  margin-bottom: 4px; /* 하단 여백 추가 */
  word-wrap: break-word; /* 긴 파일명 줄바꿈 */
  word-break: break-word; /* 단어 강제 줄바꿈 */
  min-height: 20px; /* 최소 높이 설정 */
}

.audio-controls {
  display: flex;
  justify-content: center; /* flex-end에서 center로 변경 */
  gap: 6px; /* 3px에서 6px로 증가 */
  flex-wrap: nowrap;
  flex-shrink: 0;
  width: 100%; /* 전체 너비 사용 */
}

.audio-controls button {
  padding: 4px 8px; /* 2px 4px에서 4px 8px로 증가 */
  font-size: 0.65rem; /* 0.6rem에서 0.65rem로 증가 */
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 35px; /* 30px에서 35px로 증가 */
  text-transform: uppercase;
  letter-spacing: 0.2px;
  backdrop-filter: blur(4px);
  line-height: 1;
  height: 24px; /* 고정 높이 유지 */
}

.audio-controls button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.audio-upload-btn {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); /* 다크 네이비 그라데이션으로 변경 */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px; /* 2px에서 3px로 증가 */
  padding: 4px 8px; /* 3px 6px에서 4px 8px로 증가 */
  border-radius: 4px;
  font-size: 0.65rem; /* 0.6rem에서 0.65rem로 증가 */
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.3); /* 다크 색상에 맞는 그림자 */
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1;
  height: 28px; /* 24px에서 28px로 증가 */
  min-width: 60px; /* 50px에서 60px로 증가 */
  flex-shrink: 0;
  cursor: pointer;
}

.audio-upload-btn:hover {
  background: linear-gradient(135deg, #1a252f 0%, #273746 100%); /* 다크 호버 색상 */
  box-shadow: 0 2px 6px rgba(44, 62, 80, 0.4); /* 그림자 줄임 */
}

.audio-checking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px; /* 3px에서 4px로 증가 */
  font-size: 0.7rem; /* 0.65rem에서 0.7rem로 증가 */
  color: #6b7280;
  padding: 4px 8px; /* 3px 6px에서 4px 8px로 증가 */
  font-weight: 500;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  backdrop-filter: blur(4px);
  line-height: 1;
  height: 28px; /* 24px에서 28px로 증가 */
  flex-shrink: 0;
}

.spinner {
  width: 12px; /* 16px에서 12px로 줄임 */
  height: 12px; /* 16px에서 12px로 줄임 */
  border: 2px solid rgba(52, 152, 219, 0.3);
  border-radius: 50%;
  border-top-color: #3498db;
  animation: spin 1s linear infinite;
}

/* Audio Upload Disabled States */
.audio-upload-container.audio-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.audio-disabled-message {
  font-size: 0.7rem;
  color: #dc3545;
  text-align: center;
  font-style: italic;
  font-weight: 500;
  background: rgba(220, 53, 69, 0.1);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(220, 53, 69, 0.2);
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Audio disabled label styling */
.audio-disabled-label {
  background: #e9ecef !important;
  color: #6c757d !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.audio-disabled-label:hover {
  background: #e9ecef !important;
  box-shadow: none !important;
}

/* Upload Controls Styling */
.upload-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 4px;
}

.library-upload-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.library-upload-buttons button,
.library-upload-buttons label {
  flex: 1;
  min-width: 0;
}

.btn-outline-secondary {
  background: linear-gradient(135deg, #5d4e75 0%, #4a3c64 100%); /* 다크 퍼플 그라데이션으로 변경 */
  color: white;
  border: none;
  padding: 4px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(93, 78, 117, 0.3); /* 퍼플에 맞는 그림자 */
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1;
  height: 28px;
  cursor: pointer;
}

.btn-outline-secondary:hover {
  background: linear-gradient(135deg, #4a3c64 0%, #3d3052 100%); /* 다크 퍼플 호버 */
  box-shadow: 0 2px 6px rgba(93, 78, 117, 0.4);
}

.btn-outline-secondary:disabled {
  background: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  box-shadow: none;
}

/* Progress bar styling */
.audio-progress {
  width: 100%;
  margin-top: 2px;
}

.progress {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* Button animations - Modern trendy effects */
@keyframes pulse-play {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.4);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 0 8px rgba(6, 214, 160, 0);
    transform: scale(1);
  }
}

@keyframes pulse-stop {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(247, 37, 133, 0.4);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 0 8px rgba(247, 37, 133, 0);
    transform: scale(1);
  }
}

.btn-primary {
  animation: pulse-play 3s infinite ease-in-out;
}

.btn-success {
  animation: pulse-stop 3s infinite ease-in-out;
}

/* Audio Library Modal Styles */
.audio-library-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.audio-library-modal {
  background-color: white;
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modal-appear 0.3s ease-out;
  overflow: hidden;
}

@keyframes modal-appear {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.audio-library-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.audio-library-modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #2c3e50;
  font-weight: 600;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #6c757d;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal-btn:hover {
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}

.audio-library-modal-body {
  flex: 1;
  padding: 25px;
  overflow-y: auto;
}

.audio-library-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.audio-library-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.search-container {
  flex: 1;
  min-width: 250px;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.upload-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); /* 다크 네이비 그라데이션으로 변경 */
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3); /* 다크 색상에 맞는 그림자 */
}

.upload-btn:hover {
  box-shadow: 0 6px 16px rgba(44, 62, 80, 0.4);
}

.upload-btn.uploading {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  cursor: not-allowed;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.audio-files-list {
  flex: 1;
  min-height: 300px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: #f8f9fa;
  overflow-y: auto;
}

.audio-file-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* 상단 정렬 */
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.2s ease;
  background: white;
  min-height: 60px; /* 최소 높이 설정 */
  flex-wrap: wrap; /* 필요시 줄바꿈 허용 */
  gap: 10px; /* 요소 간 간격 추가 */
}

.audio-file-item:hover {
  background: rgba(52, 152, 219, 0.05);
}

.audio-file-item:last-child {
  border-bottom: none;
}

.audio-file-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2c3e50;
  white-space: normal; /* 줄바꿈 허용 */
  overflow: visible; /* 내용이 보이도록 설정 */
  text-overflow: unset; /* ellipsis 제거 */
  padding-right: 15px;
  word-wrap: break-word; /* 긴 파일명 줄바꿈 */
  word-break: break-word; /* 단어 강제 줄바꿈 */
  line-height: 1.4; /* 줄간격 조정 */
  max-width: none; /* 최대 너비 제한 제거 */
  min-height: 1.4em; /* 최소 높이 설정 */
}

.audio-file-controls {
  display: flex;
  gap: 8px;
  align-items: flex-start; /* 컨트롤 버튼들도 상단 정렬 */
  flex-shrink: 0; /* 버튼들이 축소되지 않도록 */
  margin-top: 2px; /* 약간의 여백 추가 */
  flex-wrap: nowrap; /* 버튼들이 줄바꿈되지 않도록 */
}

.btn-play, .btn-select, .btn-delete {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 55px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}

.btn-play {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); /* 다크 네이비 그라데이션으로 변경 */
  color: white;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.btn-play:hover {
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.4);
  background: linear-gradient(135deg, #1a252f 0%, #273746 100%);
}

.btn-play.playing {
  background: linear-gradient(135deg, #5d4e75 0%, #4a3c64 100%); /* 다크 퍼플 그라데이션으로 변경 */
  box-shadow: 0 2px 8px rgba(93, 78, 117, 0.3);
  animation: pulse-glow 2s infinite;
}

.btn-select {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%); /* 다크 네이비 그라데이션으로 변경 */
  color: white;
  box-shadow: 0 2px 8px rgba(52, 73, 94, 0.3);
}

.btn-select:hover {
  box-shadow: 0 4px 16px rgba(52, 73, 94, 0.4);
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
}

.btn-delete {
  background: linear-gradient(135deg, #5d4e75 0%, #4a3c64 100%); /* 다크 퍼플 그라데이션으로 변경 */
  color: white;
  box-shadow: 0 2px 8px rgba(93, 78, 117, 0.3);
}

.btn-delete:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(93, 78, 117, 0.4);
  background: linear-gradient(135deg, #4a3c64 0%, #3d3052 100%);
}

/* 글로우 펄스 애니메이션 */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(93, 78, 117, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(93, 78, 117, 0.6);
  }
}

.loading-message, .empty-message {
  padding: 40px 20px;
  text-align: center;
  color: #6c757d;
  font-size: 1rem;
  font-weight: 500;
}

.audio-library-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 20px 25px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
}

/* Dark theme header class for overriding inline styles */
.dark-theme-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-align: center !important;
  padding: 16px 12px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.dark-theme-header:last-child {
  border-right: none !important;
}

/* Ensure content doesn't get cut off */
body {
  padding-bottom: 0; /* 패딩 제거 */
}

/* Root level scroll fix */
#root {
  height: 100vh;
  overflow: hidden;
}