/* General Styles */
body {
  font-family: 'Inter', sans-serif;
  background: #ffffff; /* Changed to pure white */
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  background: #ffffff; /* Pure white container */
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Softer shadow */
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  margin: 2rem auto;
}

h1, h2, h3, h4 {
  margin-top: 0;
  font-weight: 600;
  color: #333;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; margin-top: 1.5rem; }
h3 { font-size: 1.25em; margin-top: 1.25rem; }
h4 { font-size: 1em; margin-top: 1rem; }

a {
    color: #4f46e5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    line-height: 1.6;
    color: #555;
}

/* Main App Styles */
.custom-file-upload {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4f46e5;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
  margin-bottom: 1rem;
}

.custom-file-upload:hover {
  background-color: #4338ca;
}

input[type="file"] {
  display: none;
}

input[type="number"] {
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 80px;
  margin-left: 0.5rem;
}

label {
  margin: 0.5rem 0.5rem 0.5rem 0;
  font-weight: 500;
  color: #333;
}

/* Buttons & Controls */
button {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 8px;
  background-color: #4f46e5;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0.5rem 0;
}

button:hover:not(:disabled) {
  background-color: #4338ca;
}

button:disabled {
  background-color: #a5b4fc;
  cursor: not-allowed;
}

canvas {
  margin-top: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 100%;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section {
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .controls {
    flex-direction: column;
    align-items: flex-start;
  }
}

.intro, .faq {
  line-height: 1.6;
  color: #555;
}

#download {
  display: none;
  text-decoration: none;
  padding: 0.6em 1.2em;
  background: #03a9f4;
  color: white;
  border-radius: 5px;
  font-weight: bold;
}

#download:active {
  background: #0288d1;
}

#download:focus {
  outline: none;
}

#download:hover {
  background: #0288d1;
}

.custom-file-btn {
  display: inline-block;
  padding: 10px 22px;
  background: #2d8cf0;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  margin-bottom: 10px;
  transition: background 0.2s;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-align: left;
  padding-left: 2.2em; /* for icon alignment */
  position: relative;
}

.custom-file-btn::before {
  content: "📁";
  position: absolute;
  left: 0.8em;
  top: 50%;
  transform: translateY(-50%);
}

.custom-file-btn:hover {
  background: #1867c0;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 0.7em; /* or your preferred spacing */
  margin: 0.5em 0;
  font-size: 1em;
}
.checkbox-inline input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  margin: 0;
}

.form label.checkbox-inline {
  width: auto;
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 0.5em 0;
  font-size: 1em;
}