/* 
 * Admin Components - Tables, Forms, Modals
 * Based on Figma Design System
 */

/* ========== PAGE HEADER & NAVIGATION ========== */

/* Page Header Container */
.page-header-new {
  padding: 24px 32px;
  background: #FFFFFF;
  border-bottom: 1px solid #E7E7EE;
  margin-bottom: 24px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Legacy Page Title Box Override */
.page-title-box {
  background: #FFFFFF !important;
  border-radius: 20px !important;
  padding: 24px 32px !important;
  margin: 0 0 24px 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #E7E7EE !important;
}

.page-title-box .page-title {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #5C595F !important;
  margin: 0 !important;
  line-height: 140% !important;
  letter-spacing: -0.84px !important;
}

.page-title-box .breadcrumb {
  padding: 0 !important;
  margin: 16px 0 0 0 !important;
  background: transparent !important;
}

.page-title-box .breadcrumb-item {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif !important;
  font-size: 14px !important;
  color: #999 !important;
  font-weight: 500 !important;
}

.page-title-box .breadcrumb-item a {
  color: #999 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.page-title-box .breadcrumb-item a:hover {
  color: #802FFF !important;
}

.page-title-box .breadcrumb-item.active {
  color: #802FFF !important;
  font-weight: 600 !important;
}

.page-title-box .breadcrumb-item + .breadcrumb-item::before {
  content: ">" !important;
  color: #DADADA !important;
  font-weight: 400 !important;
}

/* Breadcrumb Navigation */
.breadcrumb-new {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #999;
  margin-bottom: 16px;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

.breadcrumb-new a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.breadcrumb-new a:hover {
  color: #802FFF;
}

.breadcrumb-new .separator {
  color: #DADADA;
  font-weight: 400;
}

.breadcrumb-new .current {
  color: #802FFF;
  font-weight: 600;
}

/* Page Title with Actions */
.page-title-with-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-title-new {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #5C595F;
  margin: 0;
  line-height: 140%;
  letter-spacing: -0.84px;
}

.page-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Search and Filter Bar */
.search-filter-bar {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #E7E7EE;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-size: 14px;
  border: 1px solid #E7E7EE;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

.search-box input:focus {
  outline: none;
  border-color: #802FFF;
  box-shadow: 0 0 0 3px rgba(128, 47, 255, 0.1);
}

.search-box .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #A9A9A9;
  font-size: 18px;
}

.filter-select {
  min-width: 140px;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid #E7E7EE;
  border-radius: 8px;
  background: #FFFFFF;
  transition: all 0.2s ease;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

.filter-select:focus {
  outline: none;
  border-color: #802FFF;
  box-shadow: 0 0 0 3px rgba(128, 47, 255, 0.1);
}

/* ========== CUSTOM HOME BADGE ========== */
.custom-home-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 12px !important;
  background: #F8F6FF !important;
  color: #802FFF !important;
  border-radius: 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  border: none !important;
  box-shadow: none !important;
}

.custom-home-badge:hover {
  background: #F0EDFF !important;
  color: #802FFF !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(128, 47, 255, 0.15) !important;
}

.custom-home-badge .mdi-home {
  font-size: 16px !important;
  color: #802FFF !important;
}

/* ========== TABLE STYLES ========== */

/* Table Container */
.table-responsive {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.table-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.table-header {
  padding: 24px 32px;
  border-bottom: 1px solid #E7E7EE;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-title {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #5C595F;
  margin: 0;
  line-height: 140%;
}

.table-actions {
  display: flex;
  gap: 12px;
}

/* Table Styles */
.table {
  margin-bottom: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

.table thead {
  background: #FAFAFD;
  border-top: 1px solid #DADADA;
  border-bottom: 1px solid #F1F1F1;
}

.table thead th {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  border: none;
  vertical-align: middle;
}

.table tbody td {
  padding: 16px 20px;
  font-size: 14px;
  color: #5C595F;
  border-bottom: 1px solid #F1F1F1;
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: #FAFAFD;
}

.table tbody tr.selected {
  background: #F8F6FF;
}

.table tbody tr.selected td {
  border-color: #802FFF;
}

/* Table Badges */
.table-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.table-badge.active {
  background: #E8F5E8;
  color: #2E7D32;
}

.table-badge.inactive {
  background: #FFEBEE;
  color: #C62828;
}

.table-badge.pending {
  background: #FFF3E0;
  color: #EF6C00;
}

.table-badge.success {
  background: #E3F2FD;
  color: #1565C0;
}

.table-badge.danger {
  background: #FFEBEE;
  color: #C62828;
}

/* ========== FORM STYLES ========== */

.form-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #E7E7EE;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #5C595F;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

.form-label.required::after {
  content: " *";
  color: #FF6B6B;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid #E7E7EE;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: #802FFF;
  box-shadow: 0 0 0 3px rgba(128, 47, 255, 0.1);
}

.form-control::placeholder {
  color: #A9A9A9;
}

.form-control:disabled {
  background: #FAFAFD;
  color: #A9A9A9;
  cursor: not-allowed;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid #E7E7EE;
  border-radius: 8px;
  background: #FFFFFF;
  transition: all 0.2s ease;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: #802FFF;
  box-shadow: 0 0 0 3px rgba(128, 47, 255, 0.1);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  border: 2px solid #E7E7EE;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background: #802FFF;
  border-color: #802FFF;
}

.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-label {
  font-size: 14px;
  font-weight: 500;
  color: #5C595F;
  cursor: pointer;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

.form-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-switch .form-check-input {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #E7E7EE;
  border: none;
  position: relative;
  transition: all 0.2s ease;
}

.form-switch .form-check-input:checked {
  background: #802FFF;
}

.form-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #E7E7EE;
}

.btn-form {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

.form-text {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

.form-text.text-danger {
  color: #FF6B6B;
}

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

/* ========== MODAL STYLES ========== */

.modal-backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
  max-width: 600px;
}

/* 모달 크기 확장 */
.modal-xl {
  max-width: 1200px !important;
}

.modal-full-width {
  max-width: 95% !important;
  margin: 1.75rem auto;
}

/* 특정 모달들의 추가 크기 조정 */
.modal-dialog.modal-xl .modal-content {
  min-height: 600px;
}

.modal-dialog.modal-full-width .modal-content {
  min-height: 700px;
}

/* 모달 내부 폼 요소들의 너비 조정 */
.modal-xl .form-control,
.modal-full-width .form-control {
  max-width: 100%;
}

.modal-xl .table,
.modal-full-width .table {
  width: 100%;
  margin-bottom: 0;
}

.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid #E7E7EE;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #5C595F;
  margin: 0;
}

.btn-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #FAFAFD;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  opacity: 1;
  padding: 0;
  margin: 0;
  box-shadow: none;
  z-index: 2;
}

/* Bootstrap 기본 스타일 재정의 */
.btn-close:focus {
  box-shadow: none;
  outline: none;
}

.btn-close::before,
.btn-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background-color: #5C595F;
  transform-origin: center;
  transition: background-color 0.2s ease;
}

.btn-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.btn-close:hover {
  background: #F0EDFF;
}

.btn-close:hover::before,
.btn-close:hover::after {
  background-color: #802FFF;
}

/* 접근성을 위한 스크린 리더 텍스트 */
.btn-close .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.modal-body {
  padding: 32px;
  background: #FFFFFF;
}

.modal-footer {
  padding: 24px 32px;
  border-top: 1px solid #E7E7EE;
  background: #FFFFFF;
  border-radius: 0 0 20px 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* ========== MODAL BUTTONS ========== */

/* 디자인 시스템 색상 */
:root {
  --primary-color: #802FFF;
  --primary-hover: #6B2CD9;
  --secondary-color: #5C595F;
  --secondary-hover: #4A464C;
  --success-color: #00D4AA;
  --success-hover: #00B894;
  --danger-color: #FF6B6B;
  --danger-hover: #E55555;
  --warning-color: #FFA726;
  --warning-hover: #FF9800;
  --light-color: #FAFAFD;
  --light-hover: #F0EDFF;
  --border-color: #E7E7EE;
  --text-primary: #5C595F;
  --text-secondary: #999;
  --white: #FFFFFF;
}

/* 모달 버튼 기본 스타일 */
.modal-footer .btn {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

/* 주요 액션 버튼 (저장, 확인 등) */
.modal-footer .btn-primary,
.modal-footer .btn-success {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(128, 47, 255, 0.2);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-footer .btn-primary:hover,
.modal-footer .btn-success:hover {
  background: var(--primary-hover);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(128, 47, 255, 0.3);
  transform: translateY(-1px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 보조 액션 버튼 (취소, 닫기 등) */
.modal-footer .btn-secondary,
.modal-footer .btn-light {
  background: var(--light-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-weight: 600;
}

.modal-footer .btn-secondary:hover,
.modal-footer .btn-light:hover {
  background: var(--light-hover);
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 700;
}

/* 위험 액션 버튼 (삭제 등) */
.modal-footer .btn-danger {
  background: var(--danger-color);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.modal-footer .btn-danger:hover {
  background: var(--danger-hover);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  transform: translateY(-1px);
}

/* 경고 액션 버튼 */
.modal-footer .btn-warning {
  background: var(--warning-color);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(255, 167, 38, 0.2);
}

.modal-footer .btn-warning:hover {
  background: var(--warning-hover);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
  transform: translateY(-1px);
}

/* 작은 버튼 */
.modal-footer .btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  min-width: 80px;
}

/* 큰 버튼 */
.modal-footer .btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  min-width: 120px;
}

/* 버튼 비활성화 */
.modal-footer .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* btn-bordered 클래스 지원 */
.modal-footer .btn-bordered {
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--text-primary);
}

.modal-footer .btn-bordered:hover {
  border-color: var(--primary-color);
  background: var(--light-hover);
  color: var(--primary-color);
}

/* btn-xs 클래스 지원 */
.modal-footer .btn-xs {
  padding: 6px 12px;
  font-size: 12px;
  min-width: 60px;
}

/* 아이콘이 있는 버튼 */
.modal-footer .btn i {
  font-size: 14px;
  margin-right: 4px;
}

.modal-footer .btn-xs i {
  font-size: 12px;
  margin-right: 3px;
}

/* 모달 푸터 버튼 그룹 스타일 */
.modal-footer .btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* 확인/취소 버튼 조합 */
.modal-footer .btn-confirm-cancel {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

/* 저장/닫기 버튼 조합 */
.modal-footer .btn-save-close {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

/* 단일 액션 버튼 (가운데 정렬) */
.modal-footer .btn-single-action {
  margin: 0 auto;
}

/* ========== SEARCH & FILTER ========== */

.search-filter-container {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-group {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-size: 14px;
  border: 1px solid #E7E7EE;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.filter-buttons {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #E7E7EE;
  border-radius: 8px;
  background: #FFFFFF;
  color: #5C595F;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #802FFF;
  color: #802FFF;
}

.filter-btn.active {
  background: #802FFF;
  border-color: #802FFF;
  color: #FFFFFF;
}

/* ========== PAGINATION ========== */

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  border-top: 1px solid #E7E7EE;
}

.pagination {
  margin: 0;
}

.page-link {
  padding: 8px 12px;
  margin: 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: #5C595F;
  background: #FFFFFF;
  border: 1px solid #E7E7EE;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.page-link:hover {
  background: #F8F6FF;
  border-color: #802FFF;
  color: #802FFF;
}

.page-item.active .page-link {
  background: #802FFF;
  border-color: #802FFF;
  color: #FFFFFF;
}

.page-item.disabled .page-link {
  background: #FAFAFD;
  color: #A9A9A9;
  cursor: not-allowed;
}

/* ========== MENU TREE ========== */

.menu-tree-container {
  border: 1px solid #e3e6f0;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 20px;
}

.menu-tree {
  padding: 0;
}

.menu-item {
  border-bottom: 1px solid #f8f9fc;
  transition: background-color 0.2s ease;
}

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

.menu-item:hover {
  background-color: #f8f9fc;
}

.menu-item-content {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
}

.menu-checkbox {
  margin: 0;
  flex-shrink: 0;
}

.folder-icon,
.file-icon {
  flex-shrink: 0;
}

.menu-title {
  flex: 1;
  font-weight: 500;
  color: #333;
  min-width: 0;
}

.menu-url {
  color: #6c757d;
  font-size: 0.875rem;
  margin-left: 16px;
  flex: 1;
  min-width: 0;
}

.menu-status {
  margin-left: 16px;
  flex-shrink: 0;
}

.menu-actions {
  margin-left: auto;
  flex-shrink: 0;
}

.menu-actions .action-icon {
  color: #6c757d;
  margin-left: 8px;
  transition: color 0.2s ease;
}

.menu-actions .action-icon:hover {
  color: #802FFF;
}

.no-data {
  padding: 40px 20px;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

/* ========== LANGUAGE SELECTOR ========== */

.language-selector {
  position: relative;
  display: inline-block;
}

.language-selector select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #FFFFFF;
  border: 1px solid #E7E7EE;
  border-radius: 8px;
  padding: 8px 32px 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #5C595F;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  min-width: 120px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23802FFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px 12px;
  letter-spacing: -0.3px;
}

.language-selector select:focus {
  outline: none;
  border-color: #802FFF;
  box-shadow: 0 0 0 3px rgba(128, 47, 255, 0.1);
}

.language-selector select:hover {
  border-color: #802FFF;
}

.language-selector select option {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #5C595F;
  background: #FFFFFF;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

.language-selector select option:hover {
  background: #F8F6FF;
}

.language-selector select option:checked {
  background: #802FFF;
  color: #FFFFFF;
}

/* Language Selector with Icon */
.language-selector-with-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.language-selector-with-icon::before {
  content: "\f0ac";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 16px;
  color: #802FFF;
  line-height: 1;
}

/* Alternative icon using emoji if Font Awesome is not available */
.language-selector-with-icon.no-fa::before {
  content: "🌐";
  font-family: inherit;
  font-weight: normal;
}

/* Language Selector with Icon Inside Options */
.language-selector-with-option-icons select option {
  padding-left: 24px;
  position: relative;
}

.language-selector-with-option-icons select option::before {
  content: "\f0ac";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #802FFF;
  font-size: 14px;
}

/* Custom styled language selector with icons in options */
.language-selector-custom {
  position: relative;
  display: inline-block;
}

.language-selector-custom select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #FFFFFF;
  border: 1px solid #E7E7EE;
  border-radius: 8px;
  padding: 8px 32px 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #5C595F;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  min-width: 140px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23802FFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px 12px;
  letter-spacing: -0.3px;
}

.language-selector-custom select:focus {
  outline: none;
  border-color: #802FFF;
  box-shadow: 0 0 0 3px rgba(128, 47, 255, 0.1);
}

.language-selector-custom select:hover {
  border-color: #802FFF;
}

.language-selector-custom select option {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #5C595F;
  background: #FFFFFF;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

.language-selector-custom select option:hover {
  background: #F8F6FF;
}

.language-selector-custom select option:checked {
  background: #802FFF;
  color: #FFFFFF;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .page-header-new {
    padding: 16px 20px;
    margin-bottom: 16px;
  }
  
  .page-title-new {
    font-size: 24px;
  }
  
  .page-title-with-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .search-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .search-box {
    max-width: none;
  }
  
  .filter-select {
    min-width: auto;
  }
  
  .menu-item-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .menu-url {
    margin-left: 0;
    font-size: 12px;
  }
  
  .menu-status {
    margin-left: 0;
  }
  
  .menu-actions {
    margin-left: 0;
    align-self: flex-end;
  }

  /* 모바일에서 모달 닫기 버튼 개선 */
  .modal-header {
    padding: 16px 20px;
  }

  .btn-close {
    width: 28px;
    height: 28px;
  }

  .btn-close::before,
  .btn-close::after {
    width: 14px;
    height: 2px;
  }

  .modal-title {
    font-size: 18px;
  }

  /* 모바일에서 모달 버튼 개선 */
  .modal-footer {
    padding: 16px 20px;
    flex-direction: column;
    gap: 8px;
  }

  .modal-footer .btn {
    width: 100%;
    min-width: auto;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
  }

  .modal-footer .btn-sm {
    padding: 10px 16px;
  }

  .modal-footer .btn-lg {
    padding: 14px 24px;
  }

  /* 모바일에서 버튼 그룹 개선 */
  .modal-footer .btn-group,
  .modal-footer .btn-confirm-cancel,
  .modal-footer .btn-save-close {
    flex-direction: column;
    gap: 8px;
  }

  .modal-footer .btn-single-action {
    width: 100%;
  }
}