/* ImResiz 전체 스타일 - Windows XP 테마 */

/* =============================================
   CSS 변수 (Windows XP 색상 팔레트)
   ============================================= */
:root {
  /* XP 타이틀바 색상 */
  --xp-titlebar-start: #0a5fb4;
  --xp-titlebar-end:   #1184d3;

  /* XP 배경 (하늘 + 언덕) */
  --xp-sky-top:    #1a7ad4;
  --xp-sky-mid:    #3a9bd5;
  --xp-sky-bottom: #5fb8e8;
  --xp-hill:       #3a8c3a;

  /* XP 창 */
  --xp-window-bg:     #ece9d8;
  --xp-window-border: #0a5fb4;
  --xp-window-shadow: rgba(0, 0, 0, 0.45);

  /* Start 버튼 */
  --xp-start-bg:    #3d9b3d;
  --xp-start-hover: #4eb84e;

  /* 작업표시줄 */
  --xp-taskbar-bg:    #245edb;
  --xp-taskbar-top:   #3b74e8;

  /* 버튼 */
  --btn-primary:   #245edb;
  --btn-secondary: #8b8b8b;
  --btn-download:  #2e7d32;

  /* 텍스트 */
  --text-dark:  #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #666666;

  /* 공통 */
  --border-radius: 4px;
  --transition:    0.18s ease;
}


/* =============================================
   리셋 & 기본
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Tahoma', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  color: var(--text-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* =============================================
   XP 데스크톱 배경
   ============================================= */
.xp-desktop {
  min-height: 100vh;
  background:
    /* 언덕 */
    radial-gradient(ellipse 120% 60% at 50% 110%, var(--xp-hill) 0%, transparent 60%),
    /* 하늘 그라데이션 */
    linear-gradient(
      to bottom,
      var(--xp-sky-top)    0%,
      var(--xp-sky-mid)    55%,
      var(--xp-sky-bottom) 100%
    );
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 80px; /* 하단 작업표시줄 높이만큼 여백 */
  position: relative;
}


/* =============================================
   XP 창 (메인 윈도우)
   ============================================= */
.xp-window {
  width: 100%;
  max-width: 860px;
  background: var(--xp-window-bg);
  border: 2px solid var(--xp-window-border);
  border-radius: 8px 8px 4px 4px;
  box-shadow:
    3px 3px 0 rgba(0,0,0,0.15),
    0 8px 32px var(--xp-window-shadow);
  overflow: hidden;
  margin-top: 10px;
}


/* =============================================
   타이틀바
   ============================================= */
.xp-titlebar {
  background: linear-gradient(
    to bottom,
    var(--xp-titlebar-start) 0%,
    var(--xp-titlebar-end)   100%
  );
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.xp-titlebar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.xp-titlebar-icon {
  font-size: 16px;
  line-height: 1;
}

.xp-titlebar-title {
  color: var(--text-light);
  font-weight: bold;
  font-size: 13px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* XP 창 버튼 그룹 */
.xp-titlebar-buttons {
  display: flex;
  gap: 3px;
}

.xp-btn {
  width: 21px;
  height: 21px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.xp-btn-minimize,
.xp-btn-maximize {
  background: linear-gradient(to bottom, #4d9fe0, #2174c5);
  color: var(--text-light);
}

.xp-btn-close {
  background: linear-gradient(to bottom, #e8534a, #c93232);
  color: var(--text-light);
}

.xp-btn:hover {
  filter: brightness(1.2);
}

.xp-btn:active {
  filter: brightness(0.9);
  transform: translateY(1px);
}


/* =============================================
   창 내부 콘텐츠
   ============================================= */
.xp-window-content {
  padding: 20px 24px 28px;
  background: #ffffff;
  border-top: 1px solid #a0a0a0;
}


/* =============================================
   언어 전환 드롭다운
   ============================================= */
.lang-switcher {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

/* 현재 언어 토글 버튼 */
.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #b0aaa0;
  border-radius: 3px;
  background: #ece9d8;
  color: #333;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.lang-current:hover {
  background: #dedad0;
  border-color: var(--xp-window-border);
}

.lang-arrow {
  font-size: 9px;
  transition: transform 0.15s ease;
  display: inline-block;
}

/* 드롭다운이 열릴 때 화살표 회전 */
.lang-current[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

/* 드롭다운 목록 */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 3px);
  right: 0;
  background: #ece9d8;
  border: 1px solid #a0a0a0;
  border-radius: 3px;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.22);
  z-index: 50;
  min-width: 110px;
  padding: 3px 0;
}

.lang-dropdown li {
  list-style: none;
}

/* 개별 언어 옵션 */
.lang-option {
  display: block;
  width: 100%;
  padding: 7px 14px;
  text-align: left;
  border: none;
  background: transparent;
  color: #333;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-option:hover {
  background: var(--xp-titlebar-start);
  color: #fff;
}

.lang-option-active {
  font-weight: bold;
  color: var(--xp-titlebar-start);
}

.lang-option-active:hover {
  color: #fff;
}


/* =============================================
   툴 헤더 (제목 + 부제)
   ============================================= */
.tool-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d4d0c8;
}

.tool-header h1 {
  font-size: 20px;
  color: var(--xp-titlebar-start);
  margin-bottom: 4px;
}

.tool-subtitle {
  color: var(--text-muted);
  font-size: 13px;
}


/* =============================================
   섹션 공통
   ============================================= */
.upload-section,
.info-section,
.preview-section,
.resize-section,
.result-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8e4d8;
}

.section-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--xp-titlebar-start);
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid var(--xp-titlebar-end);
}


/* =============================================
   업로드 영역
   ============================================= */
.upload-area {
  border: 2px dashed #a0b4d0;
  border-radius: var(--border-radius);
  background: #f0f4f8;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--btn-primary);
  background: #e8f0fb;
}

/* 파일 input은 숨기고 label로 클릭 처리 */
.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  pointer-events: none;
}

.upload-icon {
  font-size: 36px;
}

.upload-text {
  font-size: 14px;
  color: #444;
}

.upload-formats {
  font-size: 12px;
  color: var(--text-muted);
}


/* =============================================
   원본 이미지 정보 그리드
   ============================================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.info-item {
  background: #f5f3ee;
  border: 1px solid #d4d0c8;
  border-radius: var(--border-radius);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-dark);
  word-break: break-all;
}


/* =============================================
   이미지 미리보기
   ============================================= */
.preview-image {
  max-height: 280px;
  width: auto;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.12);
}


/* =============================================
   리사이즈 컨트롤
   ============================================= */
.dimension-inputs {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-group label {
  font-size: 12px;
  font-weight: bold;
  color: #444;
}

.input-group input[type="number"] {
  padding: 7px 10px;
  border: 1px solid #a0a0a0;
  border-radius: var(--border-radius);
  font-size: 14px;
  width: 100%;
  background: #fff;
  transition: var(--transition);
}

.input-group input[type="number"]:focus {
  outline: none;
  border-color: var(--btn-primary);
  box-shadow: 0 0 0 2px rgba(36, 94, 219, 0.2);
}

.ratio-option {
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
}


/* =============================================
   버튼
   ============================================= */
.action-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 20px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 13px;
  font-weight: bold;
  transition: var(--transition);
}

.btn-primary {
  background: var(--btn-primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background: #1a4ec0;
}

.btn-secondary {
  background: var(--btn-secondary);
  color: var(--text-light);
}

.btn-secondary:hover {
  background: #707070;
}

.btn-download {
  background: var(--btn-download);
  color: var(--text-light);
  width: 100%;
  padding: 10px;
  font-size: 14px;
  margin-top: 12px;
}

.btn-download:hover {
  background: #1b5e20;
}

.btn:active {
  transform: translateY(1px);
}


/* =============================================
   메시지 영역 (에러/경고)
   ============================================= */
.message-area {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: var(--border-radius);
  font-size: 13px;
}

.message-area.error {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #c0392b;
}

.message-area.success {
  background: #e8f5e9;
  border: 1px solid #c3e6cb;
  color: #1b5e20;
}


/* =============================================
   결과 정보
   ============================================= */
.result-info {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}


/* =============================================
   하단 콘텐츠 섹션 (AdSense 심사용)
   ============================================= */
.content-section {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e8e4d8;
}

.content-section h2 {
  font-size: 15px;
  color: var(--xp-titlebar-start);
  margin-bottom: 10px;
}

.content-section p {
  font-size: 13px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 8px;
}

.content-section ul {
  padding-left: 20px;
}

.content-section ul li {
  list-style: disc;
  font-size: 13px;
  color: #444;
  line-height: 1.8;
}

.ko-desc {
  color: var(--text-muted);
  font-style: italic;
}


/* =============================================
   하단 작업표시줄
   ============================================= */
.xp-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(
    to bottom,
    var(--xp-taskbar-top) 0%,
    var(--xp-taskbar-bg)  100%
  );
  border-top: 2px solid #5a82e8;
  display: flex;
  align-items: center;
  padding: 0 6px;
  z-index: 100;
}


/* =============================================
   Start 버튼
   ============================================= */
.xp-start-btn {
  height: 30px;
  padding: 0 12px 0 8px;
  background: linear-gradient(
    to bottom,
    #4aba4a 0%,
    #2e8b2e 50%,
    #1f6b1f 100%
  );
  border: 1px solid #1a5c1a;
  border-radius: 14px;
  color: var(--text-light);
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  transition: var(--transition);
}

.xp-start-btn:hover {
  background: linear-gradient(
    to bottom,
    #5fd45f 0%,
    #3da03d 50%,
    #297829 100%
  );
}

.xp-start-btn:active {
  transform: translateY(1px);
}

.start-logo {
  font-size: 16px;
}

.start-text {
  font-style: italic;
  font-size: 13px;
  font-weight: bold;
}


/* =============================================
   XP 시작 메뉴
   ============================================= */
.xp-start-menu {
  position: fixed;
  bottom: 44px;
  left: 6px;
  width: 220px;
  background: #d4d0c8;
  border: 2px solid var(--xp-window-border);
  border-radius: 8px 8px 0 0;
  box-shadow: 4px -4px 16px rgba(0,0,0,0.4);
  z-index: 200;
  overflow: hidden;
}

.menu-header {
  background: linear-gradient(
    to right,
    var(--xp-titlebar-start),
    var(--xp-titlebar-end)
  );
  padding: 10px 14px;
}

.menu-brand {
  color: var(--text-light);
  font-weight: bold;
  font-size: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.menu-list {
  padding: 4px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 14px;
  font-size: 13px;
  background: transparent;
  border: none;
  text-align: left;
  transition: var(--transition);
  color: var(--text-dark);
}

.menu-item:hover {
  background: var(--xp-titlebar-start);
  color: var(--text-light);
}

.menu-item-active {
  font-weight: bold;
}

.menu-item-soon {
  color: #888;
}

.menu-item-soon:hover {
  background: #b0aaa0;
  color: #444;
}

.menu-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.coming-soon-badge {
  margin-left: auto;
  font-size: 10px;
  background: #888;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
}

.menu-separator {
  height: 1px;
  background: #a0a0a0;
  margin: 4px 8px;
}


/* =============================================
   푸터
   ============================================= */
.site-footer {
  background: #1a1a2e;
  color: #aaa;
  text-align: center;
  padding: 16px;
  font-size: 12px;
  padding-bottom: 56px; /* 작업표시줄 높이 + 여백 */
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #bbb;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  color: #777;
}


/* =============================================
   features.html 전용 스타일
   ============================================= */
.feature-card {
  border: 1px solid #d4d0c8;
  border-radius: var(--border-radius);
  padding: 16px;
  background: #f9f7f2;
  margin-bottom: 12px;
}

.feature-card-active {
  border-color: var(--xp-titlebar-start);
  background: #f0f4fb;
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.feature-card-header h3 {
  font-size: 15px;
  color: var(--xp-titlebar-start);
  flex: 1;
}

.feature-icon {
  font-size: 20px;
}

.feature-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
}

.feature-badge-live {
  background: #2e7d32;
  color: #fff;
}

.feature-btn {
  display: inline-block;
  margin-top: 12px;
  text-decoration: none;
  font-size: 13px;
}

.planned-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.planned-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f5f3ee;
  border: 1px solid #d4d0c8;
  border-radius: var(--border-radius);
  font-size: 13px;
  color: #555;
}

.planned-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.planned-list .coming-soon-badge {
  margin-left: auto;
}


/* =============================================
   compress.html 전용 스타일
   ============================================= */
.compress-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8e4d8;
}

.compress-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

/* 출력 형식 선택 */
.format-select {
  padding: 7px 10px;
  border: 1px solid #a0a0a0;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  width: 100%;
  cursor: pointer;
  transition: var(--transition);
}

.format-select:focus {
  outline: none;
  border-color: var(--btn-primary);
  box-shadow: 0 0 0 2px rgba(36, 94, 219, 0.2);
}

/* 품질 슬라이더 */
.quality-slider {
  width: 100%;
  height: 6px;
  accent-color: var(--btn-primary);
  cursor: pointer;
  margin-top: 6px;
}

.quality-value {
  font-weight: bold;
  color: var(--btn-primary);
  margin-left: 8px;
  font-size: 13px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* PNG 안내 메모 */
.png-note {
  font-size: 12px;
  color: #7a6a00;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: var(--border-radius);
  padding: 8px 12px;
}

/* 포맷 배지 */
.format-badge {
  display: inline-block;
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  border: 1px solid #c5d5f5;
}

/* 포맷 변환 방향 화살표 행 */
.convert-format-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.convert-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* 압축 결과 통계 */
.compress-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.compress-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #f5f3ee;
  border: 1px solid #d4d0c8;
  border-radius: var(--border-radius);
  padding: 10px 16px;
  min-width: 110px;
}

.compress-stat-reduction {
  background: #f0f4fb;
  border-color: var(--xp-titlebar-start);
}

.compress-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compress-stat-value {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-dark);
}

.compress-stat-arrow {
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.stat-good { color: #2e7d32; }
.stat-bad  { color: #c0392b; }


/* =============================================
   rotate.html 전용 스타일
   ============================================= */
.rotate-quick-btns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.rotate-btn {
  background: #f0f4fb;
  color: var(--text-dark);
  border: 1px solid #bbc;
  padding: 9px 6px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.rotate-btn:hover {
  background: #dde7f8;
  border-color: var(--xp-titlebar-start);
}

.rotate-angle-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.rotate-angle-group {
  flex: 0 0 160px;
}

.rotate-angle-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #aaa;
  border-radius: var(--border-radius);
  font-size: 14px;
}

.rotate-angle-input:focus {
  outline: 2px solid var(--xp-titlebar-start);
  border-color: var(--xp-titlebar-start);
}

.rotate-status {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.rotate-status strong {
  color: var(--text-dark);
  font-size: 15px;
}

.rotate-preview-wrapper {
  width: 100%;
  overflow: auto;
  background: #111;
  border: 2px solid var(--xp-window-border);
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  line-height: 0;
  text-align: center;
}

.rotate-preview-canvas {
  display: inline-block;
  max-width: 100%;
}

@media (max-width: 600px) {
  .rotate-quick-btns {
    grid-template-columns: repeat(3, 1fr);
  }
  .rotate-angle-row {
    flex-direction: column;
    align-items: stretch;
  }
  .rotate-angle-group {
    flex: none;
  }
}


/* =============================================
   crop.html 전용 스타일
   ============================================= */
.crop-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.crop-canvas-wrapper {
  width: 100%;
  overflow: auto;
  border: 2px solid var(--xp-window-border);
  border-radius: var(--border-radius);
  background: #111;
  margin-bottom: 16px;
  line-height: 0;
}

.crop-canvas {
  cursor: crosshair;
  display: block;
  max-width: 100%;
  touch-action: none;
}

.crop-inputs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.crop-inputs .input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crop-inputs label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.crop-inputs input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #aaa;
  border-radius: var(--border-radius);
  font-size: 13px;
}

.crop-inputs input:focus {
  outline: 2px solid var(--xp-titlebar-start);
  border-color: var(--xp-titlebar-start);
}

@media (max-width: 600px) {
  .crop-inputs {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =============================================
   thumbnail/presets/batch 공통 확장 스타일
   ============================================= */
.preset-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.color-input {
  width: 100%;
  min-height: 39px;
  border: 1px solid #a0a0a0;
  border-radius: var(--border-radius);
  background: #fff;
  padding: 4px;
}

.frame-preview-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 14px;
  margin-bottom: 14px;
  border: 2px solid var(--xp-window-border);
  border-radius: var(--border-radius);
  background:
    linear-gradient(45deg, #eef3ff 25%, transparent 25%),
    linear-gradient(-45deg, #eef3ff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef3ff 75%),
    linear-gradient(-45deg, transparent 75%, #eef3ff 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.frame-preview-image {
  max-width: 100%;
  border: 1px solid #b8c6ea;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.batch-file-count {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.batch-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.batch-file-item {
  padding: 10px 12px;
  border: 1px solid #d4d0c8;
  border-radius: var(--border-radius);
  background: #f9f7f2;
  font-size: 13px;
}

.batch-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.batch-download-all {
  margin-left: auto;
}

.batch-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.batch-result-card {
  border: 1px solid #d4d0c8;
  border-radius: var(--border-radius);
  background: #f9f7f2;
  padding: 14px;
}

.batch-result-header,
.batch-result-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.batch-result-header {
  margin-bottom: 8px;
}

.batch-result-header strong {
  color: var(--xp-titlebar-start);
}

.batch-result-meta {
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.batch-download-btn {
  width: 100%;
}


/* =============================================
   반응형 — 모바일 (max-width: 600px)
   ============================================= */
@media (max-width: 600px) {
  .xp-desktop {
    padding: 8px 8px 80px;
  }

  .xp-window {
    max-width: 100%;
    width: 94%;
  }

  .xp-window-content {
    padding: 14px 14px 20px;
  }

  .tool-header h1 {
    font-size: 16px;
  }

  .dimension-inputs {
    flex-direction: column;
    gap: 10px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    padding: 11px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .upload-area {
    padding: 20px 12px;
  }

  .xp-start-menu {
    width: calc(100vw - 12px);
    left: 6px;
  }

  .two-column-grid,
  .batch-result-grid {
    grid-template-columns: 1fr;
  }

  .batch-download-all {
    margin-left: 0;
    width: 100%;
  }
}
