body {
  font-family: Arial, sans-serif;
  background: #1a1a1a;
  color: #fff;
  margin: 0;
  padding: 20px;
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
}

body.light-mode {
  background: #f0f0f0;
  color: #333;
}

.theme-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: #333;
  border: 1px solid #444;
  color: #10b981;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.2s;
}

.theme-toggle:hover {
  background: #444;
}

.language-selector {
  position: fixed;
  top: 10px;
  right: 60px;
  z-index: 1000;
}

#language-select {
  padding: 8px 12px;
  background: #333;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

#language-select:hover {
  background: #444;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .theme-toggle {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 10px;
    margin-right: 10px;
  }
  
  .language-selector {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 10px;
  }
  
  .nav-tabs {
    flex-wrap: wrap;
  }
  
  .converter-layout {
    flex-direction: column;
  }
  
  .right-panel {
    width: 100%;
  }
  
  #animations-grid {
    grid-template-columns: 1fr;
  }
}

body.light-mode .theme-toggle {
  background: #ddd;
  color: #333;
}

/* Converter Layout */
.converter-layout {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.left-panel {
  flex: 1;
}

.right-panel {
  width: 300px;
}

.import-url-section {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

#import-url-input {
  flex: 1;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
}

#import-url-btn {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  background: #10b981;
  color: #000;
  cursor: pointer;
}

.template-section {
  margin: 20px 0;
}

#download-template-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: #444;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

#download-template-btn:hover {
  background: #555;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.search-section {
  margin: 20px 0;
}

#skin-search {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
}

.batch-section {
  margin: 20px 0;
}

#batch-rename-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: #444;
  color: #fff;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

#batch-rename-btn:hover {
  background: #555;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Pack Stats */
#pack-stats {
  background: #222;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#pack-stats h3 {
  margin-top: 0;
}

/* Tips Section */
#tips-section {
  background: #222;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#tips-section h3 {
  margin-top: 0;
}

#tips-section ul {
  margin: 10px 0;
  padding-left: 20px;
}

#tips-section li {
  margin: 8px 0;
  font-size: 14px;
}

/* Pack Icon */
.pack-icon-section {
  margin-bottom: 15px;
}

#icon-preview {
  width: 64px;
  height: 64px;
  background: #333;
  border-radius: 4px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#icon-preview img {
  max-width: 100%;
  max-height: 100%;
}

#pack-description {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  margin-bottom: 10px;
  resize: vertical;
  min-height: 60px;
}

.export-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

#export-zip-btn {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background: #444;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

#export-zip-btn:hover {
  background: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Progress Bar */
#progress-bar {
  width: 100%;
  height: 20px;
  background: #333;
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  background: #10b981;
  width: 0%;
  transition: width 0.3s;
}

/* Recent Packs */
#recent-packs {
  margin-top: 30px;
  background: #222;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#recent-packs h3 {
  margin-top: 0;
}

#recent-packs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recent-pack-item {
  background: #333;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
}

.recent-pack-item:hover {
  background: #444;
}

/* How to Use Section */
#how-to-use {
  margin-top: 30px;
  background: #222;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#how-to-use h3 {
  margin-top: 0;
}

#how-to-use ol {
  margin: 10px 0;
  padding-left: 20px;
}

#how-to-use li {
  margin: 10px 0;
  line-height: 1.6;
}

/* FAQ Section */
#faq {
  margin-top: 30px;
  background: #222;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#faq h3 {
  margin-top: 0;
}

.faq-item {
  margin: 15px 0;
  padding: 10px;
  background: #333;
  border-radius: 4px;
}

.faq-item h4 {
  margin: 0 0 8px 0;
  color: #10b981;
}

.faq-item p {
  margin: 0;
  line-height: 1.6;
}

/* Ad Spots */
.ad-spot {
  margin: 20px 0;
  background: #333;
  border-radius: 8px;
  overflow: hidden;
}

#ad-download-top {
  margin-top: 30px;
}

#ad-download-bottom {
  margin-bottom: 30px;
}

#ad-sidebar {
  display: none;
}

.ad-placeholder {
  width: 100%;
  min-height: 250px;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #555;
}

.ad-placeholder p {
  color: #666;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (min-width: 1024px) {
  .converter-layout {
    position: relative;
  }
  
  #ad-sidebar {
    display: block;
    position: absolute;
    right: -340px;
    top: 0;
    width: 300px;
    margin: 0;
  }
  
  .ad-placeholder {
    min-height: 600px;
  }
}

/* Ad Modal */
#ad-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.ad-modal-content {
  background: #222;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.ad-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #333;
}

.ad-modal-header h3 {
  margin: 0;
  color: #fff;
}

#ad-modal #close-ad-modal {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
}

.ad-modal-body {
  padding: 20px;
}

.ad-modal-ad {
  width: 100%;
  min-height: 300px;
  background: #2a2a2a;
  border: 2px dashed #555;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.ad-modal-ad p {
  color: #666;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ad-note {
  margin-top: 10px;
  font-size: 12px !important;
  color: #888 !important;
}

.ad-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #333;
  text-align: center;
}

#ad-modal #continue-download {
  background: #10b981;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

#ad-modal #continue-download:disabled {
  background: #555;
  color: #888;
  cursor: not-allowed;
}

#ad-modal #continue-download:hover:not(:disabled) {
  background: #059669;
}

.ad-countdown {
  color: #888;
  font-size: 14px;
  margin: 0;
}

#ad-countdown {
  color: #10b981;
  font-weight: bold;
}

/* Light mode adjustments */
body.light-mode .nav-tabs {
  background: #e0e0e0;
}

body.light-mode .nav-tab {
  background: #fff;
  color: #333;
}

body.light-mode .nav-tab:hover {
  background: #f0f0f0;
}

body.light-mode .nav-tab.active {
  background: #10b981;
  color: #000;
}

body.light-mode #upload-area {
  border-color: #999;
}

body.light-mode .skin-preview {
  background: #fff;
}

body.light-mode #pack-name,
body.light-mode #pack-description,
body.light-mode #skin-search,
body.light-mode #url-input {
  background: #fff;
  color: #333;
  border-color: #999;
}

body.light-mode #preview-3d-container,
body.light-mode #pack-stats,
body.light-mode #recent-packs {
  background: #fff;
}

body.light-mode #preview-3d {
  background: #e0e0e0;
}

body.light-mode .recent-pack-item {
  background: #f0f0f0;
}

body.light-mode .recent-pack-item:hover {
  background: #e0e0e0;
}

body.light-mode #how-to-use,
body.light-mode #faq {
  background: #fff;
}

body.light-mode .faq-item {
  background: #f0f0f0;
}

body.light-mode .faq-item h4 {
  color: #006600;
}

body.light-mode .ad-spot {
  background: #f0f0f0;
}

body.light-mode .ad-placeholder {
  background: #e0e0e0;
  border-color: #ccc;
}

body.light-mode .ad-placeholder p {
  color: #999;
}

/* Animations Info Tab */
#tab-animations {
  padding: 20px;
}

#animations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.animation-card {
  background: #222;
  border: 2px solid #333;
  border-radius: 16px;
  overflow: hidden;
}

.animation-media {
  width: 100%;
  height: 280px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 2px solid #333;
}

.animation-image,
.animation-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1a1a1a;
}

.animation-video {
  object-fit: contain;
  border-radius: 0;
}

.animation-content {
  padding: 20px;
  background: #252525;
}

.animation-title {
  margin: 0 0 12px 0;
  color: #10b981;
  font-size: 22px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.animation-description {
  margin: 0;
  color: #ccc;
  line-height: 1.6;
  font-size: 15px;
}

body.light-mode .animation-card {
  background: #fff;
  border-color: #ddd;
}

body.light-mode .animation-card:hover {
  box-shadow: 0 5px 15px rgba(0, 100, 0, 0.1);
}

body.light-mode .animation-image {
  background: #f0f0f0;
}

body.light-mode .animation-content h3 {
  color: #006600;
}

body.light-mode .animation-content p {
  color: #333;
}

body.light-mode .animation-id {
  color: #999;
}
.nav-tabs {
  display: flex;
  justify-content: center;
  background: #222;
  padding: 10px;
  gap: 10px;
}

.nav-tab {
  padding: 10px 20px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.nav-tab:hover {
  background: #444;
}

.nav-tab.active {
  background: #10b981;
  color: #000;
}

.nav-tab[href]:hover {
  background: #444;
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 20px;
}

.tab-content.active {
  display: block;
}

h1 {
  margin-top: 30px;
  margin-bottom: 20px;
  font-size: 28px;
}

#upload-area {
  border: 2px dashed #555;
  padding: 40px;
  width: 60%;
  margin: 20px auto;
  cursor: pointer;
  border-radius: 10px;
  transition: border-color 0.2s;
}

#upload-area p {
  margin: 0;
}

#upload-area input {
  display: none;
}

#skins-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.skin-preview {
  margin: 10px;
  padding: 10px;
  background: #222;
  border-radius: 8px;
  width: 160px;
}

.skin-preview img {
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
  display: block;
  margin: 0 auto 5px auto;
}

.skin-preview p {
  font-size: 12px;
  word-break: break-all;
}

.skin-preview {
  position: relative;
}

.remove-skin {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.remove-skin:hover {
  background: #ff6666;
}

#pack-options {
  margin: 30px auto;
  padding: 20px;
  background: #222;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#pack-name {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  margin-right: 10px;
}

#export-btn {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background: #10b981;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

#export-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4);
}

/* Section Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #333, transparent);
  margin: 40px 0;
}

body.light-mode .section-divider {
  background: linear-gradient(to right, transparent, #ccc, transparent);
}
.checkbox-label {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  cursor: pointer;
}

.checkbox-label input {
  margin-right: 8px;
}

/* Body Type & Animation Sections */
.body-type-section,
.animation-section {
  margin-bottom: 15px;
}

#body-type,
#animation-type {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  margin-top: 5px;
  cursor: pointer;
  display: block;
}

#body-type option,
#animation-type option {
  background: #222;
  color: #fff;
}

body.light-mode #body-type option,
body.light-mode #animation-type option {
  background: #fff;
  color: #333;
}

body.light-mode #body-type,
body.light-mode #animation-type {
  background: #fff;
  color: #333;
  border-color: #999;
}

/* Other Links List */
#other-links-list {
  margin-top: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.other-link-item {
  display: flex;
  justify-content: center;
  background: #222;
  padding: 15px;
  margin: 10px 0;
  border-radius: 4px;
}

.other-link-item a {
  color: #10b981;
  text-decoration: none;
  font-size: 18px;
}

.other-link-item a:hover {
  text-decoration: underline;
}

/* Skin Maker */
.skin-maker-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.tools-panel {
  background: #222;
  padding: 20px;
  border-radius: 8px;
  min-width: 200px;
}

.tool-section {
  margin-bottom: 20px;
}

.tool-section h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 14px;
  color: #888;
}

.tool-btn {
  display: block;
  width: 100%;
  padding: 8px;
  margin-bottom: 5px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.tool-btn:hover {
  background: #444;
}

.tool-btn.active {
  background: #10b981;
  color: #000;
}

#color-picker {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#clear-skin,
#export-skin {
  display: block;
  width: 100%;
  padding: 8px;
  margin-bottom: 5px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#clear-skin:hover {
  background: #f00;
}

#export-skin:hover {
  background: #10b981;
  color: #000;
}

.canvas-container {
  background: #222;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#skin-canvas {
  border: 2px solid #555;
  image-rendering: pixelated;
  cursor: crosshair;
  width: 512px;
  height: 512px;
  background: #ffffff;
  background-image: 
    linear-gradient(to right, #cccccc 1px, transparent 1px),
    linear-gradient(to bottom, #cccccc 1px, transparent 1px);
  background-size: 8px 8px;
}

#skin-template-overlay {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 512px;
  height: 512px;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><style>.label{font-size:1.5px;fill:%23888;font-family:sans-serif;font-weight:bold;}.section{fill:none;stroke:%23555;stroke-width:0.5;}.section:hover{stroke:%23888;}</style><rect x="0" y="0" width="8" height="8" class="section"/><text x="4" y="4" class="label" text-anchor="middle">Head</text><rect x="8" y="0" width="8" height="8" class="section"/><text x="12" y="4" class="label" text-anchor="middle">Body</text><rect x="16" y="0" width="8" height="8" class="section"/><text x="20" y="4" class="label" text-anchor="middle">RArm</text><rect x="24" y="0" width="8" height="8" class="section"/><text x="28" y="4" class="label" text-anchor="middle">LArm</text><rect x="32" y="0" width="8" height="8" class="section"/><text x="36" y="4" class="label" text-anchor="middle">RLeg</text><rect x="40" y="0" width="8" height="8" class="section"/><text x="44" y="4" class="label" text-anchor="middle">LLeg</text><rect x="0" y="8" width="8" height="8" class="section"/><rect x="8" y="8" width="8" height="8" class="section"/><rect x="16" y="8" width="8" height="8" class="section"/><rect x="24" y="8" width="8" height="8" class="section"/><rect x="32" y="8" width="8" height="8" class="section"/><rect x="40" y="8" width="8" height="8" class="section"/><rect x="0" y="16" width="8" height="8" class="section"/><text x="4" y="20" class="label" text-anchor="middle">Head</text><rect x="8" y="16" width="8" height="8" class="section"/><text x="12" y="20" class="label" text-anchor="middle">Body</text><rect x="16" y="16" width="8" height="8" class="section"/><text x="20" y="20" class="label" text-anchor="middle">RArm</text><rect x="24" y="16" width="8" height="8" class="section"/><text x="28" y="20" class="label" text-anchor="middle">LArm</text><rect x="32" y="16" width="8" height="8" class="section"/><text x="36" y="20" class="label" text-anchor="middle">RLeg</text><rect x="40" y="16" width="8" height="8" class="section"/><text x="44" y="20" class="label" text-anchor="middle">LLeg</text><rect x="0" y="24" width="8" height="8" class="section"/><rect x="8" y="24" width="8" height="8" class="section"/><rect x="16" y="24" width="8" height="8" class="section"/><rect x="24" y="24" width="8" height="8" class="section"/><rect x="32" y="24" width="8" height="8" class="section"/><rect x="40" y="24" width="8" height="8" class="section"/><rect x="0" y="32" width="8" height="8" class="section"/><text x="4" y="36" class="label" text-anchor="middle">Head</text><rect x="8" y="32" width="8" height="8" class="section"/><text x="12" y="36" class="label" text-anchor="middle">Head</text><rect x="16" y="32" width="8" height="8" class="section"/><text x="20" y="36" class="label" text-anchor="middle">Head</text><rect x="24" y="32" width="8" height="8" class="section"/><text x="28" y="36" class="label" text-anchor="middle">Head</text><rect x="32" y="32" width="8" height="8" class="section"/><text x="36" y="36" class="label" text-anchor="middle">Head</text><rect x="40" y="32" width="8" height="8" class="section"/><text x="44" y="36" class="label" text-anchor="middle">Head</text><rect x="48" y="32" width="8" height="8" class="section"/><text x="52" y="36" class="label" text-anchor="middle">Head</text><rect x="56" y="32" width="8" height="8" class="section"/><text x="60" y="36" class="label" text-anchor="middle">Head</text><rect x="0" y="40" width="8" height="8" class="section"/><text x="4" y="44" class="label" text-anchor="middle">Body</text><rect x="8" y="40" width="8" height="8" class="section"/><text x="12" y="44" class="label" text-anchor="middle">Body</text><rect x="16" y="40" width="8" height="8" class="section"/><text x="20" y="44" class="label" text-anchor="middle">Body</text><rect x="24" y="40" width="8" height="8" class="section"/><text x="28" y="44" class="label" text-anchor="middle">Body</text><rect x="32" y="40" width="8" height="8" class="section"/><text x="36" y="44" class="label" text-anchor="middle">Body</text><rect x="40" y="40" width="8" height="8" class="section"/><text x="44" y="44" class="label" text-anchor="middle">Body</text><rect x="48" y="40" width="8" height="8" class="section"/><text x="52" y="44" class="label" text-anchor="middle">Body</text><rect x="56" y="40" width="8" height="8" class="section"/><text x="60" y="44" class="label" text-anchor="middle">Body</text><rect x="0" y="48" width="8" height="8" class="section"/><text x="4" y="52" class="label" text-anchor="middle">RArm</text><rect x="8" y="48" width="8" height="8" class="section"/><text x="12" y="52" class="label" text-anchor="middle">RArm</text><rect x="16" y="48" width="8" height="8" class="section"/><text x="20" y="52" class="label" text-anchor="middle">RArm</text><rect x="24" y="48" width="8" height="8" class="section"/><text x="28" y="52" class="label" text-anchor="middle">RArm</text><rect x="32" y="48" width="8" height="8" class="section"/><text x="36" y="52" class="label" text-anchor="middle">LArm</text><rect x="40" y="48" width="8" height="8" class="section"/><text x="44" y="52" class="label" text-anchor="middle">LArm</text><rect x="48" y="48" width="8" height="8" class="section"/><text x="52" y="52" class="label" text-anchor="middle">LArm</text><rect x="56" y="48" width="8" height="8" class="section"/><text x="60" y="52" class="label" text-anchor="middle">LArm</text><rect x="0" y="56" width="8" height="8" class="section"/><text x="4" y="60" class="label" text-anchor="middle">RLeg</text><rect x="8" y="56" width="8" height="8" class="section"/><text x="12" y="60" class="label" text-anchor="middle">RLeg</text><rect x="16" y="56" width="8" height="8" class="section"/><text x="20" y="60" class="label" text-anchor="middle">RLeg</text><rect x="24" y="56" width="8" height="8" class="section"/><text x="28" y="60" class="label" text-anchor="middle">RLeg</text><rect x="32" y="56" width="8" height="8" class="section"/><text x="36" y="60" class="label" text-anchor="middle">LLeg</text><rect x="40" y="56" width="8" height="8" class="section"/><text x="44" y="60" class="label" text-anchor="middle">LLeg</text><rect x="48" y="56" width="8" height="8" class="section"/><text x="52" y="60" class="label" text-anchor="middle">LLeg</text><rect x="56" y="56" width="8" height="8" class="section"/><text x="60" y="60" class="label" text-anchor="middle">LLeg</text></svg>');
  background-size: 512px 512px;
  opacity: 0.4;
}

#view-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#three-container {
  width: 512px;
  height: 512px;
  border: 2px solid #555;
  border-radius: 8px;
  cursor: move;
}

#three-container canvas {
  width: 100%;
  height: 100%;
}

.view-btn {
  display: block;
  width: 100%;
  padding: 8px;
  margin-bottom: 5px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.view-btn:hover {
  background: #444;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .converter-layout {
    flex-direction: column;
  }
  
  .left-panel {
    width: 100%;
  }
  
  .right-panel {
    width: 100%;
  }
  
  #upload-area {
    width: 100%;
    padding: 20px;
  }
  
  .skin-preview {
    width: 140px;
  }
  
  .skin-preview img {
    width: 112px;
    height: 112px;
  }
  
  .nav-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-tab {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  #pack-name {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .export-buttons {
    flex-direction: column;
  }
  
  #export-btn,
  #export-zip-btn,
  #download-template-btn,
  #batch-rename-btn {
    padding: 12px 16px;
    font-size: 16px;
  }
  
  .theme-toggle {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
  }
  
  #pack-options {
    padding: 20px 10px;
  }
  
  .checkbox-label {
    display: flex;
    margin-right: 0;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 20px;
  }
  
  .nav-tabs {
    gap: 5px;
    padding: 8px;
  }
  
  .nav-tab {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .skin-preview {
    width: 120px;
    padding: 8px;
  }
  
  .skin-preview img {
    width: 96px;
    height: 96px;
  }
  
  .skin-preview p {
    font-size: 11px;
  }
  
  #tips-section ul {
    padding-left: 15px;
  }
  
  #tips-section li {
    font-size: 13px;
  }
  
  .remove-skin {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }
}

/* Touch-friendly adjustments for mobile */
@media (hover: none) and (pointer: coarse) {
  .nav-tab:hover,
  .skin-preview:hover,
  .recent-pack-item:hover,
  .tool-btn:hover,
  #export-btn:hover,
  #export-zip-btn:hover,
  #download-template-btn:hover,
  #batch-rename-btn:hover {
    background: #444;
  }
  
  .nav-tab.active:hover {
    background: #10b981;
    color: #000;
  }
  
  #export-btn:hover {
    background: #059669;
    color: #000;
  }
}
