/* === ZodexShare Premium Design === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #0a0a15;
  --bg-secondary: #0f0f1f;
  --bg-glass: rgba(255,255,255,0.04);
  --bg-glass-hover: rgba(255,255,255,0.07);
  --border-glass: rgba(255,255,255,0.08);
  --border-active: rgba(167,139,250,0.5);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --accent-purple: #a78bfa;
  --accent-cyan: #38bdf8;
  --accent-green: #4ade80;
  --accent-pink: #f472b6;
  --gradient-main: linear-gradient(135deg, #a78bfa 0%, #38bdf8 100%);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(167,139,250,0.15) 0%, transparent 70%);
  --shadow-glass: 0 8px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.06) inset;
  --shadow-glow: 0 0 40px rgba(167,139,250,0.2);
  --radius-card: 20px;
  --radius-btn: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, sans-serif;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.4s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* === Background Orbs === */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: -150px; left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
  top: 30%; right: -100px;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  bottom: -50px; left: 40%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  33% { transform: translateY(-30px) scale(1.05); }
  66% { transform: translateY(20px) scale(0.97); }
}

/* === Navbar === */
.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(10,10,21,0.6);
  backdrop-filter: blur(20px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px; height: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,0.3);
  color: var(--accent-purple);
  text-transform: uppercase;
}

/* === Main Layout === */
.main {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* === Hero === */
.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto;
}

/* === Upload Section === */
.upload-section {
  margin-bottom: 56px;
}

.drop-zone {
  background: var(--bg-glass);
  border: 2px dashed var(--border-glass);
  border-radius: var(--radius-card);
  padding: 56px 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity var(--transition);
}

.drop-zone:hover,
.drop-zone:focus {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow), var(--shadow-glass);
  outline: none;
  transform: translateY(-2px);
}

.drop-zone:hover::before,
.drop-zone:focus::before {
  opacity: 0.03;
}

.drop-zone.drag-over {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 60px rgba(56,189,248,0.25), var(--shadow-glass);
  transform: scale(1.01) translateY(-4px);
}

.drop-zone.drag-over::before {
  opacity: 0.06;
}

.drop-zone-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.drop-icon {
  margin-bottom: 8px;
  transition: transform var(--transition-slow);
}

.drop-zone:hover .drop-icon,
.drop-zone.drag-over .drop-icon {
  transform: translateY(-6px) scale(1.1);
}

.drop-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.drop-subtext {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.file-input {
  display: none;
}

.btn-browse {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(167,139,250,0.3);
}

.btn-browse:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(167,139,250,0.45);
}

.btn-browse:active {
  transform: translateY(0);
}

/* === Progress === */
.upload-progress {
  margin-top: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  backdrop-filter: blur(20px);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-filename {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-percent {
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.progress-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-main);
  border-radius: 100px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(167,139,250,0.6);
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.progress-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* === Success === */
.upload-success {
  margin-top: 20px;
  background: var(--bg-glass);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  text-align: center;
  backdrop-filter: blur(20px);
  animation: successIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.success-icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.success-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 4px;
}

.success-filename {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 500;
}

.link-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.link-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.82rem;
  min-width: 0;
  transition: border-color var(--transition);
}

.link-input:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.btn-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(167,139,250,0.3);
}

.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(167,139,250,0.45);
}

.btn-copy.copied {
  background: linear-gradient(135deg, #4ade80, #22d3ee);
  box-shadow: 0 4px 16px rgba(74,222,128,0.3);
}

.success-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-secondary {
  background: var(--bg-glass-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
  background: rgba(167,139,250,0.1);
}

/* === Recent Files === */
.recent-section {}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-refresh {
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-refresh:hover {
  color: var(--accent-purple);
  border-color: var(--border-active);
  background: rgba(167,139,250,0.1);
}

.btn-refresh.spinning svg {
  animation: spin 0.8s linear infinite;
}

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

.files-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.files-loading, .files-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border-glass);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.file-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
  animation: cardIn 0.3s ease both;
}

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

.file-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(167,139,250,0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glass);
}

.file-type-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.file-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.file-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}

.btn-action-download {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 2px 12px rgba(167,139,250,0.25);
}

.btn-action-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(167,139,250,0.4);
}

.btn-action-copy {
  background: var(--bg-glass-hover);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.btn-action-copy:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
  background: rgba(167,139,250,0.1);
}

.expiry-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 8px;
}

.expiry-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.3s ease;
}

/* === Footer === */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* === Toast === */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: rgba(15,15,31,0.95);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  max-width: 320px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.toast-success { border-color: rgba(74,222,128,0.3); }
.toast.toast-error { border-color: rgba(248,113,113,0.3); }

/* === Utilities === */
.hidden { display: none !important; }

/* === Responsive === */
@media (max-width: 640px) {
  .navbar { padding: 16px 20px; }
  .main { padding: 40px 16px 60px; }
  .hero-title { font-size: 2rem; }
  .drop-zone { padding: 40px 20px; }
  .file-actions { flex-direction: column; }
  .link-box { flex-direction: column; }
  .success-meta { flex-direction: column; align-items: center; }
}
