/* EpClient Website - Main Stylesheet */
/* Material Design 3 Theme */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Font */
  --font: 'Montserrat', 'Segoe UI', system-ui, sans-serif;

  /* Border radius */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  --shadow-xl: 0 15px 25px rgba(0, 0, 0, 0.2), 0 10px 10px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 20px rgba(74, 138, 255, 0.3);
  --shadow-glow-hover: 0 0 30px rgba(74, 138, 255, 0.4);

  /* Transitions */
  --transition: 0.2s cubic-bezier(0.2, 0, 0, 1);

  /* Primary colors */
  --primary: #4a8aff;
  --primary-hover: #5c96ff;
  --primary-active: #3a7aef;
  --primary-container: rgba(74, 138, 255, 0.12);
  --on-primary: #ffffff;
  --secondary: #FF9D00;

  /* Background colors */
  --bg-dark: #0a0a0f;
  --bg-card: rgba(30, 30, 40, 0.7);
  --bg-input: rgba(35, 35, 45, 0.6);
  --bg-hover: rgba(45, 45, 55, 0.5);
  --bg-button: rgba(74, 138, 255, 1);

  /* Surface colors */
  --surface: #14141e;
  --surface-container: rgba(30, 30, 40, 0.7);
  --surface-container-low: rgba(25, 25, 35, 0.4);
  --surface-container-high: rgba(35, 35, 45, 0.8);
  --surface-container-highest: rgba(45, 45, 55, 0.9);
  --surface-dim: rgba(0, 0, 0, 0.3);

  /* Outline colors */
  --border: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.08);
  --outline: rgba(255, 255, 255, 0.12);
  --outline-variant: rgba(255, 255, 255, 0.08);

  /* Text colors */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #6a6a6a;
  --text-on-surface: #e3e2e6;
  --text-on-surface-variant: #c4c6d0;

  /* Error colors */
  --error: #ffb4ab;
  --error-container: rgba(255, 180, 171, 0.12);

  /* Success colors */
  --success: #10b981;
  --success-container: rgba(16, 185, 129, 0.15);

  /* Warning */
  --warning: #f59e0b;
  --warning-container: rgba(245, 158, 11, 0.15);
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font);
}

body {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0d0d12 100%);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Selection color */
::selection {
  background-color: var(--primary);
  color: var(--on-primary);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Global Montserrat font */
body, button, input, select, textarea, a, span, div, p, h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-gradient-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-gradient-effects .gradient-orb {
  position: absolute;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  filter: blur(64px);
}

.bg-gradient-effects .gradient-orb.primary {
  background: rgba(74, 138, 255, 0.1);
}

.bg-gradient-effects .gradient-orb.secondary {
  background: rgba(255, 157, 0, 0.05);
}

/* ===== NAVIGATION ===== */
.nav-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
}

.nav-container.scrolled {
  width: auto;
}

.nav-container:not(.scrolled) {
  width: auto;
}

.nav-desktop {
  display: flex;
  justify-content: center;
}

.nav-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-full);
  background: var(--surface-container);
  backdrop-filter: blur(24px);
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-md);
  width: fit-content;
  max-width: 90vw;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--outline);
}

.nav-btn:active {
  background: rgba(255, 255, 255, 0.12);
}

.nav-btn.active {
  background: var(--primary-container);
  color: var(--primary);
  border-color: var(--primary);
}

.nav-spacer {
  height: 112px;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .nav-mobile {
    display: flex;
  }
}

.nav-mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  background: var(--surface-container);
  backdrop-filter: blur(24px);
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-md);
  margin: 0 16px;
}

.nav-mobile .logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 50;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--bg-button);
  color: var(--on-primary);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface-container-high);
  color: var(--text-primary);
  border: 1px solid var(--outline-variant);
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
  border-radius: var(--radius-xl);
}

/* ===== CARDS ===== */
.card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--outline);
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary-container);
  color: var(--primary);
}

.badge-success {
  background: var(--success-container);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-container);
  color: var(--warning);
}

.badge-error {
  background: var(--error-container);
  color: var(--error);
}

/* ===== INPUTS ===== */
.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--bg-input);
  border: 1px solid var(--outline-variant);
  color: var(--text-primary);
  font-size: 14px;
  transition: all var(--transition);
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-container);
}

.input::placeholder {
  color: var(--text-muted);
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  padding: 96px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

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

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

/* ===== FOOTER ===== */
.footer {
  background: rgba(30, 30, 40, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px 24px;
}

.footer-content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.footer-text {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-link {
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--surface-container);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}

.footer-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out both;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out both;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Stagger animation for children */
.stagger-children > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.8s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.9s; }
.stagger-children > *:nth-child(10) { animation-delay: 1.0s; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.hidden { display: none; }
.w-full { width: 100%; }

.grid { display: grid; }
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hero-content {
  max-width: 896px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 16px;
  }
}

/* ===== NEWS LIST ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  transition: all var(--transition);
}

.news-item:hover {
  border-color: var(--outline);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.news-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.news-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.news-date {
  font-size: 14px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--primary-container);
  color: var(--primary);
  white-space: nowrap;
}

.news-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== DOWNLOAD PAGE ===== */
.platform-selector {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-full);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
}

.platform-btn {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.platform-btn.active {
  background: var(--primary-container);
  color: var(--primary);
  border-color: var(--primary);
}

.download-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .download-card {
    flex-direction: column;
    text-align: center;
  }
}

.platform-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: var(--primary-container);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon svg {
  width: 40px;
  height: 40px;
}

.download-info {
  flex: 1;
}

.download-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.download-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.package-manager {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-dim);
  border: 1px solid var(--outline-variant);
}

.package-manager-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.package-manager-code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--primary);
}

/* ===== CHANGELOG ===== */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.changelog-item {
  border-radius: var(--radius-xl);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  overflow: hidden;
}

.changelog-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.changelog-version-badge {
  position: relative;
}

.changelog-version {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: var(--primary-container);
  color: var(--primary);
}

.changelog-version.is-new {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.changelog-new-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.changelog-version-text {
  font-weight: 600;
  color: var(--text-primary);
}

.changelog-date {
  font-size: 14px;
  color: var(--text-muted);
}

.changelog-list-items {
  padding: 0 24px 24px;
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
}

.changelog-list li svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== REQUIREMENTS ===== */
.requirements-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
}

.requirements-card.recommended {
  border-color: var(--primary);
  box-shadow: inset 0 0 40px rgba(74, 138, 255, 0.05);
}

.requirements-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.requirements-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.requirements-dot.error {
  background: var(--error);
}

.requirements-dot.primary {
  background: var(--primary);
}

.requirement-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--outline-variant);
}

.requirement-row:last-child {
  border-bottom: none;
}

.requirement-label {
  color: var(--text-secondary);
}

.requirement-value {
  font-size: 14px;
  text-align: right;
  color: var(--text-primary);
}

/* ===== ADMIN ===== */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-lg);
}

.admin-login-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.admin-form-group {
  margin-bottom: 16px;
}

.admin-form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.admin-form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--bg-input);
  border: 1px solid var(--outline-variant);
  color: var(--text-primary);
  font-size: 14px;
  transition: all var(--transition);
}

.admin-form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-container);
}

.admin-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

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

.admin-error {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--error-container);
  color: var(--error);
  margin-bottom: 16px;
  font-size: 14px;
}

/* Admin Dashboard */
.admin-dashboard {
  padding: 32px 24px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-title {
  font-size: 32px;
  font-weight: 700;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: 16px;
}

.admin-tab {
  padding: 8px 16px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}

.admin-tab.active {
  background: var(--primary-container);
  color: var(--primary);
  border-color: var(--primary);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  margin-bottom: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--outline-variant);
}

.admin-table th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--text-primary);
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-danger {
  background: var(--error);
  color: white;
}

.btn-danger:hover {
  background: #ef4444;
}

/* Add change button */
.btn-add-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--primary-container);
  color: var(--primary);
  border: 1px dashed var(--primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  transition: all var(--transition);
}

.btn-add-change:hover {
  background: var(--primary);
  color: white;
  border-style: solid;
}

/* Loading state */
.loading {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}

/* ===== UPLOAD PROGRESS BAR ===== */
.upload-form {
  position: relative;
}

.upload-form .file-input {
  transition: all var(--transition);
}

.upload-form .upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.upload-progress {
  margin-top: 16px;
  animation: fadeIn 0.3s ease-out;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  transition: width 0.2s ease-out;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

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

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.progress-percent {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}

.progress-size {
  color: var(--text-muted);
}

.progress-speed {
  color: var(--text-secondary);
  font-weight: 500;
}

.upload-result {
  margin-top: 16px;
  animation: fadeInUp 0.4s ease-out;
}

.result-message {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}

.result-message.success {
  background: var(--success-container);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.result-message.error {
  background: var(--error-container);
  color: var(--error);
  border: 1px solid rgba(255, 180, 171, 0.2);
}

.upload-btn.loading .btn-text {
  display: none;
}

.upload-btn.loading .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.upload-btn.loading .btn-loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.file-input::-webkit-file-upload-button {
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--primary-container);
  color: var(--primary);
  border: 1px solid var(--primary);
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  transition: all var(--transition);
  margin-right: 12px;
}

.file-input::-webkit-file-upload-button:hover {
  background: var(--primary);
  color: white;
}

.file-input::file-selector-button {
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--primary-container);
  color: var(--primary);
  border: 1px solid var(--primary);
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  transition: all var(--transition);
  margin-right: 12px;
}

.file-input::file-selector-button:hover {
  background: var(--primary);
  color: white;
}
