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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8fafc;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 22%),
    radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 20%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #334155;
}

.header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  font-size: 1.5rem;
  color: #6366f1;
}

.logo-text {
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.1;
}

.logo-slogan {
  color: #64748b;
  font-size: 0.75rem;
  margin-top: 4px;
}

.header-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: 8px;
  min-width: 140px;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 3rem 2rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.welcome-section {
  border-left: 4px solid #6366f1;
  padding-left: 1.5rem;
}

.welcome-title {
  color: #0f172a;
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.welcome-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  font-family: 'Ubuntu Mono', monospace;
}

.upload-container {
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.upload-container:hover {
  border-color: #6366f1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.upload-container.dragover {
  border-style: dashed;
  border-color: #22c55e;
  background-color: #f0fdf4;
}

.upload-container::before {
  content: '✦';
  position: absolute;
  top: -12px;
  right: -6px;
  font-size: 3rem;
  color: rgba(99, 102, 241, 0.08);
  transform: rotate(12deg);
}

.upload-zone {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-icon {
  width: 3rem;
  height: 3rem;
  background-color: #0f172a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.upload-text {
  color: #0f172a;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.upload-subtext {
  color: #64748b;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-family: 'Ubuntu Mono', monospace;
}

.file-input {
  display: none;
}

.upload-button {
  background-color: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Ubuntu Mono', monospace;
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-button:hover {
  border-color: #6366f1;
  color: #6366f1;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  color: #475569;
  margin-top: 1.5rem;
}

select {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.upload-progress {
  display: none;
  margin-top: 2rem;
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #6366f1,
    #6366f1 10px,
    #ffffff 10px,
    #ffffff 20px
  );
  width: 0%;
  transition: width 0.4s ease-in-out;
}

.progress-text {
  color: #64748b;
  text-align: right;
  margin-top: 8px;
  font-weight: 400;
  font-size: 0.75rem;
  font-family: 'Ubuntu Mono', monospace;
}

.result-container {
  display: none;
  margin-top: 2rem;
  background-color: #fff;
  padding: 1.5rem;
  border: 1px solid #22c55e;
  animation: fadeIn 0.5s ease-out;
  border-radius: 12px;
}

.result-title {
  color: #16a34a;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-list {
  display: grid;
  gap: 12px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.result-url {
  flex-grow: 1;
  padding: 6px 8px;
  color: #475569;
  word-break: break-all;
  font-family: "Ubuntu Mono", monospace;
  font-size: 0.85rem;
}

.copy-button {
  background-color: white;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
}

.copy-button:hover {
  border-color: #22c55e;
  color: #22c55e;
}

.copy-button.copied {
  background-color: #22c55e;
  color: white;
  border-color: #22c55e;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.card h2 {
  margin-bottom: 0.6rem;
  color: #0f172a;
}

.card p {
  color: #64748b;
  margin-bottom: 1rem;
}

.table {
  display: grid;
  gap: 12px;
}

.table-item {
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.table-item span {
  font-size: 0.9rem;
  color: #475569;
}

.api-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.api-grid h3 {
  margin-bottom: 6px;
  color: #1e293b;
}

.api-grid code {
  background: #eef2ff;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: "Ubuntu Mono", monospace;
  font-size: 0.85rem;
}

.api-grid pre {
  margin: 12px 0 0;
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 12px;
  overflow-x: auto;
}

.code-block {
  position: relative;
  margin-top: 12px;
}

.code-block pre {
  margin: 0;
  padding-top: 44px;
}

.copy-snippet {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

.language-bash .token.command {
  color: #38bdf8;
  font-weight: 600;
}

.language-bash .token.flag {
  color: #f97316;
}

.language-bash .token.string {
  color: #a7f3d0;
}

.language-bash .token.number {
  color: #fda4af;
}

.language-bash .token.operator {
  color: #c4b5fd;
}

.footer {
  background-color: transparent;
  color: #94a3b8;
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  border-top: 1px solid #e2e8f0;
  font-family: 'Ubuntu Mono', monospace;
}

@media (max-width: 768px) {
  .header {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-content {
    padding: 2rem 1.5rem;
  }
}

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