html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Senders page styles */
.senders-full-width {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  padding-left: 15px;
  padding-right: 15px;
  overflow-x: hidden; /* Prevent horizontal scrollbar */
}

.senders-full-width table {
  width: 100%;
  margin-bottom: 0;
}

.copy-icon {
  cursor: pointer;
  color: #6c757d;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.copyable-text {
  flex: 1;
  min-width: 0;
}

.hidden {
  display: none;
}

/* Transactions Modal Styles */
.transactions-scrollable {
  max-height: 60vh;
  min-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.transactions-scrollable table {
  margin-bottom: 0;
}

.transactions-scrollable table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  padding: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.transactions-scrollable table tbody td {
  padding: 0.75rem;
  vertical-align: middle;
  font-size: 0.9rem;
}

.transactions-scrollable table tbody tr:hover {
  background-color: #f1f3f5;
  cursor: pointer;
}

.transactions-scrollable::-webkit-scrollbar {
  width: 10px;
}

.transactions-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

.transactions-scrollable::-webkit-scrollbar-thumb {
  background: #6c757d;
  border-radius: 5px;
}

.transactions-scrollable::-webkit-scrollbar-thumb:hover {
  background: #495057;
}

#viewTransactionsModal .modal-body {
  padding: 0;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

/* Ensure cancel transaction modal appears above view transactions modal */
#viewTransactionsModal {
  z-index: 1055;
}

#cancelTransactionConfirmModal {
  z-index: 1065 !important;
}

#cancelTransactionConfirmModal.show {
  z-index: 1065 !important;
}

/* Ensure backdrop for nested modal */
body.modal-open .modal-backdrop.show {
  z-index: 1054;
}

body.modal-open #cancelTransactionConfirmModal.show ~ .modal-backdrop {
  z-index: 1059;
}

#viewTransactionsModal .modal-header {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
}

#viewTransactionsModal .modal-footer {
  border-top: 1px solid #dee2e6;
  padding: 0.75rem 1.5rem;
}

#viewTransactionsModal #transactionsContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#viewTransactionsModal #loadMoreTransactionsBtn {
  min-width: 200px;
}

#viewTransactionsModal .bg-light {
  background-color: #f8f9fa !important;
}