/* ============================================
   palota79.it — Stile pagina fattura cliente
   Design: premium, glassmorphism, animazioni
   ============================================ */

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

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0c0e1a;
  --card: #141729;
  --card-border: rgba(255,255,255,0.06);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: rgba(59,130,246,0.1);
  --success: #10b981;
  --success-bg: rgba(16,185,129,0.1);
  --border: rgba(255,255,255,0.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Sfondo animato con particelle */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(59,130,246,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 80% 70%, rgba(139,92,246,0.06) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* === Layout === */
.page-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  position: relative;
  z-index: 1;
}

/* === Loading State === */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* === Error State === */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 12px;
  text-align: center;
}

.error-icon {
  width: 56px;
  height: 56px;
  background: rgba(239,68,68,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.error-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.error-message {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* === Invoice Card === */
.invoice-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
}

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

/* === PAID STAMP === */
.paid-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(16, 185, 129, 0.12);
  border: 8px solid rgba(16, 185, 129, 0.12);
  padding: 10px 40px;
  border-radius: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 10;
  animation: stampIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes stampIn {
  0% { transform: translate(-50%, -50%) rotate(-15deg) scale(2); opacity: 0; }
  100% { transform: translate(-50%, -50%) rotate(-15deg) scale(1); opacity: 1; }
}

/* === HERO: Logo + Dati Emittente === */
.invoice-hero {
  position: relative;
  background: linear-gradient(135deg, #111430 0%, #1a1f45 40%, #1e2550 100%);
  padding: 36px 32px 32px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  top: -100px;
  right: -80px;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-glow-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  top: auto;
  bottom: -60px;
  right: auto;
  left: -50px;
  animation-delay: -4s;
  animation-duration: 10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(10px, -15px) scale(1.05); }
  66% { transform: translate(-8px, 10px) scale(0.97); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  flex-shrink: 0;
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(59,130,246,0.2); }
  50% { box-shadow: 0 4px 30px rgba(59,130,246,0.4), 0 0 60px rgba(59,130,246,0.1); }
}

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

.hero-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.hero-details {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* === META ROW: Fattura + Cliente affiancati === */
.invoice-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.meta-card {
  padding: 28px 32px;
  position: relative;
}

.meta-invoice {
  border-right: 1px solid var(--border);
}

.meta-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.meta-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.meta-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.meta-client-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.meta-client-details {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Sections === */
.invoice-body {
  padding: 0;
}

.invoice-section {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}

.invoice-section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}

/* === Items Table === */
.items-table {
  width: 100%;
  border-collapse: collapse;
}

.items-table th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 0 0 12px 0;
  border-bottom: 2px solid var(--border);
}

.items-table th:last-child {
  text-align: right;
}

.items-table td {
  padding: 14px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-secondary);
}

.items-table td:last-child {
  text-align: right;
  font-weight: 500;
  white-space: nowrap;
  padding-left: 16px;
  color: var(--text-primary);
}

.items-table tr:last-child td {
  border-bottom: none;
}

/* === Totals === */
.totals-block {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  width: 240px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.total-row.grand-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  padding-top: 12px;
  margin-top: 6px;
  border-top: 2px solid rgba(255,255,255,0.1);
}

/* === Copyable Field === */
.copyable-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(59,130,246,0.04);
  border: 1px solid rgba(59,130,246,0.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.copyable-field:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.06);
  transform: translateY(-1px);
}

.copyable-field:last-child {
  margin-bottom: 0;
}

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

.field-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.field-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 12px;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

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

.copy-btn.copied {
  background: var(--success) !important;
}

.copy-btn svg {
  flex-shrink: 0;
}

/* === Download Button === */
.download-section {
  padding: 28px 32px;
  text-align: center;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #1a1f45 0%, #2d3561 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,0.15);
}

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

.save-pdf-btn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.save-pdf-btn:hover {
  background: var(--accent-hover) !important;
  box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}

.ade-pdf-btn {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: var(--text-secondary) !important;
}

.ade-pdf-btn:hover {
  border-color: rgba(255,255,255,0.25) !important;
  color: var(--text-primary) !important;
}

.portal-btn {
  background: rgba(59,130,246,0.1) !important;
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
}

.portal-btn:hover {
  background: rgba(59,130,246,0.2) !important;
}

/* === Pay Toggle Button === */
.pay-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.pay-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
}

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

.pay-chevron {
  transition: transform 0.3s ease;
  margin-left: auto;
}

/* === Payment Details (collapsible) === */
.payment-details {
  overflow: hidden;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 600px;
    transform: translateY(0);
  }
}

.download-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* === Notes === */
.invoice-notes {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

/* === Footer === */
.invoice-footer {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  font-weight: 500;
  color: var(--text-muted);
}

.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* === Bollo badge === */
.bollo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 8px;
}

/* === Responsive tweaks === */
@media (max-width: 560px) {
  .page-wrapper {
    padding: 12px 8px 32px;
  }

  .invoice-hero {
    padding: 28px 20px;
  }

  .hero-brand {
    gap: 16px;
  }

  .hero-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .hero-name {
    font-size: 1.1rem;
  }

  .invoice-meta-row {
    grid-template-columns: 1fr;
  }

  .meta-invoice {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .meta-card {
    padding: 24px 20px;
  }

  .meta-number {
    font-size: 1.4rem;
  }

  .invoice-section {
    padding: 24px 20px;
  }

  .copyable-field {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .copy-btn {
    margin-left: 0;
    justify-content: center;
  }

  .total-row {
    width: 100%;
  }

  .download-section {
    padding: 24px 20px;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }
  .save-pdf-btn {
    display: none !important;
  }
}

/* === Modal Pagamento === */
body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 30, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.payment-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .payment-modal {
  transform: translateY(0);
}

#modal-view-methods,
#modal-view-bank {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-close, .modal-back {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  transition: all 0.2s;
}

.modal-close:hover, .modal-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px 24px 28px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* === Righe Metodi di Pagamento === */
.pm-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.pm-row-main {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.pm-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  white-space: nowrap;
}

.pm-btn:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.06);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.pm-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Principali — più grossi e visibili */
.pm-row-main .pm-btn {
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  border-width: 1.5px;
}

.pm-bonifico {
  border-color: rgba(59,130,246,0.3) !important;
  background: rgba(59,130,246,0.04) !important;
}

.pm-card {
  border-color: rgba(16,185,129,0.3) !important;
  background: rgba(16,185,129,0.04) !important;
}

@media (max-width: 480px) {
  .pm-row { grid-template-columns: 1fr 1fr; }
  .pm-btn { font-size: 0.78rem; padding: 8px 10px; gap: 8px; }
  .pm-icon { width: 28px; height: 28px; }
}

/* === Modal Actions (vista bonifico) === */
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 12px;
}

@media (max-width: 560px) {
  .pm-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .pm-row-main {
    grid-template-columns: 1fr;
  }
}

/* ====================================
   PRINT STYLESHEET — Salva come PDF
   Identico allo schermo, senza bottoni
   ==================================== */
@media print {

  /* Forza il browser a stampare colori e sfondi esattamente come sullo schermo */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    animation: none !important;
    transition: none !important;
  }

  .page-wrapper {
    max-width: 100% !important;
    padding: 20px 0 !important;
  }

  /* Nascondi SOLO gli elementi interattivi */
  .download-section,
  .copy-btn,
  .invoice-footer,
  .site-footer,
  .pay-toggle-btn,
  .payment-details,
  .hero-glow,
  .hero-glow-2,
  #client-portal-link {
    display: none !important;
  }

  /* Rimuovi ombre e bordi arrotondati per stampa pulita */
  .invoice-card {
    box-shadow: none !important;
    overflow: visible !important;
    page-break-inside: avoid;
  }

  .hero-logo {
    box-shadow: none !important;
  }

  .invoice-section {
    page-break-inside: avoid;
  }
}

/* === Stripe Loading Overlay === */
#stripe-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0a0c1a 0%, #111430 50%, #0d1025 100%);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stripe-loading-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15), 0 0 120px rgba(59, 130, 246, 0.05);
  max-width: 400px;
  width: 90%;
}

@keyframes slideUpContent {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.boomer-logo-anim {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
  /* The "boomer" animation: spin, pulse, flip, jump */
  animation: boomerMagic 3s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

@keyframes boomerMagic {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(10deg); box-shadow: 0 0 40px rgba(59, 130, 246, 0.8); }
  50% { transform: scale(1) rotate(-10deg) translateY(-10px); }
  75% { transform: scale(1.05) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.stripe-loading-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 2s linear infinite;
}

@keyframes textShine {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.stripe-loading-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 30px;
}

.boomer-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.boomer-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
  background-size: 200% 100%;
  border-radius: 10px;
  width: 100%;
  transform-origin: left;
  animation: loadingBar 2s ease-in-out infinite, gradientMove 2s linear infinite;
}

@keyframes loadingBar {
  0% { transform: scaleX(0.1); }
  50% { transform: scaleX(0.8); }
  100% { transform: scaleX(0.1); }
}

@keyframes gradientMove {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
