/* Main Styles for 25Point CMS */

/* Common styles */
table.dataTable thead .sorting::before,
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::before,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::before,
table.dataTable thead .sorting_desc::after {
  display: none !important;
  content: "" !important;
}
body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Breadcrumb styles */
.breadcrumb-container {
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
  background-color: transparent;
  padding: 0.75rem 0;
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: #6c757d;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #4361ee;
}

.breadcrumb-item.active {
  color: #495057;
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #adb5bd;
}

.content-wrapper {
  flex: 1;
  padding: 20px;
}

.card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Login styles */
.login-container {
  max-width: 400px;
  margin: 80px auto;
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-form {
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Dashboard styles */
.stat-card {
  border-left: 4px solid #e3e6f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.border-left-primary {
  border-left-color: #4e73df !important;
}

.border-left-success {
  border-left-color: #1cc88a !important;
}

.border-left-info {
  border-left-color: #36b9cc !important;
}

.border-left-warning {
  border-left-color: #f6c23e !important;
}

.text-xs {
  font-size: 0.7rem;
}

.font-weight-bold {
  font-weight: 700;
}

.text-gray-800 {
  color: #5a5c69 !important;
}

.text-gray-300 {
  color: #dddfeb !important;
}

.stat-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

/* Store card styles */
.store-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e3e6f0;
}

.store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.store-card .card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom: none;
  padding: 1rem;
}

.store-card .card-header .card-title {
  color: white;
  font-weight: 600;
}

.store-card .card-header .badge {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: white;
  font-weight: 500;
}

.store-card .progress {
  height: 8px;
  background-color: #f1f3f4;
}

.store-card .progress-bar {
  transition: width 0.3s ease;
}

.store-card .card-footer {
  padding: 0.75rem 1rem;
}

.store-card .btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* Statistics card improvements */
.card.text-center {
  transition: transform 0.2s ease;
}

.card.text-center:hover {
  transform: translateY(-1px);
}

/* Form improvements */
.form-select, .form-control {
  border-radius: 6px;
  border: 1px solid #d1d3e2;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select:focus, .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Button improvements */
.btn {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-1px);
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    line-height: 1.2;
    border-radius: 0.25rem;
    min-width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-xs:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.option-toggle-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #dee2e6;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    color: #495057;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.option-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.5s ease;
}

.option-toggle-btn:hover {
    background: linear-gradient(145deg, #007bff, #0056b3);
    border-color: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
}

.option-toggle-btn:hover::before {
    left: 100%;
}

.option-toggle-btn:hover i {
    transform: rotate(360deg);
    transition: transform 0.6s ease;
}

.option-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.option-toggle-btn i {
    transition: transform 0.3s ease;
}
  .option-item {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.option-item:last-child {
    margin-bottom: 0;
}

.option-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

/* 테이블 행 호버 효과 개선 */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transition: background-color 0.3s ease;
}

/* 배지 호버 효과 */
.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
}

/* 버튼 그룹 호버 효과 */
.btn-group-hover {
    transition: all 0.3s ease;
}

/* 변경 버튼 특별 효과 */
.option-toggle-btn {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.5s ease;
}

.option-toggle-btn:hover {
    background: linear-gradient(145deg, #007bff, #0056b3);
    border-color: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
}

.option-toggle-btn:hover::before {
    left: 100%;
}

.option-toggle-btn:hover i {
    transform: rotate(360deg);
    transition: transform 0.6s ease;
}

.option-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.option-toggle-btn i {
    transition: transform 0.3s ease;
}

/* 툴팁 커스터마이징 */
.tooltip .tooltip-inner {
    background-color: #007bff;
    color: white;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}
  .tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #007bff;
}
  /* 상품 썸네일 스타일 */
.product-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
    z-index: 10;
}

.product-thumbnail-wrapper {
    position: relative;
    display: inline-block;
}

.product-thumbnail-wrapper::after {
    content: '🔍';
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 123, 255, 0.8);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(25%, -25%);
}

.product-thumbnail-wrapper:hover::after {
    opacity: 1;
}

.thumbnail-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border: 1px dashed #dee2e6;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.thumbnail-placeholder:hover {
    background: linear-gradient(145deg, #e9ecef, #dee2e6);
    border-color: #007bff;
    color: #007bff;
}

/* 라디오 버튼 스타일 개선 */
.status-radio-item {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.status-radio-item:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

.status-radio-item input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    accent-color: #007bff;
}

.status-radio-item input[type="radio"]:checked + label {
    font-weight: 600;
    color: #007bff;
}

.status-radio-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.status-radio-item.disabled:hover {
    transform: none;
    border-color: #e9ecef;
}

.status-radio-label {
    font-size: 1.1rem;
    margin-bottom: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* 상태변경 버튼 특별 스타일 */
.status-change-btn {
    background: linear-gradient(145deg, #ffc107, #ffb300);
    border: 1px solid #ffb300;
    color: #212529;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.status-change-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.status-change-btn:hover {
    background: linear-gradient(145deg, #ff9800, #f57c00);
    border-color: #f57c00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

.status-change-btn:hover::before {
    left: 100%;
}

.status-change-btn:hover i {
    transform: rotate(180deg);
    transition: transform 0.4s ease;
}

.status-change-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.status-change-btn i {
    transition: transform 0.3s ease;
}
 
/* 모달 내 비활성 입력창 스타일 */
.modal-readonly-input {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

.modal-readonly-input:focus {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    box-shadow: none !important;
}


.form-section { 
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-section-header {
    background: linear-gradient(135deg, #343a40, #212529);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
    margin: 0;
    font-weight: 600;
}

.form-section-body {
    padding: 1.5rem;
}

.image-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-upload-area:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.image-upload-area.dragover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.current-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.option-item {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.option-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-add-option {
    border: 2px dashed #007bff;
    color: #007bff;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-add-option:hover {
    background: #007bff;
    color: white;
    border-style: solid;
}

.required-field {
    color: #dc3545;
}

/* readonly 필드 스타일 */
.form-control[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* 언어별 입력 스타일 */
.language-input-group {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
}

.language-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

/* 이미지 관리 관련 스타일 */
.file-input-group {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0;
    overflow: hidden;
    background-color: #fff;
    margin-bottom: 0.5rem;
}

.file-input-display {
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    flex: 1;
    
}

.file-input-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-browse {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-browse:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.btn-delete {
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-delete:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.language-image-group {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
}

/* 설명 이미지 관련 스타일 */
.description-image-upload {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1rem;
}

.description-image-upload:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.description-image-upload.dragover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.description-image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.description-image-item {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #fff;
}

.description-image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.description-image-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875rem;
}

.description-image-remove:hover {
    background-color: #c82333;
}

.image-count {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.language-image-group {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
}

/* 설명 이미지 섹션 구분 스타일 */
.description-section {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background-color: #f8f9fa;
}

.description-section-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

/* 로그아웃 모달 커스텀 스타일 */
.logout-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.logout-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 25px 30px;
    text-align: center;
    position: relative;
}

.logout-modal .modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    width: 100%;
}

.logout-modal .btn-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    width: auto;
    height: auto;
    padding: 0;
}

.logout-modal .btn-close:hover {
    opacity: 1;
    color: white;
}

.logout-modal .modal-body {
    padding: 40px 30px;
    text-align: center;
    background: white;
}

.logout-modal .logout-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: white;
}

.logout-modal .logout-text {
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.logout-modal .logout-subtext {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.logout-modal .modal-footer {
    background: #f8f9fa;
    border: none;
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.logout-modal .btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    min-width: 100px;
    transition: all 0.3s ease;
}

.logout-modal .btn-cancel:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-1px);
}

.logout-modal .btn-logout {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    min-width: 100px;
    transition: all 0.3s ease;
}

.logout-modal .btn-logout:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
    transform: translateY(-1px);
}

/* 상단 이동 플로팅 버튼 스타일 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* Increased from 1.2rem */
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}
  .scroll-to-top:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.scroll-to-top.show {
    display: flex;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 옵션 관리 관련 스타일 */
.option-category {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.option-category .card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
}

/* 옵션 관리 추가 스타일 */
.option-type-card {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.option-type-card:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.option-type-card.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.option-type-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.option-type-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

.option-type-icon {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.option-management-area {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    margin-top: 1rem;
}

/* 일반형 옵션 관리 스타일 */
.simple-category-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.category-name-inputs {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    margin-right: 1rem;
}

.category-name-input {
    font-weight: 600;
    border: 1px solid #dee2e6;
    background: transparent;
    font-size: 0.9rem;
    color: #495057;
    width: 150px;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.category-name-input:focus {
    outline: none;
    border-color: #007bff;
    background-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.option-item-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
}

.item-name-inputs {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.option-item-input {
    border: 1px solid #dee2e6;
    background: transparent;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    border-radius: 0.25rem;
    width: 120px;
}

.option-item-input:focus {
    background-color: #fff;
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.option-price-input {
    width: 100px;
    text-align: right;
}

.option-stock-input {
    width: 80px;
    text-align: center;
}

.option-limit-input {
    width: 80px;
    text-align: center;
}

.stock-type-select {
    width: 80px;
    font-size: 0.8rem;
    padding: 0.2rem 0.3rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: #fff;
}

.stock-type-select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.stock-control-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-direction: column;
}

.stock-control-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-add-category {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-add-category:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.btn-add-item {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.25);
}

.btn-add-item:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.35);
}

.btn-remove {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.375rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.25);
    min-width: 36px;
}

.btn-remove:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.35);
}

.btn-save-options {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-save-options:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);        }

.category-type-select-group {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.category-type-select {
    width: 80px;
    font-size: 0.8rem;
    padding: 0.2rem 0.3rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: #fff;
}

.category-type-select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 조합형 옵션 관리 스타일 추가 */
.combination-category-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
}

/* 버튼 배치 조정 */
.option-buttons {
    display: flex;
    justify-content: flex-start; /* 왼쪽 정렬로 변경 */
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.option-buttons-right {
    margin-left: auto; /* 오른쪽으로 밀어내기 */
}

/* 데이터 테이블 스타일 */
.data-table-container {
    margin-top: 1.5rem;
}

.data-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.data-table-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.data-table-search {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.data-table-search input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

.data-table-search .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.combination-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
}

.combination-table thead {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.combination-table th {
    font-weight: 600;
    color: #495057;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #dee2e6;
    text-align: center;
    white-space: nowrap;
}

.combination-table tbody tr {
    transition: all 0.2s ease;
}

.combination-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.combination-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
    text-align: center;
}

.combination-table tbody tr:last-child td {
    border-bottom: none;
}

.combination-table td input,
.combination-table td select {
    width: 100%;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    text-align: center;
}

.combination-table td input:focus,
.combination-table td select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.combination-table-wrapper {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.data-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dee2e6;
}

.data-table-info {
    color: #6c757d;
    font-size: 0.9rem;
}

.data-table-pagination {
    display: flex;
    gap: 0.25rem;
}

.page-button {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    color: #007bff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-button:hover {
    background-color: #f8f9fa;
    border-color: #c6c7c8;
}

.page-button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-button.disabled {
    color: #6c757d;
    cursor: not-allowed;
}

.combination-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* 재고 컬럼 가로 레이아웃 스타일 */
.stock-control-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.stock-control-inline select {
    width: auto;
    min-width: 80px;
    flex-shrink: 0;
}        .stock-control-inline input {
    width: 100%;
    min-width: 60px;
}

/* 항목명 입력 영역 반응형 스타일 */
@media (max-width: 1200px) {
    .option-item-input {
        width: 110px; /* 기본 크기 축소 */
    }
}

@media (max-width: 992px) {
    .item-name-inputs {
        flex-wrap: wrap; /* 필요시 줄바꿈 허용 */
    gap: 0.5rem;
}

.option-item-input {
    min-width: 90px; /* 최소 너비 설정 */
flex: 1 1 auto; /* 유연한 크기 조정 */
        width: 100px;
    }
}

@media (max-width: 768px) {
    .item-name-inputs {
        flex-direction: column; /* 세로 배치 */
    gap: 0.5rem;
}

.option-item-input {
    width: 100% !important; /* 모든 언어 필드를 전체 너비로 */
    min-width: unset;
    max-width: none;
}

.option-item-row {
    flex-direction: column; /* 세로 배치 */
align-items: stretch;
gap: 1rem;
padding: 1rem; /* 패딩 증가 */
}

/* 모바일에서 다른 입력 필드들도 조정 */
    .stock-control-group,
    .option-limit-input,
    .option-price-input {
        width: 100%;
        margin-bottom: 0.5rem;
    }        }

@media (max-width: 576px) {
    .option-item-row {
        padding: 0.75rem; /* 더 작은 화면에서 패딩 조정 */
    gap: 0.75rem;
}

.item-name-inputs {
    gap: 0.75rem; /* 입력 필드 간격 조정 */
    }
}

/* 심플한 데이터 테이블 스타일 - product-add.html과 동일하게 추가 */
.simple-data-table {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #495057;
}

.table-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.table-search {
    position: relative;
    width: 250px;
}

.table-search input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

.table-search .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.875rem;
}

.table-wrapper {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

.simple-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.simple-table th {
    background: #f1f3f5;
    color: #495057;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 1;
}

.simple-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}

.simple-table tr:hover {
    background-color: #f8f9fa;
}

.table-input {
    width: 80px;
    padding: 0.25rem 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    text-align: center;
}

.table-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
}

.table-select {
    width: 90px;
    padding: 0.25rem 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    background: white;
}

.table-select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
}

.table-input-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: center;
}

.table-input-group .input-group-text {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.table-footer {
    background: #f8f9fa;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #dee2e6;
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-info {
    font-weight: 500;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .table-search {
        width: 100%;
    }
    
    .simple-table {
        min-width: 600px;
    }
    
    .table-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .table-header {
        padding: 1rem;
    }
    
    .simple-table th,
    .simple-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .table-input,
    .table-select {
        width: 70px;
        font-size: 0.75rem;
    }
}

/* Loading animations */
.spinner-border {
  color: #667eea;
}

/* 하단 고정 버튼 영역 */
.fixed-bottom-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #dee2e6;
  padding: 15px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

/* 하단 고정 버튼 영역이 있는 body */
.has-fixed-bottom-buttons {
  padding-bottom: 80px;
}

.has-fixed-bottom-buttons .content-wrapper {
  margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .login-container {
    margin: 40px 20px;
  }
  
  .store-card .card-header {
    padding: 0.75rem;
  }
  
  .store-card .card-header .card-title {
    font-size: 1rem;
  }
  
  .store-card .btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
  
  .fixed-bottom-buttons {
    padding: 12px 0;
  }
  
  .has-fixed-bottom-buttons {
    padding-bottom: 70px;
  }
}