/* 
 * Report & Transfer Unified Design System 
 * Contains styles for: Service Status, Transfer Volume
 */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg: linear-gradient(135deg, #f5f7fa 0%, #e8edf4 100%);
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

/* Dark Mode Support */
[data-theme="dark"] {
  --bg: #0f172a !important;
  /* Slate 900 */
  --surface: #1e293b !important;
  /* Slate 800 */
  --surface-alt: #334155 !important;
  --text: #f8fafc !important;
  /* Slate 50 */
  --text-muted: #94a3b8 !important;
  /* Slate 400 */
  --border: #334155 !important;
  /* Slate 700 */
  --primary-light: #312e81 !important;
  /* Indigo 900 */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .service-shell {
  background: transparent !important;
}

[data-theme="dark"] body {
  background: #0f172a !important;
}

[data-theme="dark"] .card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 1), 0 2px 4px -1px rgba(0, 0, 0, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .step input,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] select {
  background: #0f172a !important;
  color: white !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .step input:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3) !important;
}

[data-theme="dark"] .feature-icon,
[data-theme="dark"] .hero-icon-wrapper {
  filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.5));
}

[data-theme="dark"] .hero-card {
  background: rgba(30, 41, 59, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .hero-title {
  background: linear-gradient(135deg, #e2e8f0 20%, #818cf8 100%) !important;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-subtitle {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .stat-pill {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .stat-pill:hover {
  background: rgba(51, 65, 85, 0.8) !important;
  color: #818cf8 !important;
}

[data-theme="dark"] .hero-search-form {
  background: #0f172a !important;
  border-color: #334155 !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .hero-input {
  color: white !important;
}

[data-theme="dark"] .report-header {
  background: #1e293b !important;
  border-color: #334155 !important;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body.service-page {
  background: var(--bg);
  min-height: 100vh;
}

/* Layout Container */
/* Layout Container */
.service-shell {
  width: 100%;
  /* max-width: 1200px;  Removed to use .container */
  /* margin: 0 auto;     Removed to use .container */
  /* padding: 20px;      Removed to use .container */
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Center content when in login/hero mode */
.service-shell[data-mode="login"],
.service-shell[data-mode="hero"] {
  min-height: calc(100vh - 160px);
  align-items: center;
  justify-content: center;
}

/* Header Style (Floating Card) */
.report-header {
  background: var(--surface);
  border-radius: 20px;
  padding: 16px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  position: relative;
  z-index: 10;
  animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.report-header .logo-container img {
  height: 48px;
  width: auto;
}

.report-header h1 {
  background: linear-gradient(135deg, var(--primary), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 24px;
  margin: 0;
}

/* Card Styles */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Shimmer Animation */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--success), var(--warning));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  opacity: 0.8;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* Staggered Animation Delays */
.stagger-delay:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-delay:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-delay:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-delay:nth-child(4) {
  animation-delay: 0.4s;
}

.stagger-delay:nth-child(5) {
  animation-delay: 0.5s;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 24px;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* Form Styles */
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.step form {
  width: 100%;
}

.step label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text);
}

.step input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(to right, #f8fafc, #ffffff);
  font-size: 16px;
  transition: all 0.2s;
}

.step input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--primary-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  font-family: inherit;
  font-size: 15px;
  text-decoration: none;
  width: 100%;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn.ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* OTP Styles */
.otp-container {
  display: flex;
  gap: 8px;
  direction: ltr;
  justify-content: center;
}

.otp-input {
  width: 48px !important;
  height: 48px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  padding: 0 !important;
}

/* Tables */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tbl th {
  text-align: right;
  padding: 12px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.tbl td {
  padding: 16px 12px;
  border-bottom: 1px dashed var(--border);
}

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

.tbl .num {
  font-family: inherit;
  direction: ltr;
}

/* Status Specific Styles */
.status-badge {
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.status-badge.success {
  background: #dcfce7;
  color: #166534;
}

.status-badge.pending {
  background: #fef9c3;
  color: #854d0e;
}

.status-badge.failed {
  background: #fee2e2;
  color: #991b1b;
}

/* Transfer Volume Specifics */
.split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 992px) {
  .split-container {
    grid-template-columns: 1fr;
  }
}

.transfer-history {
  max-height: 400px;
  overflow-y: auto;
}

.country-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

[data-theme="dark"] .country-pair {
  background: var(--surface-alt);
  border-color: var(--border);
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  background: #f8fafc;
  border-radius: 12px;
  border: 2px dashed var(--border);
}

[data-theme="dark"] .empty-state {
  background: rgba(255, 255, 255, 0.05);
}

/* Admin Hero Specifics */
.admin-hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  animation: fadeIn 0.8s ease-out;
  width: 100%;
}

.hero-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  padding: 64px 40px;
  width: 100%;
  max-width: 680px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
  animation: rotateGradient 15s linear infinite;
  z-index: 0;
  pointer-events: none;
}

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

.hero-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
}

.hero-icon {
  font-size: 72px;
  filter: drop-shadow(0 15px 15px rgba(99, 102, 241, 0.25));
  animation: floatIcon 6s ease-in-out infinite;
  display: block;
}

.hero-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

.hero-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #1e293b 20%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 17px;
  color: #64748b;
  margin-bottom: 48px;
  line-height: 1.7;
  font-weight: 500;
}

.hero-search-wrapper {
  position: relative;
  max-width: 480px;
  margin: 0 auto 48px;
  perspective: 1000px;
}

.hero-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 24px;
  padding: 6px;
  box-shadow: 0 10px 30px -5px rgba(148, 163, 184, 0.15), 0 0 0 1px rgba(226, 232, 240, 0.6);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-search-form:focus-within {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2), 0 0 0 2px rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
}

.hero-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 16px 20px;
  font-size: 16px;
  color: #1e293b;
  font-family: inherit;
  text-align: left;
  direction: ltr;
  border-radius: 18px;
}

.hero-input:focus {
  outline: none;
}

.hero-input::placeholder {
  text-align: right;
  direction: rtl;
  color: #94a3b8;
  font-size: 15px;
}

.hero-submit-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border: none;
  border-radius: 18px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.hero-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.hero-submit-btn:active {
  transform: translateY(1px);
}

.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .quick-stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.stat-pill:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
  color: #6366f1;
}

.stat-icon {
  font-size: 16px;
}

.version-tag {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 99px;
  font-size: 12px;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

@keyframes pulseGlow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.5;
  }
}

@keyframes rotateGradient {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .service-shell {
    padding: 16px;
    gap: 16px;
  }

  .report-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .report-header .search-box {
    width: 100%;
  }

  .card {
    padding: 20px;
  }
}

/* QR Modal */
.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.qr-modal.active {
  opacity: 1;
  visibility: visible;
}

.qr-modal-content {
  background: var(--surface);
  padding: 32px;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90vw;
  max-height: 90vh;
  border: 1px solid var(--border);
}

.qr-modal.active .qr-modal-content {
  transform: scale(1);
}