body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9fafa;
  margin: 0;
  padding: 20px;
  color: #222;
}

#app {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}

h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.4rem;
  margin-top: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

#upload-area {
  text-align: center;
  margin-bottom: 30px;
  padding: 2rem;
  border: 2px dashed #aaa;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

#upload-area.dragover {
  background: #eef;
  border-color: #66f;
}

#file-input {
  display: none;
}

#upload-label {
  display: inline-block;
  font-size: 1rem;
  color: #111;
  cursor: pointer;
  font-weight: 600;
}

.hint {
  font-size: .9rem;
  color: #222;
  font-weight: 500;
  margin-top: 10px;
}

#image-preview {
  text-align: center;
  margin-top: 20px;
}

#preview-img {
  max-width: 200px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s;
}

#preview-img:hover {
  transform: scale(1.05);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
}

.styled-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
  font-size: .95rem;
  word-break: break-word;
}

.styled-table td:first-child {
  width: 180px;
  font-weight: bold;
  color: #333;
}

.styled-table pre {
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 6px;
  font-size: .9rem;
  line-height: 1.4;
  overflow-x: auto;
  max-height: 400px;
}

#modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
}

#modal.show {
  display: flex; 
}

#modal-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100vw;
  max-height: 100vh;
  overflow: visible;  /* ✅ 핵심: 이미지 잘리지 않게 */
  background: none;
  padding: 0;
  margin: 0;
}

#modal-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;     /* ✅ 뷰포트 기준 최대 너비 제한 */
  max-height: 90vh;    /* ✅ 뷰포트 기준 최대 높이 제한 */
  margin: 0;
  border-radius: 10px;
}


#close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, .4);
  padding: 4px 10px;
  border-radius: 8px;
  z-index: 1001;
}

#workflow-box {
  max-height: 400px;
  overflow: auto;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
}

#download-workflow {
  background: #1976d2;
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-size: .9rem;
  border-radius: 6px;
  cursor: pointer;
}

#download-workflow:hover {
  background: #125aa8;
}

.hidden {
  display: none;
}

#remove-exif-btn {
  width: 100%;
  background: #c62828;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 20px;
}

#remove-exif-btn:hover {
  background: #8e0000;
}

footer {
  margin-top: 60px;
  padding: 30px 20px;
  background: #f1f1f1;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #ddd;
  line-height: 1.6;
}

footer p {
  margin: 6px 0;
}

footer a {
  color: #444;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #1976d2;
  text-decoration: underline;
}

@media(max-width:768px) {
  #close-modal {
    font-size: 2rem;
    right: 10px;
    top: 10px;
    background: rgba(0, 0, 0, .7);
  }

  #preview-img {
    max-width: 100%;
  }

  .styled-table td:first-child {
    width: 120px;
  }

  footer {
    font-size: 0.85rem;
    padding: 24px 10px;
  }

  footer a {
    display: inline-block;
    margin: 6px 6px;
  }
}