/* ------------------------- Reset & Base ------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: none;
    min-height: 100vh;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  h1 {
    font-size: 2rem;
    margin: 1rem 0;
    color: black;
  }
  
  p {
    margin-bottom: 1rem;
    color: black;
  }
  
  /* ------------------------- Upload Section ------------------------- */
  .upload-area {
    border: 3px dashed #ddd;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    margin-bottom: 1.5rem;
  }
  
  .upload-area:hover {
    border-color: #667eea;
    background: rgba(102,126,234,0.05);
  }
  
  .upload-area.drag-over {
    border-color: #667eea;
    background: rgba(102,126,234,0.1);
    transform: scale(1.02);
  }
  
  .upload-icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
  }
  
  .upload-area:hover .upload-icon {
    color: #667eea;
  }
  
  .upload-area p {
    color: #666;
    font-size: 1.1rem;
  }
  
  #fileInfo {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
  }
  
  #fileInfo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  #fileInfo p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
  }
  
  #changeFile {
    padding: 0.5rem 1rem;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
  }
  
  #changeFile:hover {
    background: #667eea;
    color: white;
  }
  
  /* ------------------------- Settings ------------------------- */
  .setting {
    margin-bottom: 1rem;
  }
  
  .setting label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
  }
  
  input[type="number"],
  select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
  }
  
  input[type="number"]:focus,
  select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
  }
  
  input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 0.5rem;
    accent-color: #667eea;
  }
  
  /* ------------------------- Buttons ------------------------- */
  #convertBtn,
  #downloadBtn {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
  }
  
  #convertBtn {
    background: linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    color: white;
  }
  
  #convertBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
  }
  
  #convertBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
  }
  
  #downloadBtn {
    background: linear-gradient(135deg,#28a745 0%,#20c997 100%);
    color: white;
  }
  
  #downloadBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40,167,69,0.4);
  }
  
  /* ------------------------- 3D Preview ------------------------- */
  #preview3DContainer {
    width: 100%;
    height: 400px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: linear-gradient(135deg,#f8f9fa 0%,#e9ecef 100%);
    position: relative;
    overflow: hidden;
    margin: 1rem 0;
  }
  
  /* ------------------------- Progress Bar ------------------------- */
  .progress {
    margin:1rem 0;
  }
  
  .progress-bar {
    width:100%;
    height:8px;
    background:#e1e5e9;
    border-radius:4px;
    overflow:hidden;
    margin-bottom:0.5rem;
  }
  
  .progress-fill {
    height:100%;
    background:linear-gradient(90deg,#667eea,#764ba2);
    width:0%;
    transition: width 0.3s ease;
  }
  
  .progress-text {
    text-align:center;
    color:#667eea;
    font-weight:500;
  }
  
  /* ------------------------- Responsive ------------------------- */
  @media (max-width: 768px) {
    .container { padding: 0 10px; }
    .upload-area { padding:2rem 1rem; }
    .upload-icon { font-size:2rem; }
    h1 { font-size: 1.5rem; }
  }
  
  /* === Header === */
.header {
  background: linear-gradient(90deg, #007bff, #6a11cb);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

.nav a {
  color: #fff;
  margin-left: 15px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav a:hover,
.nav a.active {
  opacity: 0.8;
  text-decoration: underline;
}

/* === Footer === */
.footer {
  margin-top: 40px;
  background: #f5f5f5;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  color: #555;
}

.footer a {
  color: #007bff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* === Responsive Nav === */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    margin-top: 10px;
  }
  .nav a {
    margin: 5px 10px 0 0;
    display: inline-block;
  }
}
/* New Settings Styles */
.setting input[type="color"] {
  width: 40px;
  height: 30px;
  border: none;
  cursor: pointer;
  margin-left: 10px;
}

.setting input[type="range"] {
  width: 100%;
  accent-color: #667eea;
}

.examples, .faqs {
  margin-top: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.examples div, .faqs div {
  margin-bottom: 1.5rem;
}
/*------------------------------------------------------------------------------------*/

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Inter, sans-serif; background:#f8fafc; color:#1e293b; }

/* Layout helpers */
.container { max-width: 1200px; margin: auto; padding: 16px; }
.flex { display:flex }
.grid { display:grid }
.text-center { text-align:center }
.hidden { display:none }

/* Buttons */
button {
  background:#3b82f6;
  color:white;
  border:none;
  padding:12px 20px;
  border-radius:8px;
  cursor:pointer;
}
button:hover { background:#2563eb }

/* Cards */
.card {
  background:white;
  padding:20px;
  border-radius:12px;
  box-shadow:0 4px 10px rgba(0,0,0,.1);
}

/* Headings */
h1 { font-size:36px; margin-bottom:16px }
h2 { font-size:22px; margin-bottom:12px }
p { margin-bottom:10px; color:#475569 }







