/* ============================================================
   Sendra – Custom Stylesheet
   Color palette:
     Primary Blue : #2563EB
     Dark         : #0F172A
     Surface      : #F8FAFC
     Border       : #E2E8F0
   ============================================================ */

:root {
  --color-primary:   #2563EB;
  --color-primary-d: #1d4ed8;
  --color-dark:      #0F172A;
  --color-dark-700:  #334155;
  --color-surface:   #F8FAFC;
  --color-border:    #E2E8F0;
  --radius-card:     16px;
  --radius-btn:      10px;
  --shadow-card:     0 2px 16px rgba(15, 23, 42, 0.07);
  --shadow-card-hover: 0 6px 28px rgba(15, 23, 42, 0.12);
  --transition:      0.18s ease;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-surface);
  color: var(--color-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.main-content { flex: 1; }

/* ── Typography helpers ── */
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-dark-900 { color: var(--color-dark) !important; }
.font-mono { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }

/* ── Navbar ── */
.sendra-navbar {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  box-shadow: 0 1px 8px rgba(15,23,42,0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-d));
  color: #fff;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.35);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.5px;
}

.nav-link-subtle {
  color: var(--color-dark-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.nav-link-subtle:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

/* ── Footer ── */
.sendra-footer {
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  background: #fff;
  margin-top: auto;
}

.footer-branding {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
}

.footer-company-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

/* ── Cards ── */
.sendra-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: #fff;
  transition: box-shadow var(--transition);
}
.sendra-card:hover { box-shadow: var(--shadow-card-hover); }

.menu-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: #bfd4ff;
}
.menu-card--primary {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.menu-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-d));
  font-size: 26px;
  flex-shrink: 0;
}
.menu-card-icon--receive,
.feature-icon--receive {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}
.menu-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
}
.menu-card-body {
  flex: 1;
}

.placeholder-panel {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #f8fafc;
}
.placeholder-panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 20px;
  flex-shrink: 0;
}

.sendra-modal {
  border-radius: var(--radius-card);
  border: none;
  box-shadow: 0 20px 60px rgba(15,23,42,0.18);
}

/* ── Buttons ── */
.btn {
  border-radius: var(--radius-btn);
  font-weight: 500;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-d);
  border-color: var(--color-primary-d);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-glow {
  box-shadow: 0 0 0 3px rgba(37,99,235,0.25);
  animation: pulse-glow 1.5s infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37,99,235,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(37,99,235,0.1); }
}

/* ── Form Controls ── */
.form-control, .form-select {
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-control-lg {
  padding: 12px 16px;
  font-size: 16px;
}
.input-group-text {
  border: 1.5px solid var(--color-border);
  border-radius: 10px 0 0 10px;
}

/* ── Feature Icon ── */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-d));
  color: #fff;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}
.feature-icon--sm {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 22px;
}

/* ── Drop Zone ── */
.drop-zone {
  border: 2px dashed var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.drop-zone:hover,
.drop-zone--active {
  border-color: var(--color-primary);
  background: #EFF6FF;
}
.drop-zone--has-files {
  border-style: solid;
  border-color: var(--color-primary);
  background: #EFF6FF;
  padding: 20px 24px;
}
.drop-zone-icon {
  font-size: 40px;
  color: #94a3b8;
  display: block;
  margin-bottom: 12px;
  transition: color var(--transition);
}
.drop-zone:hover .drop-zone-icon,
.drop-zone--active .drop-zone-icon {
  color: var(--color-primary);
}
.drop-zone-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark-700);
  margin: 0;
}
.drop-zone-subtext {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

/* ── File List ── */
.file-list-item {
  padding: 8px 12px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  margin-bottom: 6px;
}
.file-icon {
  color: var(--color-primary);
  font-size: 16px;
  flex-shrink: 0;
}
.file-name { font-size: 14px; font-weight: 500; }
.file-size { font-size: 12px; white-space: nowrap; }

/* ── Notification Options ── */
.notification-options {
  display: grid;
  gap: 12px;
}

.notification-option {
  display: block;
  cursor: pointer;
}

.notification-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.notification-option-card {
  display: block;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  padding: 16px 18px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.notification-option:hover .notification-option-card {
  border-color: #bfd4ff;
  background: #f8fbff;
}

.notification-option input:checked + .notification-option-card {
  border-color: var(--color-primary);
  background: #EFF6FF;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.notification-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.notification-option-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
}

.notification-option-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #DBEAFE;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.notification-option-desc,
.notification-option-subdesc {
  display: block;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.notification-option-subdesc {
  color: #64748b;
}

/* ── Info Pills ── */
.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-dark-700);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 6px 12px;
}
.info-pill i { color: var(--color-primary); }

/* ── Success Circle ── */
.success-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 36px;
  box-shadow: 0 4px 20px rgba(16,185,129,0.35);
}

/* ── Error Icon ── */
.error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #FEF2F2;
  color: #ef4444;
  font-size: 40px;
}

/* ── Info Grid (success page) ── */
.info-grid {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}
.info-grid-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}
.info-grid-item:last-child { border-bottom: none; }
.info-grid-label {
  font-size: 13px;
  color: #6b7280;
}
.info-grid-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
}

/* ── Step Indicator ── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #E2E8F0;
  color: #64748b;
  transition: all var(--transition);
}
.step.active .step-num {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}
.step.completed .step-num {
  background: #10b981;
  color: #fff;
}
.step-label {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
}
.step.active .step-label  { color: var(--color-primary); }
.step.completed .step-label { color: #10b981; }
.step-line {
  width: 40px;
  height: 2px;
  background: #E2E8F0;
  flex-shrink: 0;
  margin-bottom: 16px;
}
.step-line--done { background: #10b981; }

/* ── OTP Input Boxes ── */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  flex-wrap: nowrap;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 4px 0;
  scrollbar-width: none;
}
.otp-inputs::-webkit-scrollbar { display: none; }
.otp-box {
  width: min(52px, calc((100% - 50px) / 6));
  height: 60px;
  min-width: 0;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-dark);
  outline: none;
  transition: all var(--transition);
  caret-color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.otp-box:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
  background: #EFF6FF;
}
.otp-box:not(:placeholder-shown) {
  border-color: var(--color-primary);
  background: #EFF6FF;
}

/* ── Timer Badge ── */
.timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark-700);
  background: #F1F5F9;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 6px 16px;
  transition: all var(--transition);
}
.timer-badge--warning {
  background: #FFF7ED;
  border-color: #FED7AA;
  color: #ea580c;
}
.timer-badge--expired {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #ef4444;
}

/* ── Download file items ── */
.download-file-item { transition: background var(--transition); }
.download-file-item:hover { background: var(--color-surface); }

.file-type-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EFF6FF;
  border-radius: 10px;
  color: var(--color-primary);
  font-size: 18px;
  flex-shrink: 0;
}

.download-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  border-radius: 10px;
  padding: 6px 12px;
  color: var(--color-primary);
  line-height: 1.2;
}
.download-counter--low {
  background: #FFF7ED;
  border-color: #FED7AA;
  color: #ea580c;
}

/* ── Admin Table ── */
.admin-table {
  font-size: 14px;
}
.admin-table thead th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #F8FAFC;
  border-bottom: 2px solid var(--color-border);
  padding: 12px 16px;
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #F1F5F9;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #F8FAFC; }

.badge-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-transfer-progress {
  height: 6px;
  width: 72px;
}

.admin-transfer-progress-bar {
  transition: width var(--transition);
}

/* ── Stat Cards ── */
.stat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-card-hover); }

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-card-icon--blue  { background:#EFF6FF; color:#2563EB; }
.stat-card-icon--green { background:#F0FDF4; color:#16a34a; }
.stat-card-icon--yellow{ background:#FFFBEB; color:#d97706; }
.stat-card-icon--red   { background:#FEF2F2; color:#dc2626; }

.stat-card-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-dark);
  letter-spacing: -1px;
}
.stat-card-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

/* ── Breadcrumb ── */
.breadcrumb { font-size: 14px; }
.breadcrumb-item a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb-item a:hover { text-decoration: underline; }

/* ── Alerts ── */
.alert {
  border-radius: 12px;
  font-size: 14px;
}

/* ── Responsive adjustments ── */
@media (max-width: 576px) {
  .footer-company-logo {
    height: 24px;
    max-width: 160px;
  }
  .otp-box {
    width: min(42px, calc((100% - 35px) / 6));
    height: 52px;
    min-width: 0;
    font-size: 22px;
  }
  .otp-inputs { gap: 7px; }
  .step-line { width: 24px; }
  .stat-card-value { font-size: 22px; }
}

@media (max-width: 400px) {
  .otp-box {
    width: min(36px, calc((100% - 25px) / 6));
    height: 46px;
    min-width: 0;
    font-size: 18px;
    border-radius: 9px;
  }
  .otp-inputs { gap: 5px; }
}
