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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  color: #e5e5e5;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

header p {
  color: #737373;
  font-size: 1.1rem;
}

.upload-zone {
  border: 2px dashed #262626;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #111;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
  width: 48px;
  height: 48px;
  color: #525252;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.upload-zone:hover .upload-icon,
.upload-zone.drag-over .upload-icon {
  color: #6366f1;
}

.upload-text {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.upload-subtext {
  color: #525252;
  font-size: 0.9rem;
}

.api-key-section {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #111;
  border-radius: 12px;
  border: 1px solid #262626;
}

.api-key-section label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #a3a3a3;
}

.api-input-group {
  display: flex;
  gap: 0.5rem;
}

.api-input-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #262626;
  background: #0a0a0a;
  color: #e5e5e5;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.api-input-group input:focus {
  border-color: #6366f1;
}

.api-input-group button {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #262626;
  background: #1a1a1a;
  color: #a3a3a3;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.api-input-group button:hover {
  background: #262626;
  color: #e5e5e5;
}

.api-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #6366f1;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.api-link:hover {
  color: #a855f7;
}

.images-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.image-card {
  background: #111;
  border-radius: 12px;
  border: 1px solid #262626;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-card.uploading {
  opacity: 0.6;
  pointer-events: none;
}

.image-card.error {
  border-color: #ef4444;
}

.image-preview {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: #0a0a0a;
}

.image-info {
  padding: 1rem;
}

.image-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.url-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.url-row label {
  font-size: 0.75rem;
  color: #737373;
  min-width: 80px;
  padding-top: 0.4rem;
}

.url-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #262626;
  background: #0a0a0a;
  color: #a3a3a3;
  font-size: 0.85rem;
  font-family: 'Consolas', 'Monaco', monospace;
  outline: none;
}

.copy-btn {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #262626;
  background: #6366f1;
  color: white;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.copy-btn:hover {
  background: #5558e6;
}

.copy-btn.copied {
  background: #22c55e;
}

.status {
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.status.uploading {
  color: #6366f1;
}

.status.error {
  color: #ef4444;
}

footer {
  text-align: center;
  margin-top: 3rem;
  color: #404040;
  font-size: 0.85rem;
}

footer a {
  color: #6366f1;
  text-decoration: none;
}

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

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.about-us {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  color: #525252;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.about-us:hover {
  color: #6366f1;
}
