/* Portal Layout — Customer Self-Service Portal */
.portal-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-navbar {
  background-color: #fff;
  border-bottom: 1px solid #e3e6f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.portal-navbar .navbar-brand img {
  max-height: 36px;
}

.portal-navbar .nav-link {
  color: #525f7f;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  transition: color 0.15s ease;
}

.portal-navbar .nav-link:hover,
.portal-navbar .nav-link.active {
  color: #0d6efd;
}

.portal-navbar .nav-link i {
  margin-right: 0.375rem;
  font-size: 1rem;
  vertical-align: -1px;
}

.portal-content {
  flex: 1;
  padding: 1.5rem 0;
  background-color: #f5f7fb;
}

/* Dashboard Cards */
.portal-stat-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.portal-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* KYC Status Tracker */
.kyc-tracker {
  display: flex;
  align-items: center;
  gap: 0;
}

.kyc-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.kyc-step::after {
  content: '';
  position: absolute;
  top: 16px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: #dee2e6;
  z-index: 0;
}

.kyc-step:last-child::after {
  display: none;
}

.kyc-step.completed::after {
  background-color: #198754;
}

.kyc-step.active::after {
  background: linear-gradient(to right, #198754 50%, #dee2e6 50%);
}

.kyc-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
  background-color: #dee2e6;
  color: #6c757d;
}

.kyc-step.completed .kyc-dot {
  background-color: #198754;
  color: #fff;
}

.kyc-step.active .kyc-dot {
  background-color: #0d6efd;
  color: #fff;
}

/* Transaction Timeline */
.tx-timeline {
  position: relative;
  padding-left: 2rem;
}

.tx-timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #dee2e6;
}

.tx-timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}

.tx-timeline-dot {
  position: absolute;
  left: -1.625rem;
  top: 0.125rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #dee2e6;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #dee2e6;
}

.tx-timeline-item.completed .tx-timeline-dot {
  background-color: #198754;
  box-shadow: 0 0 0 2px #198754;
}

.tx-timeline-item.active .tx-timeline-dot {
  background-color: #0d6efd;
  box-shadow: 0 0 0 2px #0d6efd;
}

/* Wizard Steps */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: #dee2e6;
}

.wizard-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.wizard-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background-color: #dee2e6;
  color: #6c757d;
}

.wizard-step.completed .wizard-step-number {
  background-color: #198754;
  color: #fff;
}

.wizard-step.active .wizard-step-number {
  background-color: #0d6efd;
  color: #fff;
}

.wizard-step-label {
  font-size: 0.75rem;
  color: #6c757d;
}

.wizard-step.active .wizard-step-label,
.wizard-step.completed .wizard-step-label {
  color: #212529;
  font-weight: 500;
}

/* Quick Send Cards */
.quick-send-card {
  cursor: pointer;
  border: 1px solid #e3e6f0;
  border-radius: 0.625rem;
  padding: 1rem;
  text-align: center;
  transition: all 0.15s ease;
}

.quick-send-card:hover {
  border-color: #0d6efd;
  box-shadow: 0 2px 8px rgba(13,110,253,0.15);
}

/* Rate Display */
.rate-ticker {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

/* Responsive Touch Targets */
@media (max-width: 768px) {
  .portal-content {
    padding: 1rem 0;
  }

  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .portal-navbar .nav-link {
    padding: 0.75rem 1rem;
  }

  .wizard-step-label {
    font-size: 0.625rem;
  }
}

/* Beneficiary Card */
.beneficiary-card {
  border: 1px solid #e3e6f0;
  border-radius: 0.75rem;
  padding: 1rem;
  transition: box-shadow 0.15s ease;
}

.beneficiary-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.beneficiary-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  background-color: #e8f0fe;
  color: #0d6efd;
}

/* Alert Form */
.rate-alert-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* FAQ Accordion */
.faq-accordion .accordion-button:not(.collapsed) {
  color: #0d6efd;
  background-color: #f0f6ff;
}

/* Portal Footer */
.portal-footer {
  background-color: #fff;
  border-top: 1px solid #e3e6f0;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: #6c757d;
}
