/* Page specific styles */
.bpage .content-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bpage section {
  grid-column: span 12;
  margin-bottom: 2rem;
}

.bpage .transfer-form-section {
  grid-column: span 12;
  margin: 0 auto 1.5rem;
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2.5rem;
}

.bpage .transfer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.bpage .form-group {
  margin-bottom: 1.5rem;
}

.bpage .select-label, .bpage .input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* Improved page header */
.bpage .page-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.bpage .page-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.bpage .page-description {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

 

.bpage .account-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--secondary-color);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.bpage .account-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  outline: none;
}

.bpage .account-details {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-light);
  display: none;
  background: rgba(59, 130, 246, 0.03);
  padding: 0.5rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--primary-color);
}

.bpage .account-balance {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 17px;
}

.bpage .amount-input-container, .bpage .date-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.bpage .currency-symbol {
  position: absolute;
  left: 0.75rem;
  font-size: 1rem;
  color: var(--text-dark);
}

.bpage .amount-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 1.75rem;
  border: 1.5px solid var(--secondary-color);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.bpage .amount-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  outline: none;
}

.bpage .date-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--secondary-color);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.bpage .date-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  outline: none;
}

.bpage .amount-in-words {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
  padding: 0.375rem 0;
}

.bpage .date-options {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.bpage .date-option-btn {
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--secondary-color);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bpage .date-option-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
}

.bpage .date-option-btn.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.bpage .text-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--secondary-color);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.bpage .text-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  outline: none;
}

.bpage .frequency-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.bpage .frequency-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.5rem 0.875rem;
  border-radius: 30px;
  border: 1.5px solid var(--secondary-color);
  transition: all 0.2s ease;
}

.bpage .frequency-option:hover {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.03);
}

.bpage .frequency-option input[type="radio"] {
  margin: 0;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.bpage .frequency-option label {
  margin: 0;
  font-size: 0.9375rem;
  cursor: pointer;
}

.bpage .recurring-options {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--secondary-color);
}

.bpage .form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 400px;
}

.bpage .transfer-btn, .bpage .cancel-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.bpage .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #1e70f0);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.bpage .btn-primary:hover {
  background: linear-gradient(135deg, #1e70f0, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.35);
}

.bpage .btn-outline {
  background: var(--white);
  color: var(--text-dark);
  border: 1.5px solid var(--secondary-color);
  cursor: pointer;
  font-weight: 500;
}

.bpage .btn-outline:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Recent transfers section */
.bpage .recent-transfers {
  grid-column: span 12;
  margin-bottom: 2rem;
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.bpage .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bpage .section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 0.25rem;
}



.bpage .section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 10rem;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.bpage .section-action {
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s ease;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
}

.bpage .section-action:hover {
  color: var(--primary-dark);
  transform: translateX(3px);
  background: rgba(59, 130, 246, 0.05);
}

.bpage .transfers-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bpage .transfer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  background-color: var(--white);
}

.bpage .transfer-item:hover {
  background-color: rgba(59, 130, 246, 0.03);
  transform: translateX(2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bpage .transfer-details {
  flex: 1;
}

.bpage .transfer-accounts {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.bpage .transfer-from, .bpage .transfer-to {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
}

.bpage .transfer-arrow {
  color: var(--text-light);
  font-size: 0.75rem;
}

.bpage .transfer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.bpage .transfer-amount {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-right: 1.5rem;
  background: rgba(59, 130, 246, 0.03);
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
}

.bpage .transfer-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.bpage .transfer-status.completed {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.bpage .transfer-status.pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.bpage .transfer-status.failed {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.bpage .loading-transfers, .bpage .no-transfers {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  background: rgba(59, 130, 246, 0.02);
  border-radius: var(--radius);
}

/* Confirmation Modal */
.bpage .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.bpage .modal-content {
  background-color: #fff;
  margin: 5% auto;
  width: 90%;
  max-width: 500px;
  border-radius: var(--card-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease-out;
  overflow: hidden;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bpage .modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--secondary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(59, 130, 246, 0.02);
}

.bpage .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.bpage .close-modal {
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.bpage .close-modal:hover {
  color: var(--danger-color);
  background: rgba(239, 68, 68, 0.1);
}

.bpage .modal-body {
  padding: 1.5rem;
}

.bpage .confirmation-details {
  margin-bottom: 1.5rem;
}

.bpage .confirmation-row {
  display: flex;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bpage .confirmation-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.bpage .confirmation-label {
  width: 150px;
  font-weight: 500;
  color: var(--text-light);
}

.bpage .confirmation-value {
  flex: 1;
  font-weight: 500;
  color: var(--text-dark);
}

.bpage .confirmation-disclaimer {
  background-color: rgba(59, 130, 246, 0.05);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  border-left: 3px solid var(--primary-color);
}

.bpage .confirmation-disclaimer i {
  color: var(--primary-color);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.bpage .confirmation-disclaimer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
}

.bpage .modal-actions {
  display: flex;
  gap: 1rem;
}

.bpage .modal-actions button {
  flex: 1;
  padding: 0.875rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bpage .modal-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Success Modal */
.bpage .success-animation {
  text-align: center;
  margin: 1.5rem 0;
}

.bpage .success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--success-color), #34d399);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
  position: relative;
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bpage .success-icon::before {
  content: '';
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: 50%;
  border: 2px solid var(--success-color);
  opacity: 0;
  animation: rippleSuccess 1.5s infinite;
}

.bpage .success-icon i {
  animation: checkmark 0.8s cubic-bezier(0.65, 0, 0.45, 1) forwards;
  transform: scale(0);
}

.bpage .success-message {
  text-align: center;
  margin-bottom: 1.5rem;
}

.bpage .success-message h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.bpage .success-message p {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.bpage #success-amount, .bpage #success-from, .bpage #success-to, .bpage #success-reference-number {
  font-weight: 600;
  color: var(--text-dark);
}

.bpage #success-reference {
  font-size: 0.875rem;
  background-color: rgba(59, 130, 246, 0.05);
  padding: 0.75rem;
  border-radius: var(--radius);
  display: inline-block;
  margin-top: 0.5rem;
  border-left: 3px solid var(--primary-color);
}

/* Animation for slide-in effect */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.bpage .animate-slide-in {
  opacity: 0;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes rippleSuccess {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .bpage .transfer-form-grid {
    grid-template-columns: 1fr;
  }
  
  .bpage .form-actions {
    flex-direction: column;
    max-width: 100%;
  }
  
  .bpage .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .bpage .transfer-form-section,
  .bpage .recent-transfers {
    padding: 1.5rem;
  }
  
  .bpage .page-header {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .bpage .frequency-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .bpage .transfer-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .bpage .transfer-amount {
    margin: 0.5rem 0;
  }
  
  .bpage .confirmation-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .bpage .confirmation-label {
    width: auto;
  }
  
  .bpage .modal-actions {
    flex-direction: column;
  }
  
  .bpage .frequency-option {
    width: 100%;
  }
}

/* Loading Spinner CSS */
.bpage .loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(45, 40, 40, 0.36);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  display: none;
  backdrop-filter: blur(2px);
  border-radius: var(--card-radius);
}

.bpage .spinner {
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hover effects and microinteractions */
.bpage .account-select:hover,
.bpage .amount-input:hover,
.bpage .date-input:hover,
.bpage .text-input:hover {
  border-color: var(--primary-color);
}

/* Feedback classes for form validation */
.bpage .form-group.success .account-select,
.bpage .form-group.success .amount-input,
.bpage .form-group.success .date-input,
.bpage .form-group.success .text-input {
  border-color: var(--success-color);
  background: rgba(16, 185, 129, 0.02);
}

.bpage .form-group.error .account-select,
.bpage .form-group.error .amount-input,
.bpage .form-group.error .date-input,
.bpage .form-group.error .text-input {
  border-color: var(--danger-color);
  background: rgba(239, 68, 68, 0.02);
}

.bpage .form-group.error .error-message {
  color: var(--danger-color);
  font-size: 0.75rem;
  margin-top: 0.375rem;
}

/* Helper text styles */
.bpage .helper-text {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.375rem;
}


/* Improve underline styling for navigation/tabs */
.bpage .tab-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.bpage .tab-underline:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%; /* Make the underline span the full width of the text */
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* For the currently active tab */
.bpage .tab-underline.active:after {
  background-color: var(--primary-color);
}

/* For inactive tabs */
.bpage .tab-underline:not(.active):after {
  background-color: transparent;
}

/* Hover effect for inactive tabs */
.bpage .tab-underline:not(.active):hover:after {
  background-color: rgba(59, 130, 246, 0.3);
}

/* Tab container styling */
.bpage .tabs-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
}

.bpage .tab-item {
  cursor: pointer;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.bpage .tab-item:hover {
  color: var(--primary-color);
}

.bpage .tab-item.active {
  font-weight: 600;
  color: var(--primary-color);
}