* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 10px;
  color: #4285f4;
}

p {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

.upload-container {
  margin: 20px 0;
}

#drop-area {
  border: 2px dashed #4285f4;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

#drop-area.highlight {
  border-color: #34a853;
  background-color: rgba(52, 168, 83, 0.05);
}

.file-label {
  display: inline-block;
  padding: 15px 25px;
  cursor: pointer;
  color: #4285f4;
}

.upload-icon {
  margin-bottom: 15px;
}

.upload-icon svg {
  width: 48px;
  height: 48px;
  fill: #4285f4;
}

.hidden {
  display: none !important;
}

#preview-container {
  margin-top: 20px;
  text-align: center;
}

#preview-image {
  max-width: 300px;
  max-height: 300px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.preview-info {
  margin-top: 15px;
}

#file-name {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

button {
  padding: 8px 16px;
  margin: 0 5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

#generate-btn {
  background-color: #4285f4;
  color: white;
}

#generate-btn:hover {
  background-color: #3367d6;
}

#clear-btn {
  background-color: #f1f1f1;
  color: #666;
}

#clear-btn:hover {
  background-color: #e4e4e4;
}

#error-message {
  margin: 20px 0;
  padding: 10px;
  background-color: #ffebee;
  color: #d32f2f;
  border-radius: 4px;
  text-align: center;
}

#loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(66, 133, 244, 0.2);
  border-top: 4px solid #4285f4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.app-description {
  margin-top: 40px;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.app-description h2 {
  margin-top: 25px;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.5em;
}

.app-description ul,
.app-description ol {
  padding-left: 25px;
  margin-bottom: 15px;
}

.app-description li {
  margin-bottom: 5px;
}

.app-description code {
  background-color: #e8e8e8;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}

.footer {
  margin-top: 30px;
  text-align: center;
}

.footer a {
  color: #4285f4;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.developer-info {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.developer-info a {
  color: #4285f4;
  text-decoration: none;
}

.developer-info a:hover {
  text-decoration: underline;
}

#extension-meta-fields input[type="text"] {
  margin-bottom: 8px;
  width: 80%;
  max-width: 350px;
  padding: 8px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ddd;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#extension-meta-fields input[type="text"]:last-child {
  font-size: 14px;
  margin-bottom: 0;
}

/* Small promo tile preview (if needed in the future) */
.promo-tile-preview {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  width: 440px;
  height: 280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 18px 0;
}

.promo-tile-title {
  font-family: "Segoe UI", "Roboto", "Arial", sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.promo-tile-slogan {
  font-family: "Segoe UI", "Roboto", "Arial", sans-serif;
  font-size: 18px;
  color: #666;
  text-align: center;
  margin: 0;
}
