:root {
  --primary-color: #0066ff;
  --secondary-color: #6c757d;
  --success-color: #20c997;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

.custom-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--success-color);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  animation:
    slideIn 0.3s ease,
    slideOut 0.3s ease 1.7s;
}

.custom-toast.error {
  background-color: var(--danger-color);
}

.custom-toast::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
}

.custom-toast.error::before {
  content: "\f071";
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.nav-tabs {
  display: flex;
  width: 370px;
  align-items: center;
  gap: 1rem;
}

.nav-tab {
  background: none;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #6c757d;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-tab.active {
  color: #246cf9;
  border-bottom: 2px solid #246cf9;
}

.nav-tab:hover {
  color: #0056d6;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 10px;
  justify-content: flex-end;
}

.page-action-icon {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.page-action-icon:hover {
  opacity: 0.8;
}

.generate-report-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 500;
  padding: 0.5rem 0;
}

.generate-report-btn:hover {
  color: #0056d6;
  text-decoration: underline;
}

.transaction-table th {
  font-weight: 700;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 0.75rem;
  color: #246cf9;
  font-family: "Inter", sans-serif;
  background-color: #eff5fb;
  font-size: 0.875rem;
}

.transaction-table th:last-child,
.transaction-table td:last-child {
  width: 120px;
  text-align: center;
}

.transaction-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
  font-size: 0.875rem;
}

.transaction-table tbody tr:hover {
  background-color: rgba(0, 102, 255, 0.02);
  cursor: pointer;
}

.source-destination {
  font-weight: 500;
  color: #374151;
}

.destination-address {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.amount-value {
  color: #111827;
}

.asset-token {
  color: #6b7280;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-indicator {
  font-size: 8px;
  display: inline-block;
  border-radius: 50%;
}

.status-badge.submitted .status-indicator,
.status-badge.pending .status-indicator {
  color: #d97706;
}

.status-badge.broadcasting .status-indicator,
.status-badge.confirming .status-indicator,
.status-badge.approved .status-indicator {
  color: #0066ff;
}

.status-badge.waiting_for_gas .status-indicator {
  color: #d97706;
}

.status-badge.completed .status-indicator {
  color: #059669;
}

.status-badge.rejected .status-indicator,
.status-badge.failed .status-indicator {
  color: #b9302f;
}

.status-badge.success .status-indicator {
  color: #059669;
}

.status-badge.cancelled .status-indicator {
  color: #212529;
}

.status-header-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #9ca3af;
  color: #9ca3af;
  font-size: 10px;
  font-style: italic;
  font-weight: 600;
  margin-left: 5px;
  cursor: pointer;
  vertical-align: middle;
  line-height: 1;
  position: relative;
  top: -2px;
}

.status-header-info:hover {
  border-color: #6b7280;
  color: #6b7280;
}

.status-tooltip-content div {
  padding: 3px 0;
  font-size: 12px;
  line-height: 1.5;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.status-dot.success {
  background-color: #059669;
}
.status-dot.failed {
  background-color: #b9302f;
}
.status-dot.submitted {
  background-color: #d97706;
}
.status-dot.pending {
  background-color: #d97706;
}
.status-dot.approved {
  background-color: #0066ff;
}
.status-dot.cancelled {
  background-color: #212529;
}
.status-dot.rejected {
  background-color: #b9302f;
}

.status-tooltip-wide .tooltip-inner {
  max-width: 480px;
  text-align: left;
}

.transaction-table th:nth-last-child(2) {
  text-align: center;
}

.transaction-table td:nth-last-child(2) {
  text-align: center;
}

.transaction-table td:nth-last-child(2) .status-badge {
  display: inline-flex;
  margin: 0 auto;
}

/* .status-badge.rejected .status-indicator,
.status-badge.failed .status-indicator {
  background-color: #b9302f;
} */

.initiator-name {
  font-weight: 500;
  color: #374151;
}

.date-time {
  color: #6b7280;
  font-size: 0.8rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
}

.empty-state h3 {
  color: #374151;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.action-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.action-icon:hover {
  opacity: 0.8;
}

.action-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-retry {
  background: linear-gradient(180deg, #417ced 0%, #1f63e9 100%);
  color: white;
  border: none;
  width: 66px;
  height: 26px;
  padding: 0 20px;
  border-radius: 8px;
  gap: 5px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-retry:hover {
  background: linear-gradient(180deg, #417ced 0%, #1f63e9 100%);
  opacity: 0.9;
}

.btn-retry:active {
  background: linear-gradient(180deg, #417ced 0%, #1f63e9 100%);
}

.btn-retry:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.expand-icon {
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

.expand-icon img {
  transition: opacity 0.2s ease;
}

.expand-icon img:hover {
  opacity: 0.8;
}

.expanded-row {
  background-color: #f8f9fa;
}

.expanded-row td {
  padding: 1rem;
  border-top: none;
}

.transaction-table tbody tr {
  background: #eff5fb;
}

.expanded-row .details-content {
  display: flex;
  flex-wrap: nowrap;
  text-align: start;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 4px;
}

.expanded-row .details-column {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.expanded-row .details-column .detail-item {
  margin-bottom: 0.5rem;
}

.expanded-row .details-column .detail-item strong {
  color: #374151;
  display: block;
  margin-bottom: 0.25rem;
}

.expanded-row .details-column .detail-item .status-badge {
  display: inline-flex;
  align-items: center;
}

.expanded-row .details-column .detail-item .address {
  word-break: break-all;
}

.note-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.note-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.note-content {
  color: #374151;
  font-size: 0.875rem;
  word-break: break-word;
}

.edit-icon {
  width: 16px;
  height: 16px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  vertical-align: middle;
}

.edit-icon:hover {
  opacity: 1;
}

/* Edit Note Modal Styles */
.edit-note-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1030;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  visibility: hidden;
}

.edit-note-modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.edit-note-modal-content {
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.edit-note-modal.show .edit-note-modal-content {
  opacity: 1;
}

.edit-note-modal-header {
  padding: 20px 25px;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.edit-note-modal-title {
  font-size: 32px;
  font-weight: 700;
  color: #424242;
  margin: 0;
  font-family: "Inter", sans-serif;
}

.edit-note-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 20px;
  right: 25px;
}

.edit-note-modal-close:hover {
  color: #212529;
}

.edit-note-modal-body {
  padding: 20px 25px;
  text-align: start;
}

.edit-note-modal-footer {
  padding: 0 25px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-cancel {
  background: white;
  color: #327cc8;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background-color: none;
  border-color: none;
}

.btn-save {
  background: #327cc8;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-save:hover {
  background: #0056b3;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #357cfb;
  font-weight: bold;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #246cf9;
  box-shadow: 0 0 0 3px rgba(36, 108, 249, 0.1);
}

.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-input.error {
  border-color: #dc3545;
}

/* Filter Modal Styles */
.filter-modal {
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1030;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  visibility: hidden;
}

.filter-modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.filter-modal-content {
  background: white;
  border-radius: 12px;
  width: 40%;
  right: 10px !important;
  max-width: 800px;
  max-height: 95vh;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

#pendingFilterModal .filter-modal-content {
  max-width: 400px;
  width: 25%;
  min-width: 350px;
  transform: none;
  top: 2.5%;
}

.filter-modal-header {
  padding: 20px 25px;
  border-bottom: none;
  display: flex;
  border-radius: 12px 12px 0px 0px;
  background-color: #357cfb;
  justify-content: space-between;
  align-items: center;
}

.filter-modal-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin: 0;
  font-family: "Inter", sans-serif;
}

.filter-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 20px;
  right: 25px;
}

.filter-modal-close:hover {
  color: #212529;
}

.filter-modal-body {
  padding: 20px 25px;
  text-align: start;
  overflow-y: auto;
  flex: 1;
}

.filter-columns {
  display: flex;
}

.filter-left-column,
.filter-right-column {
  flex: 1;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #357cfb;
  margin-bottom: 0.75rem;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

.filter-checkbox {
  width: 16px;
  height: 16px;
}

.date-range,
.amount-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-separator,
.amount-separator {
  font-size: 16px;
  color: #6c757d;
}

.filter-modal-footer {
  padding: 0 25px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-reset {
  background: white;
  color: #357cfb;
  border: 1px solid #357cfb;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset:hover {
  background: #f8f9fa;
}

.btn-filter {
  background: #357cfb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filter:hover {
  background: #0056d6;
}

/* Custom Radio as Checkbox */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.custom-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 16px;
  height: 16px;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  background-color: white;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.custom-radio input:checked ~ .checkmark {
  background-color: #246cf9;
  border-color: #246cf9;
}

.custom-radio input:checked ~ .checkmark:after {
  content: "✓";
  color: white;
  font-weight: bold;
  font-size: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.custom-radio:hover .checkmark {
  border-color: #246cf9;
}

/* Clear button style */
.clear-radio {
  color: #6c757d;
  font-style: italic;
}

.clear-radio .checkmark {
  border-style: dashed;
}

.clear-radio input:checked ~ .checkmark {
  background-color: transparent;
  border-color: #6c757d;
}

.clear-radio input:checked ~ .checkmark:after {
  content: "✕";
  color: #6c757d;
  font-weight: normal;
}

/* SweetAlert2 Custom Styles */
.swal-custom-popup {
  font-family: "Inter", sans-serif;
  border-radius: 16px;
  position: relative;
}

.swal-custom-popup .swal2-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  background-color: #e8e8ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #6c757d;
  transition: background-color 0.2s;
}

.swal-custom-popup .swal2-close:hover {
  background-color: #d1d5db;
}

.swal-custom-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0%;
  text-align: center;
  color: #424242;
}

.btn-custom {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-custom-approve,
.btn-custom-reject,
.btn-custom-cancel {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  width: 150px;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  padding: 10px 20px;
  border-radius: 8px;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-custom-approve {
  background-color: #327cc8;
}

.btn-custom-approve:hover {
  background-color: #2a6ba8;
}

.btn-custom-reject {
  background-color: #b9302f;
}

.btn-custom-reject:hover {
  background-color: #992828;
}

.btn-custom-cancel {
  background: #e2e2ec;
  color: #424242;
  border: none;
}

.btn-custom-cancel:hover {
  background: #d0d0da;
  border: none;
}

.swal2-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Pagination Styles */
.pagination-info {
  font-size: 14px;
}

.pagination {
  margin: 0;
}

.pagination .page-link {
  color: #6c757d;
  border: 1px solid #dee2e6;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  margin: 0 0.125rem;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  color: #246cf9;
  background-color: #e9ecef;
  border-color: #246cf9;
  text-decoration: none;
}

.pagination .page-item.active .page-link {
  background-color: #246cf9;
  border-color: #246cf9;
  color: white;
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
  cursor: not-allowed;
}

.pagination .page-item:first-child .page-link {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.pagination .page-item:last-child .page-link {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

/* Loading Spinner */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Asset Select Dropdown Styles */
.asset-select-wrapper {
  position: relative;
  width: 100%;
}

.asset-select-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s ease;
  position: relative;
}

.asset-select-input:hover {
  border-color: #246cf9;
}

.asset-select-input.active {
  border-color: #246cf9;
  box-shadow: 0 0 0 3px rgba(36, 108, 249, 0.1);
}

.asset-select-placeholder {
  color: #6c757d;
  flex: 1;
}

.asset-select-input.has-selection .asset-select-placeholder {
  color: #212529;
}

.asset-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 12px;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.asset-select-input.active .asset-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.asset-dropdown {
  position: relative;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 4px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease;
}

.asset-dropdown.show {
  max-height: 300px;
  opacity: 1;
}

.asset-search-wrapper {
  padding: 12px;
  border-bottom: 1px solid #dee2e6;
}

.asset-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.asset-search-input:focus {
  border-color: #246cf9;
  box-shadow: 0 0 0 2px rgba(36, 108, 249, 0.1);
}

.asset-options {
  max-height: 220px;
  overflow-y: auto;
  padding: 8px 0;
}

.asset-option {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  gap: 12px;
}

.asset-option:hover {
  background-color: #f8f9fa;
}

.asset-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #246cf9;
  margin: 0;
}

.asset-option-label {
  flex: 1;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-option-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.asset-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.asset-option-name {
  font-weight: 500;
  color: #212529;
}

.asset-option-symbol {
  font-size: 12px;
  color: #6c757d;
}

.asset-loading {
  padding: 20px;
  text-align: center;
  color: #6c757d;
  font-size: 14px;
}

.asset-no-results {
  padding: 20px;
  text-align: center;
  color: #6c757d;
  font-size: 14px;
}
