/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  line-height: 135%;
  color: #4b5265;
  background-color: #f2f2f2;
  padding: 0px;
  font-size: 16px;
}

main {
  display: grid;
}

/* Container */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Typography */
h1 {
  text-align: left;
  font-size: 28px;
  margin-bottom: 28.5px;
  color: #4b5265;
  font-weight: 700;
  line-height: 120%;
}

h2 {
  margin-bottom: 20px;
  color: #4b5265;
  text-align: center;
  font-weight: 500;
}

a {
  color: #4b5265;
}

/* Tips Section */
.tips ul {
  list-style: none;
}

.tips li {
  display: flex;
  align-items: center;
  padding: 0 0 20px 0;
}

.tips li img {
  margin-right: 15px;
  flex-shrink: 0;
}

/* Form Styling */
#form-container {
  text-align: center;
  margin: 25px 0 0;
}

/* Product info styles
.product-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.product-details p {
  margin: 5px 0;
  font-size: 14px;
  color: #666;
} */

.upload-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #2a72b5;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  width: 300px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.upload-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 114, 181, 0.4);
}

.upload-button:active {
  transform: translateY(0);
}

input[type="file"] {
  display: none;
}

.separator {
  margin: 20px 0;
  font-size: 16px;
  color: #4b5265;
  font-weight: 400;
}

/* Privacy Notice */
.privacy-notice {
  margin-top: 17px;
  padding: 20px;
  font-size: 14px;
  text-align: center;
  order: 1;
}

/* Results Section */
#results {
  width: fit-content;
  min-width: 80%;
  margin: auto;
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 12px;
}

#results.hidden {
  display: none;
}

/* Loading Animation */
.progress-container {
  width: 100%;
  min-height: 300px;
  max-width: 400px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: white;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: #2a72b5;
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
  color: #2a72b5;
}

.progress-detail {
  font-size: 20px;
}

/* removed label styles */

/* Result Image */
.share-image {
  width: auto;
  max-height: 75vh;
  border-radius: 5px;
  margin-bottom: 30px;
}

/* Action Buttons */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  max-width: 300px;
  margin: 0 auto;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: #2a72b5;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  text-transform: uppercase;
}

.action-button img {
  width: 20px;
  height: 20px;
}

/* Error Styling */
.error {
  background: #fff5f5;
  border-radius: 5px;
  padding: 30px;
  text-align: center;
}

.error h3 {
  color: #e04833;
  margin-bottom: 15px;
}

.error p {
  color: #e04833;
  margin-bottom: 20px;
  font-size: 16px;
}

/* Parameter Required Message */
.parameter-required-message {
  background: #f0f9ff;
  border-radius: 5px;
  padding: 30px;
  text-align: center;
  margin-top: 20px;
}

.parameter-required-message h2 {
  color: #2a72b5;
  margin-bottom: 15px;
  font-size: 24px;
}

.parameter-required-message p {
  color: #2a72b5;
  margin-bottom: 15px;
  line-height: 135%;
}

.parameter-required-message code {
  background-color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: "Roboto", Arial, sans-serif;
  color: #2a72b5;
  font-size: 14px;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0;
  }

  h2 {
    padding: 20px 10px;
  }

  .upload-button,
  .action-button {
    width: 80%;
    line-height: normal;
    padding: 12px 20px;
    margin: auto;
  }

  #tips-header {
    margin: 20px 10px 0;
  }

  #tips-section {
    margin: 0 10px;
  }

  #form-container {
    margin: 0;
  }

  .tips li,
  .separator,
  .privacy-notice p {
    display: inline-flex;
    line-height: 135%;
  }

  .separator {
    margin: 10px 0;
  }

  .privacy-notice p {
    display: inline-block;
  }

  #result-image {
    max-width: 100%;
  }

  #results {
    width: 100%;
    padding: 0;
  }

  .share-image {
    margin-bottom: 10px;
  }

  #retry-btn {
    margin-bottom: 10px;
  }

  .result-actions {
    gap: 20px;
    max-width: 100%;
  }

  #result-content {
    width: 100%;
  }

  .progress-bar {
    height: 16px;
    width: 95%;
    margin: auto;
  }

  .progress-text {
    font-size: 24px;
    margin-top: 30px;
  }
  .progress-text,
  .progress-detail {
    line-height: 100%;
  }

  .error h3 {
    margin-bottom: 30px;
  }

  .error p {
    font-size: 28px;
    margin-bottom: 60px;
  }
}
