:root {
  --bg-color: #0f172a;
  --text-color: #f8fafc;
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent-1: #8b5cf6;
  --accent-2: #ec4899;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.5;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background-color: var(--accent-1);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background-color: var(--accent-2);
  bottom: -50px;
  right: -50px;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 50px) scale(1.1); }
  100% { transform: translate(-50px, 100px) scale(0.9); }
}

.container {
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  z-index: 1;
}

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

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.header p {
  color: #94a3b8;
  font-size: 1.1rem;
}

.upload-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px dashed var(--card-border);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.upload-card:hover, .upload-card.dragover {
  border-color: var(--primary);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-2px);
}

.upload-icon {
  color: #94a3b8;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.upload-card:hover .upload-icon, .upload-card.dragover .upload-icon {
  color: var(--primary);
}

.drop-text {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.or-text {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.browse-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.browse-btn:hover {
  background-color: var(--primary-hover);
}

.hidden-input {
  display: none;
}

.hidden {
  display: none !important;
}

/* Progress Section */
.upload-progress-container {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.file-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.file-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.file-size {
  color: #94a3b8;
}

.progress-bar-bg {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent-1));
  border-radius: 4px;
  transition: width 0.2s ease;
}

.status-text {
  font-size: 0.875rem;
  color: #94a3b8;
  text-align: right;
}

/* Result Section */
.result-container {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 1.5rem;
  text-align: center;
}

.success-text {
  color: #10b981;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.link-wrapper {
  display: flex;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.link-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  padding: 0.75rem 1rem;
  font-family: inherit;
  outline: none;
}

.copy-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  padding: 0 1.25rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: rgba(255,255,255,0.2);
}

.reset-btn {
  background: transparent;
  border: 1px solid var(--card-border);
}

.reset-btn:hover {
  background: rgba(255,255,255,0.1);
}
