:root {
  --bg-color: #0d1117;
  --card-bg: rgba(22, 27, 34, 0.7);
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --accent-color: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.5);
  --success-color: #10b981;
  --error-color: #ef4444;
  --border-color: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.1), transparent 25%);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 600px;
  perspective: 1000px;
  margin: auto;
  z-index: 10;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 0 20px var(--accent-glow);
}

.header {
  margin-bottom: 30px;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

/* Dropzone Styles */
.dropzone {
  border: 2px dashed rgba(139, 92, 246, 0.4);
  border-radius: 16px;
  padding: 40px 20px;
  margin-bottom: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: rgba(139, 92, 246, 0.02);
}

.dropzone:hover {
  border-color: var(--accent-color);
  background: rgba(139, 92, 246, 0.05);
}

.dropzone.dragover {
  border-color: var(--success-color);
  background: rgba(16, 185, 129, 0.1);
  transform: scale(1.02);
}

.dropzone-icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.dropzone:hover .dropzone-icon {
  transform: translateY(-5px);
}

.dropzone-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  pointer-events: none;
}

.dropzone-subtext {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  pointer-events: none;
}

#fileInput {
  display: none;
}

/* Selected File Display */
.file-info {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 30px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-info.active {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

.file-name {
  font-size: 14px;
  font-weight: 600;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.file-remove {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-remove:hover {
  background: var(--error-color);
  color: white;
  transform: scale(1.1);
}

/* Button */
.btn {
  background: linear-gradient(135deg, var(--accent-color) 0%, #7c3aed 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px var(--accent-glow);
}

.btn:disabled {
  background: #374151;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Progress Area */
.progress-area {
  display: none;
  margin-top: 30px;
  flex-direction: column;
  align-items: center;
}

.progress-area.active {
  display: flex;
  animation: slideUp 0.5s ease forwards;
}

.fun-message {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 15px;
  height: 24px;
  animation: pulse 2s infinite;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, var(--accent-color));
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shimmer 1.5s infinite linear;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 10px var(--accent-glow);
  }

  100% {
    opacity: 0.8;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Background Animated Elements */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.8;
  animation: float 20s infinite ease-in-out;
  will-change: transform;
}

.shape1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, rgba(139, 92, 246, 0) 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.shape2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

/* Footer / GitHub Link */
.footer {
  width: 100%;
  text-align: center;
  padding-top: 30px;
  padding-bottom: 10px;
  z-index: 10;
}

.github-link {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.github-link:hover {
  color: var(--accent-color);
}

.github-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}