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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #74ebd5, #acb6e5);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  max-width: 900px;
  width: 100%;
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 2.2em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 8px;
  font-size: 1.1em;
}

input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #dfe6e9;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: #0984e3;
}

/* Uploadcare widget styling */
uc-file-uploader-regular {
  width: 100%;
  --uc-border: 2px solid #dfe6e9;
  --uc-border-radius: 8px;
  --uc-bg: #f9f9f9;
  padding: 12px;
}

.btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: #0984e3;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0652dd;
}

#result {
  margin-top: 20px;
  padding: 15px;
  background: #f1f2f6;
  border-radius: 8px;
  text-align: center;
}

#result img {
  max-width: 50px;
  border-radius: 8px;
  margin: 10px 0;
}

#result a {
  color: #0984e3;
  text-decoration: none;
  word-break: break-all;
}

#result a:hover {
  text-decoration: underline;
}

.gallery-link {
  display: inline-block;
  margin-top: 20px;
  color: #0984e3;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1em;
}

.gallery-link:hover {
  text-decoration: underline;
}

#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-item {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  max-width: 10%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.gallery-item p {
  font-size: 0.9em;
  color: #2c3e50;
  margin: 5px 0;
}

.copy-btn {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  margin-top: 5px;
}

.copy-btn:hover {
  background: #27ae60;
}

@media (max-width: 600px) {
  .container {
    padding: 20px;
  }
  h1 {
    font-size: 1.8em;
  }
  .btn {
    font-size: 1em;
  }
}
.error {
  color: #ff4444;
  font-weight: bold;
}

.success {
  color: #00C851;
  font-weight: bold;
}

.copy-btn {
  background: #4285f4;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin: 10px 0;
  font-size: 14px;
}

.copy-btn:hover {
  background: #3367d6;
}
