/* 백오피스 페이지 스타일 */

/* 로그인 페이지 */
.backoffice-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  max-width: 450px;
  width: 100%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.backoffice-login .login-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
  font-size: 2rem;
  font-weight: 600;
}

.backoffice-login .login-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.backoffice-login .password-section,
.backoffice-login .info-section {
  text-align: center;
  padding: 1.5rem;
}

.backoffice-login .password-section {
  text-align: left;
}

.backoffice-login .form-group {
  margin-bottom: 1.5rem;
}

.backoffice-login .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.backoffice-login .form-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
  background: #f8f9fa;
}

.backoffice-login .form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.backoffice-login .error-message {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 0.75rem;
  border-radius: 6px;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.backoffice-login .info-text {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background: #f8f9fa;
}

.backoffice-login .passkey-section h3,
.backoffice-login .register-section h3 {
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
}

.backoffice-login .passkey-section p,
.backoffice-login .register-section p {
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 버튼 스타일 */
.backoffice .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.backoffice-login .btn-primary {
  background: #667eea;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  border : none;
  transition: all 0.2s ease;
}

.backoffice-login .btn-primary:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.backoffice-login .btn-secondary {
  background: #494a4e;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  border : none;
  transition: all 0.2s ease;
}

.backoffice-login .btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.backoffice-login .btn-outline {
  background: transparent;
  color: #667eea;
  border: 1px solid #667eea;
}

.backoffice-login .btn-outline:hover {
  background: #667eea;
  color: white;
}

.backoffice .btn-primary {
  background: #667eea;
  color: white;
}

.backoffice .btn-primary:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
}

.backoffice .btn-secondary {
  background: #6c757d;
  color: white;
}

.backoffice .btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

.backoffice .btn-outline {
  background: transparent;
  color: #667eea;
  border: 1px solid #667eea;
}

.backoffice .btn-outline:hover {
  background: #667eea;
  color: white;
}

.backoffice .btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.backoffice .btn-danger {
  background: #dc3545;
  color: white;
}

.backoffice .btn-danger:hover {
  background: #c82333;
}

/* 관리자 페이지 */
.backoffice {
  min-height: 100vh;
  background: #f8f9fa;
  padding: 2rem;
}

.backoffice .backoffice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e1e5e9;
}

.backoffice .backoffice-header h1 {
  color: #333;
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.backoffice .user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.backoffice .user-info span {
  color: #666;
  font-size: 0.9rem;
}

.backoffice .backoffice-content {
  max-width: 100%;
  margin: 0 auto;
}

/* 탭 네비게이션 */
.backoffice .tab-navigation {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e1e5e9;
}

.backoffice .tab-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.backoffice .tab-btn:hover {
  color: #333;
}

.backoffice .tab-btn.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.backoffice .tab-content {
  display: none;
}

.backoffice .tab-content.active {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* 컨택트 탭은 전체 너비 사용 */
.backoffice #contact-tab.tab-content.active {
  display: block;
  grid-template-columns: 1fr;
}

.backoffice .upload-section,
.backoffice .data-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.backoffice .upload-section h2,
.backoffice .data-section h2 {
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.backoffice .upload-card,
.backoffice .data-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
}

.backoffice .upload-card h3,
.backoffice .data-card h3 {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* 폼 스타일 */
.backoffice .upload-form {
  display: flex;
  flex-direction: column;
}

/* 2칼럼 레이아웃 */
.backoffice .upload-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.backoffice .upload-column {
  background: #f8f9fa;
  border-radius: 8px;
}

.backoffice .upload-column h3 {
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e1e5e9;
}

/* 동적 항목 섹션 */
.backoffice .dynamic-items-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top:1rem;
}

.backoffice .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.backoffice .section-header h4 {
  color: #333;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.backoffice .dynamic-items-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.backoffice .dynamic-item {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.backoffice .dynamic-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.backoffice .dynamic-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.backoffice .item-number {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.backoffice .btn-icon {
  padding: 0.5rem;
  min-width: auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.backoffice .dynamic-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* 폼 액션 버튼 */
.backoffice .form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  padding-top: 1rem;
  border-top: 1px solid #e1e5e9;
}

/* Form Card */
.backoffice .form-card {
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.backoffice .form-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e1e5e9;
}

.backoffice .form-card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.backoffice #portfolio-thumbnail-card{
  margin-top: 1rem;
  background: white;
}

.backoffice .form-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}

.backoffice .form-group label {
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
  min-width: 120px;
  flex-shrink: 0;
}

.backoffice .form-group input,
.backoffice .form-group textarea,
.backoffice .form-group select {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
  background: rgba(241, 243, 245, 0.59);
  flex: 1;
}

.backoffice .form-group input:focus,
.backoffice .form-group textarea:focus,
.backoffice .form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.backoffice .form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* 이미지 프리뷰 */
.backoffice .image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.backoffice .preview-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* 포트폴리오 목록 */
.backoffice .portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: fit-content !important;
}

/* Dynamic Images */
.backoffice .dynamic-images-section {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background: #f8f9fa;
}

.backoffice .dynamic-images-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.backoffice .dynamic-image-item {
  padding: 1rem;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background: #fff;
}

.backoffice .dynamic-image-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.backoffice .image-controls {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  position: relative;
}

.backoffice .image-style-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.5rem;
}

.backoffice .image-style-controls label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
}

.backoffice .image-width-select,
.backoffice .image-position-select {
  padding: 0.25rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.8rem;
  background-color: white;
  min-width: 60px;
}

.backoffice .move-up-btn,
.backoffice .move-down-btn {
  padding: 0.25rem;
  background-color: #6c757d;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
  min-width: 24px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.backoffice .move-up-btn:hover,
.backoffice .move-down-btn:hover {
  background-color: #5a6268;
}

.backoffice .move-up-btn:disabled,
.backoffice .move-down-btn:disabled {
  background-color: #adb5bd;
  cursor: not-allowed;
}

/* 우측 칼럼 스타일 */
.backoffice .right-column-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.backoffice .right-column-controls .btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 0.75rem;
  font-size: 0.8rem;
  flex:1;
  text-align: center;
}

.backoffice .right-column-items-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.backoffice .right-column-item {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.backoffice .right-column-item .item-controls{
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
}

.backoffice .right-column-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.backoffice .right-column-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.backoffice .slider-images-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.backoffice .slider-preview-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.backoffice .text-type-select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  background-color: white;
  min-width: 100px;
}

.backoffice .image-number {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.backoffice .dynamic-image-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.backoffice .portfolio-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
  transition: box-shadow 0.2s ease;
}

.backoffice .portfolio-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.backoffice .portfolio-item.active {border: 1px solid #e1e5e9;
}

.backoffice .portfolio-info h4 {
  margin: 0 0 0.25rem 0;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
}

.backoffice .portfolio-info p {
  margin: 0 0 0.5rem 0;
  color: #666;
  font-size: 0.85rem;
  line-height: 1.4;
}

.backoffice .category {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #667eea;
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.backoffice .portfolio-actions {
  display: flex;
  gap: 0.5rem;
}

/* 뉴스 목록 */
.backoffice .news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.backoffice .news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
  transition: box-shadow 0.2s ease;
}

.backoffice .news-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.backoffice .news-info h4 {
  margin: 0 0 0.25rem 0;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
}

.backoffice .news-info p {
  margin: 0 0 0.5rem 0;
  color: #666;
  font-size: 0.85rem;
  line-height: 1.4;
}

.backoffice .news-info .news-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 0.5rem 0;
  color: #666;
  font-size: 0.85rem;
  line-height: 1.4;
}

.backoffice .news-info .news-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.backoffice .news-info .news-meta .category {
  background: #667eea;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.backoffice .news-info .news-meta .source {
  color: #667eea;
  font-size: 0.8rem;
  font-weight: 500;
}

.backoffice .news-info .news-meta .link-indicator {
  color: var(--color-primary);
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.backoffice .news-info .news-meta .date {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #28a745;
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.backoffice .news-actions {
  display: flex;
  gap: 0.5rem;
}

/* 상태 메시지 */
.backoffice .loading,
.backoffice .empty-state,
.backoffice .error {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 0.9rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .backoffice .upload-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .backoffice {
    padding: 1rem;
  }
  
  .backoffice .backoffice-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .backoffice .tab-navigation {
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .backoffice .tab-btn {
    white-space: nowrap;
  }
  
  .backoffice .form-actions {
    flex-direction: column;
  }
  
  .backoffice .dynamic-item-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

.backoffice .error {
  color: #dc3545;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .backoffice .backoffice-content {
    grid-template-columns: 1fr;
  }
  
  .backoffice .backoffice-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .backoffice .portfolio-item,
  .backoffice .news-item {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .backoffice .portfolio-actions,
  .backoffice .news-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .backoffice .login-container {
    padding: 2rem;
    margin: 1rem;
  }
}

@media (max-width: 480px) {
  .backoffice {
    padding: 1rem;
  }
  
  .backoffice .upload-section,
  .backoffice .data-section {
    padding: 1rem;
  }
  
  .backoffice .login-container {
    padding: 1.5rem;
  }
}

/* 컨택트 관리 스타일 */
.backoffice .contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.backoffice .contact-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
  transition: box-shadow 0.2s ease;
}

.backoffice .contact-item.unread {
  border: 1px solid #667eea;
  background: #f8f9ff;
}

.backoffice .contact-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.backoffice .contact-info {
  flex: 1;
  margin-right: 1rem;
}

.backoffice .contact-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.backoffice .contact-header h4 {
  margin: 0;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
}

.backoffice .contact-date {
  color: #666;
  font-size: 0.8rem;
}

.backoffice .unread-badge {
  background: #667eea;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.backoffice .contact-email {
  margin: 0.25rem 0;
  color: #667eea;
  font-size: 0.9rem;
  font-weight: 500;
}

.backoffice .contact-category {
  margin: 0.25rem 0;
  color: #28a745;
  font-size: 0.8rem;
  font-weight: 500;
}

.backoffice .contact-location,
.backoffice .contact-schedule {
  margin: 0.25rem 0;
  color: #666;
  font-size: 0.8rem;
}

.backoffice .contact-message {
  margin: 0.5rem 0 0 0;
  color: #333;
  font-size: 0.85rem;
  line-height: 1.4;
}

.backoffice .contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 100px;
}

/* 통계 스타일 */
.backoffice .contact-stats {
  display: flex;
  gap: 2rem;
}

.backoffice .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.backoffice .stat-item {
  background: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e1e5e9;
  align-self: stretch;
}

.backoffice .stat-item.unread {
  border-color: #667eea;
  background: #f8f9ff;
}

.backoffice .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.25rem;
}

.backoffice .stat-label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

.backoffice .category-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.backoffice .category-item {
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid #e1e5e9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}

.backoffice .category-name {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

.backoffice .category-count {
  background: #667eea;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* 모달 스타일 */
.backoffice .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.backoffice .modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.backoffice .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e1e5e9;
}

.backoffice .modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
}

.backoffice .modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.backoffice .modal-close:hover {
  background: #f0f0f0;
}

.backoffice .modal-body {
  padding: 1.5rem;
}

.backoffice .contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.backoffice .detail-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.backoffice .detail-row label {
  min-width: 100px;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.backoffice .detail-row span {
  color: #666;
  font-size: 0.9rem;
  flex: 1;
}

.backoffice .message-content {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e1e5e9;
  line-height: 1.6;
  color: #333;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.backoffice .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid #e1e5e9;
}

/* 반응형 모달 */
@media (max-width: 768px) {
  .backoffice .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .backoffice .category-stats {
    flex-direction: column;
  }
  
  .backoffice .detail-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .backoffice .detail-row label {
    min-width: auto;
  }
  
  .backoffice .contact-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .backoffice .contact-actions {
    flex-direction: row;
    justify-content: flex-end;
    min-width: auto;
  }
}

/* 배경 이미지 목록 스타일 */
.background-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.background-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: white;
}

.background-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.background-preview {
  flex-shrink: 0;
}

.background-details h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 0.9rem;
}

.background-date {
  margin: 0;
  color: #999;
  font-size: 0.8rem;
}

.background-actions {
  display: flex;
  gap: 0.5rem;
}

.form-help {
  margin: 0.5rem 0 0 0;
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
}


/* 포트폴리오/브랜딩 썸네일 크기 조정 */
.portfolio-thumbnail {
  width: 80px;
  height: 100%;
  flex-shrink: 0;
  margin-right: 12px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.portfolio-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.portfolio-info {
  
  flex: 1;
  
}
.portfolio-info .date {
  font-size: 0.8rem;
}

.site-footer {
  display: none !important;
}

/* 배경이미지 관련 스타일 */
.background-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #fff;
  transition: all 0.2s ease;
}

.background-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.background-item.inactive {
  opacity: 0.6;
  background: #f8f8f8;
}

.background-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.background-preview {
  position: relative;
}

.status-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 2px 6px;
  font-size: 0.7rem;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: #28a745;
  color: white;
}

.status-badge.inactive {
  background: #6c757d;
  color: white;
}

.background-details h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: #333;
}

.background-date,
.background-size {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.background-actions {
  display: flex;
  gap: 0.5rem;
}

/* 메뉴관리 관련 스타일 */
.menu-settings-container {
  margin-top: 1.5rem;
}

.menu-settings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.menu-setting-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-setting-item.inactive {
  opacity: 0.7;
  background: #f8f9fa;
}

.menu-setting-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.menu-setting-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #f0f2f5;
  border-radius: 8px;
  color: #6c757d;
}

.menu-setting-item.active .menu-setting-icon {
  background: #e3f2fd;
  color: #1976d2;
}

.menu-setting-item.inactive .menu-setting-icon {
  background: #f5f5f5;
  color: #9e9e9e;
}

.menu-setting-details h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.menu-setting-name,
.menu-setting-status {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.status-text.active {
  color: #28a745;
  font-weight: 600;
}

.status-text.inactive {
  color: #6c757d;
  font-weight: 600;
}

.menu-setting-actions {
  display: flex;
  gap: 0.5rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .menu-setting-item {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .menu-setting-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* 준비중 모달 스타일 */
.preparation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.preparation-modal.show {
  opacity: 1;
}

.preparation-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.preparation-modal-content {
  position: relative;
  background: var(--color-bg);
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.preparation-modal.show .preparation-modal-content {
  transform: translateY(0);
}

.preparation-modal-header {
  position: relative;
  padding: 1rem;
  text-align: right;
}

.preparation-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-fg);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.preparation-modal-close:hover {
  background: var(--color-bg);
  color: var(--color-fg);
}

.preparation-modal-body {
  padding: 0 2rem 2rem 2rem;
  text-align: center;
}


.preparation-modal-body h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-fg);
}

.preparation-modal-body p {
  margin: 0 0 1.5rem 0;
  color: var(--color-fg);
  line-height: 1.6;
}

.preparation-modal-footer {
  padding: 1rem 2rem 2rem 2rem;
  text-align: center;
}

.preparation-modal-footer .btn {
  width: 100%;
  padding: 1rem;
  background: var(--color-fg);
  color: var(--color-bg);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* 반응형 디자인 */
@media (max-width: 480px) {
  .preparation-modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
  }
  
  .preparation-modal-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
  
  .preparation-modal-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }
}