/* ===== 기본 설정 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.4;
  font-size: 12px;
}

/* ===== 레이아웃 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid #ddd;
  position: relative;
  transition: all 0.3s ease;
}

.header {
  background: linear-gradient(to bottom, #4a90e2, #357abd);
  color: white;
  padding: 16px 0;
  border-bottom: 2px solid #2e5c87;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  left: 0;
  right: 0;
  box-sizing: border-box;
}

.header h1 {
  padding: 0 14px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  width: 100%;
  line-height: 20px;
}

.main-content {
  display: flex;
  min-height: 600px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.left-panel {
  flex: 1;
  padding: 20px;
  transition: all 0.3s ease;
}

/* ===== 햄버거 메뉴 ===== */
.hamburger-menu {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 998;
  transition: opacity 0.3s ease;
}

.hamburger-menu.hidden {
  opacity: 0;
  pointer-events: none;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  width: 18px;
  height: 14px;
  justify-content: space-between;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: white;
}

/* ===== 섹션 스타일 ===== */
.section {
  margin-bottom: 25px;
  border: 1px solid #ddd;
  background-color: #ffffff;
}

.section-header {
  background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
  border-bottom: 1px solid #ddd;
  padding: 10px 15px;
  font-weight: bold;
  color: #333;
  font-size: 13px;
}

.section-content {
  padding: 15px;
  word-wrap: break-word;
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ===== 아이템 스타일 ===== */
.item {
  margin: 8px 0;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  font-size: 12px;
  border-radius: 2px;
}

.item.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background-color: #fff;
  border-left: 3px solid #4a90e2;
  outline: none;
  padding-right: 35px;
}

.item.clickable:hover {
  background-color: #f0f8ff;
  border-color: #357abd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.item.clickable:focus {
  background-color: #f0f8ff;
  border-left: 2px solid #4a90e2;
}

.item.clickable.active {
  background-color: #e6f3ff;
  border-left-color: #2e5c87;
}

.item.clickable::after {
  content: "▶";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #4a90e2;
  opacity: 0.7;
}

.item.clickable:hover::after {
  opacity: 1;
}

.item.keyboard-selected {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transform: translateX(2px);
}

.item-text {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  word-wrap: break-word;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.danger-text {
  color: #d63031;
  font-weight: bold;
}

/* ===== 오른쪽 패널 ===== */
.right-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background-color: #f8f8f8;
  border-left: 1px solid #ddd;
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.right-panel.show {
  right: 0;
}

.panel-header {
  background: linear-gradient(to bottom, #4a90e2, #357abd);
  color: white;
  padding: 15px 20px;
  border-bottom: 2px solid #2e5c87;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.panel-content {
  padding: 20px;
  word-wrap: break-word;
  word-break: keep-all;
  overflow-wrap: break-word;
  flex: 1;
  overflow-y: auto;
}

.example-title {
  font-size: 16px;
  font-weight: bold;
  color: #2e5c87;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #4a90e2;
}

.example-image {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  margin: 15px 0;
  border-radius: 3px;
}

.example-description {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  background-color: #f9f9f9;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  word-wrap: break-word;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ===== 패널 네비게이션 버튼 ===== */
.panel-navigation {
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.nav-btn {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #4a90e2;
  background: linear-gradient(to bottom, #4a90e2, #357abd);
  color: white;
  cursor: pointer;
  font-size: 12px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: linear-gradient(to bottom, #357abd, #2e5c87);
}

.nav-btn:disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.prev-btn {
  margin-right: 5px;
}

.next-btn {
  margin-left: 5px;
}

/* ===== 왼쪽 사이드 메뉴 ===== */
.side-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background-color: #f8f8f8;
  border-right: 1px solid #ddd;
  transition: left 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.side-menu.show {
  left: 0;
}

.side-menu-header {
  background: linear-gradient(to bottom, #4a90e2, #357abd);
  color: white;
  padding: 15px;
  border-bottom: 1px solid #2e5c87;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.side-menu-title {
  font-size: 14px;
  font-weight: bold;
}

.side-close-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ===== 메뉴 섹션 ===== */
.menu-section {
  margin: 15px;
  border: 1px solid #ddd;
  background-color: #ffffff;
}

.menu-section-header {
  background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
  border-bottom: 1px solid #ddd;
  padding: 10px 15px;
  font-weight: bold;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-section-header:hover {
  background: linear-gradient(to bottom, #e8e8e8, #ddd);
}

.menu-section-header.notice-header {
  padding: 4px 15px;
}

.menu-section-header.contact-header,
.menu-section-header.board-header {
  padding: 8px 15px;
}

.menu-section-header .toggle-arrow {
  font-size: 12px;
}

.menu-section-content {
  padding: 15px;
  display: block;
  transition: all 0.3s ease;
  overflow: hidden;
}

.menu-section-content.collapsed {
  display: none;
}

/* ===== 게시판 링크 ===== */
.board-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.board-link {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  font-size: 11px;
  transition: all 0.2s ease;
  border-radius: 3px;
}

.board-link:hover {
  background-color: #e6f3ff;
  color: #2e5c87;
}

/* ===== 버튼 스타일 ===== */
.admin-btn,
.submit-btn,
.upload-btn,
.google-lens-btn {
  background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
  border: 1px solid #ccc;
  color: #333;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 11px;
  border-radius: 0;
  margin: 3px;
}

.admin-btn:hover,
.submit-btn:hover,
.upload-btn:hover,
.google-lens-btn:hover {
  background: linear-gradient(to bottom, #e8e8e8, #ddd);
}

.submit-btn {
  background: linear-gradient(to bottom, #4a90e2, #357abd);
  color: white;
  border-color: #2e5c87;
}

.submit-btn:hover {
  background: linear-gradient(to bottom, #357abd, #2e5c87);
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ===== 폼 요소 ===== */
.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: #333;
  margin-bottom: 4px;
  font-weight: bold;
}

.form-group input,
.form-group textarea,
.admin-input {
  width: 100%;
  margin-left: auto; /* 중앙 정렬 */
  margin-right: auto; /* 중앙 정렬 */
  padding: 6px;
  border: 1px solid #ccc;
  font-size: 12px;
  font-family: inherit;
  border-radius: 0;
}

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

/* ===== 공지사항 ===== */
.notice-list {
  max-height: 250px;
  overflow-y: auto;
}

.notice-item {
  background-color: #fff;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  position: relative;
  border-left: 3px solid #4a90e2;
}

.notice-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #dc3545;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.notice-delete:hover {
  background: #c82333;
}

.notice-date {
  font-size: 10px;
  color: #666;
  margin-bottom: 5px;
}

.notice-content {
  font-size: 11px;
  color: #333;
  line-height: 1.4;
}

/* ===== 링크 섹션 ===== */
.link-section {
  background-color: #f0f8ff;
  padding: 12px;
  border: 1px solid #4a90e2;
  margin: 10px 0;
  border-radius: 3px;
}

.link-section h3 {
  color: #2e5c87;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: bold;
}

.link-section a {
  color: #4a90e2;
  text-decoration: none;
  display: block;
  margin: 4px 0;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 2px;
}

.link-section a:hover {
  background-color: #e6f3ff;
  text-decoration: underline;
}

/* ===== 이미지 업로드 ===== */
.image-upload-section {
  background-color: #f8f8f8;
  padding: 15px;
  border: 1px solid #ddd;
  margin: 10px 0;
  text-align: center;
  border-radius: 3px;
}

#imagePreview {
  max-width: 200px;
  max-height: 200px;
  margin: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

/* ===== 이미지 슬라이더 ===== */
.image-slider {
  margin: 20px 0;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 0;
  background-color: #f5f5f5;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slider-image.active {
  opacity: 1;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
  padding: 10px;
}

.slider-btn {
  background: #4a90e2;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.slider-btn:hover {
  background: #357abd;
}

.slider-indicator {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.slider-instruction {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
  font-style: italic;
}

/* ===== 가짜 쇼핑몰 섹션 ===== */
.scam-markets-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.scam-markets-header {
  font-weight: bold;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.scam-markets-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  justify-content: center;
}

.market-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #dc3545;
  color: white;
  padding: 1px 4px;
  border-radius: 8px;
  font-size: 10px;
  gap: 1px;
  max-height: 20px;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.delete-market-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  padding: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-market-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.add-market-section {
  display: flex;
  gap: 8px;
  align-items: center;
  align-items: stretch;
}

.add-market-section input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 0;
  font-size: 12px;
}

.add-market-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 0;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.add-market-btn:hover {
  background: #218838;
}

.no-markets {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
}

/* ===== 문의하기 섹션 ===== */
#contactContent {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#contactContent:not(.collapsed) {
  max-height: 500px;
}

#contactContent.collapsed {
  display: none;
}

/* ===== 오버레이 & 모달 ===== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.admin-modal.show {
  display: flex;
}

.admin-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  width: 300px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.admin-modal-header {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}

.admin-modal-body {
  margin-bottom: 15px;
}

.admin-modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
}

.modal-btn.primary {
  background: linear-gradient(to bottom, #4a90e2, #357abd);
  color: white;
  border-color: #2e5c87;
}

.modal-btn.primary:hover {
  background: linear-gradient(to bottom, #357abd, #2e5c87);
}

.modal-btn.secondary {
  background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
  color: #333;
}

.modal-btn.secondary:hover {
  background: linear-gradient(to bottom, #e8e8e8, #ddd);
}

/* ===== 메시지 ===== */
.loading {
  display: none;
  font-size: 10px;
  color: #666;
  margin-top: 5px;
}

.success-message {
  color: #28a745;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 8px;
  border-radius: 3px;
  margin-top: 10px;
  font-size: 11px;
}

.error-message {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 8px;
  border-radius: 3px;
  margin-top: 10px;
  font-size: 11px;
}

/* ===== 푸터 ===== */
.footer {
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  padding: 20px;
  text-align: center;
  color: #666;
  font-size: 11px;
  margin-top: 40px;
}

.footer p {
  margin: 5px 0;
}

.footer a {
  color: #4a90e2;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.initial-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.initial-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.initial-popup-content {
    background: white;
    border-radius: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.initial-popup-header {
    padding: 24px 24px 12px 24px;
    border-bottom: 1px solid #eee;
}

.initial-popup-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.initial-popup-body {
    padding: 20px 24px;
    text-align: center;
}

.initial-popup-body p {
    margin: 0;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.initial-popup-footer {
    padding: 12px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.popup-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.popup-btn.primary {
    background-color: #e33030;
    color: white;
}

.popup-btn.primary:hover {
    background-color: #ff5252;
    transform: translateY(-1px);
}

.popup-btn.secondary {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.popup-btn.secondary:hover {
    background-color: #e9ecef;
}

/* ===== 모바일 반응형 ===== */
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    border: none;
  }
  
  .header {
    padding: 16px 15px;
  }
  
  .header h1 {
    font-size: 16px;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 16px;
  }
  
  .main-content {
    max-width: 100%;
    padding: 0 8px;
  }
  
  .left-panel {
    padding: 10px;
  }
  
  .section {
    margin-bottom: 12px;
  }
  
  .section-header {
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .section-content {
    padding: 8px;
    line-height: 1.5;
  }
  
  .item {
    padding: 12px;
    margin: 6px 0;
    min-height: 40px;
  }
  
  .item-text {
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  /* 햄버거 메뉴 */
  .hamburger-menu {
    left: 10px;
    padding: 10px;
  }
  
  /* 사이드 메뉴 */
  .side-menu {
    width: 85vw;
    max-width: 320px;
    left: -85vw;
  }
  
  .side-menu-header {
    padding: 4px 12px;
    min-height: 32px;
  }
  
  .side-menu-title {
    font-size: 12px;
  }
  
  .side-close-btn {
    width: 24px;
    height: 24px;
    font-size: 14px;
    flex-shrink: 0;
  }
  
  .menu-section {
    margin: 10px;
  }
  
  .menu-section-content {
    padding: 10px;
  }
  
  /* 오른쪽 패널 */
  .right-panel {
    width: 85vw;
    max-width: 320px;
    right: -85vw;
  }
  
  .panel-content {
    padding: 15px;
  }
  
  .panel-navigation {
    padding: 10px 15px;
  }
  
  .nav-btn {
    padding: 12px 10px;
    font-size: 11px;
    min-height: 40px;
  }
  
  .example-title {
    font-size: 16px;
  }
  
  .example-description {
    font-size: 13px;
    padding: 10px;
  }
  
  /* 버튼 */
  button, .item.clickable {
    min-height: 40px;
  }
  
  /* iOS 확대 방지 */
  input, textarea {
    font-size: 16px !important;
  }

  .form-group {
    margin-top: 8px;
    max-width: 95%;
    margin-left: auto; /* 중앙 정렬 */
    margin-right: auto; /* 중앙 정렬 */
    margin-bottom: 10px;
  }
  
  .form-group input {
    padding: 8px 8px;
    font-size: 12px !important;
    height: 25px;               /* 고정 높이 추가 */
    box-sizing: border-box; 
  }
  
  .form-group textarea {
    font-size: 12px !important;
    max-height: 30px;
  }
  
  .form-group textarea::placeholder {
    font-size: 12px;
  }
  
  .form-group label {
    font-size: 11px;
    margin-bottom: 4px;
  }
  
  .submit-btn {
    padding: 0px 10px;
    margin-left: 8px;
    font-size: 10px;
    border-radius: 0;
    width: auto;            /* 너비 자동 조정 */
    min-height: 26px;       /* 최소 높이 줄임 */
  }
  
  /* 모달 */
  .admin-modal-content {
    width: 90vw;
    max-width: 300px;
    margin: 0 15px;
  }

  /* 가짜 쇼핑몰 */
  .scam-markets-list {
    max-height: 100px;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  
  .market-item {
    font-size: 10px;
    padding: 0px 3px;
    min-height: 16px;
  }

  .add-market-section input::placeholder {
    font-size: 12px !important; /* placeholder 글씨 크기 줄임 */
  }
  
  .add-market-section input {
    height: 30px !important; /* 모바일에서 조금 더 크게 */
  }

  .add-market-btn {
    padding: 0px 8px; /* 버튼 크기 늘림 */ 
    font-size: 12px;   /* 버튼 글씨 크기 늘림 */
    min-height: unset !important;
  }

  .initial-popup-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .initial-popup-header h2 {
        font-size: 18px;
    }
    
    .initial-popup-body p {
        font-size: 14px;
    }
    
    .initial-popup-footer {
        flex-direction: column;
    }
    
    .popup-btn {
        width: 100%;
    }
}

/* ===== 더 작은 화면 ===== */
@media (max-width: 480px) {
  .header h1 {
    font-size: 16px;
  }
  
  .main-content {
    padding: 0 5px;
  }
  
  .left-panel {
    padding: 10px;
  }
  
  .item-text {
    font-size: 13px;
  }
  
  .section-header {
    font-size: 11px;
    padding: 8px 10px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 6px 6px;
    font-size: 12px !important;
  }
  
  .form-group textarea {
    min-height: 80px;
    font-size: 12px !important;
  }
  
  .form-group label {
    font-size: 11px;
    margin-bottom: 3px;
  }
}
