.whitelist-container {
  .card {
    border: none;
    box-shadow: none;
  }
  .card-header {
    background: transparent;
    border-bottom: none;
    padding: 0 0 16px 0;
  }
  .card-body {
    padding: 0;
  }
  .back-page-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 16px;
    cursor: pointer;
    padding: 6px 10px 6px 0;
    margin-right: 8px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .back-page-btn:hover {
    color: #212529;
  }
  .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
  }
  .form-input.error {
    border-color: #dc3545;
  }
  .address-controls-left {
    display: flex;
    align-items: center;
  }
  .address-controls-right {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .search-container {
    position: relative;
    width: 100%;
  }
  .search-container .fas.fa-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
  }
  .search-container .search-input,
  .search-container .add-address-search {
    padding-left: 2.5rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
  }
  .search-container .search-input:focus,
  .search-container .add-address-search:focus {
    outline: none;
    border-color: #246cf9;
    box-shadow: 0 0 0 3px rgba(36, 108, 249, 0.1);
  }
  .refresh-icon {
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
  }
  .refresh-icon:hover {
    background-color: #e9ecef;
  }
  .create-btn {
    background: #246cf9;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }
  .create-btn:hover {
    background: #0056b3;
  }
  .add-address-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .add-address-title {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0%;
    color: #212529;
    margin-bottom: 24px;
  }
  .btn-add-address {
    background: #246cf9;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .btn-add-address:hover {
    background: #0056b3;
  }
  .add-address-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: 1010;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .add-address-modal.show {
    display: flex;
    opacity: 1;
  }
  .add-address-modal-content {
    background: white;
    border-radius: 16px;
    border: 1px solid #dee2e6;
    padding: 0;
    width: 818px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .add-address-modal-header {
    padding: 20px 25px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .add-address-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    margin: 0;
  }
  .api-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    margin-left: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
  }
  .add-address-modal-close {
    background: #e8e8ed;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .add-address-modal-close:hover {
    background: #d8d8dd;
    color: #212529;
  }
  .add-address-modal-body {
    padding: 20px 25px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .add-address-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 transparent;
  }
  .add-address-list::-webkit-scrollbar {
    width: 4px;
  }
  .add-address-list::-webkit-scrollbar-track {
    background: transparent;
  }
  .add-address-list::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
  }
  .add-address-search {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
  }
  .modal-search-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
  }
  .modal-search-container .fas.fa-search {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 1;
    pointer-events: none;
  }
  .modal-search-container .add-address-search {
    padding-left: 2.25rem;
    margin-bottom: 0;
  }
  .add-address-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    display: flex;
    align-items: center;
  }
  .add-address-item:last-child {
    border-bottom: none;
  }
  .add-address-item:hover {
    background-color: #f8f9fa;
  }
  .add-address-icon {
    margin-right: 10px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .address-icon-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  .address-icon-default {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #727688;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
  }
  .add-address-info {
    flex: 1;
  }
  .add-address-network {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #212529;
    display: inline-block;
  }
  .add-address-form .add-address-network {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .add-address-network img,
  .add-address-network .network-icon-default {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .add-address-network .network-icon-default {
    background: #727688;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
  }
  .back-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .back-btn:hover {
    color: #212529;
  }
  .add-address-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 25px 20px;
  }
  .add-address-form .address-name {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #212529;
    margin-bottom: 12px;
  }
  .addresses-list {
    display: flex;
    flex-direction: column;
  }
  .address-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    position: relative;
  }
  .address-item:hover {
    background-color: #f8f9fa;
    margin: 0 -25px;
    padding-left: 25px;
    padding-right: 25px;
    transition: all 0.2s ease;
  }
  .address-item:last-child {
    border-bottom: none;
  }
  .card-body {
    overflow: visible !important;
  }
  .table-responsive {
    overflow: visible !important;
  }

  .added-address-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    position: relative;
  }
  .added-address-item:hover {
    background-color: #f8f9fa;
    margin: 0 -25px;
    padding-left: 25px;
    padding-right: 25px;
    transition: all 0.2s ease;
  }
  .added-address-item:last-child {
    border-bottom: none;
  }
  .address-info {
    display: flex;
    align-items: center;
    flex: 0 0 30%;
  }
  .address-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: start;
  }
  .coin-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
  }
  .address-amount {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    min-width: 150px;
    text-align: right;
  }
  .address-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
  }
  .action-icon[data-action="deposit"] {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.75rem;
  }
  .action-icon[data-action="deposit"]:hover {
    border-color: #246cf9;
    color: #246cf9;
  }
  .action-icon[data-action="more"] {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    position: relative;
  }
  .action-icon[data-action="more"]:hover {
    color: #246cf9;
  }
  .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 1080;
    overflow: hidden;
    white-space: nowrap;
  }
  .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #333;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
    text-decoration: none;
  }
  .dropdown-item:hover {
    background-color: #f8f9fa;
  }
  .modal-backdrop {
    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: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .modal-backdrop.show {
    display: flex;
    opacity: 1;
  }
  .modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
  }
  .modal-header {
    padding: 20px 25px 0;
    border-bottom: none;
  }
  .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    margin: 0;
  }
  .modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    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;
  }
  .modal-close:hover {
    color: #212529;
  }
  .modal-body {
    padding: 20px 25px;
  }
  .form-group {
    margin-bottom: 20px;
  }
  .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    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);
  }
  .modal-footer {
    padding: 0 25px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
  }
  .btn-cancel {
    background: none;
    color: #327cc8;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  .btn-cancel:hover {
    color: #246cf9;
  }
  .btn-cancel:disabled {
    color: #6c757d;
    cursor: not-allowed;
  }
  .btn-create {
    background: #246cf9;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  .btn-create:hover {
    background: #1d4ed8;
  }
  .btn-create:disabled {
    background: #93c5fd;
    cursor: not-allowed;
  }
  .added-addresses-list {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .delete-wallet-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;
  }
  .delete-wallet-modal.show {
    display: flex;
    opacity: 1;
  }
  .delete-wallet-modal-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: start;
  }
  .delete-wallet-modal-header {
    padding: 20px 25px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .delete-wallet-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    margin: 0;
  }
  .delete-wallet-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;
  }
  .delete-wallet-modal-close:hover {
    color: #212529;
  }
  .delete-wallet-modal-body {
    padding: 20px 25px;
    text-align: start;
  }
  .delete-note {
    display: flex;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #212529;
    padding-top: 20px;
  }
  .warning-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }
  .delete-wallet-modal-footer {
    padding: 0 25px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
  }
  .btn-delete {
    background: #246cf9;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .btn-delete:hover {
    background: #246cf9;
  }
  .btn-delete:disabled {
    background: #6c757d;
    cursor: not-allowed;
  }
}
.address-name {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
  color: #212529;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}
.delete-wallet-modal-body .address-name,
.delete-wallet-modal-body .address-name {
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.address-network-name {
  font-weight: 400;
  color: #6c757d;
}
.address-subtitle {
  font-family: "Inter", sans-serif;
  color: #212529;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}
.delete-wallet-modal-body .address-subtitle {
  margin-left: 15px !important;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
@media (max-width: 600px) {
  .whitelist-container .search-container .search-input,
  .whitelist-container .add-address-search {
    font-size: 12px;
    padding: 8px 12px 8px 2rem;
  }
  .add-address-modal-content,
  .transfer-modal-content,
  .modal-content,
  .delete-wallet-modal-content {
    width: 95%;
    max-width: none;
  }
  .address-item,
  .added-address-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .address-subtitle {
    font-family: "Inter", sans-serif;
    color: #212529;
    size: 14px;
  }
  .address-amount,
  .address-actions {
    text-align: left;
    min-width: auto;
  }
  .amount-section {
    grid-template-columns: 1fr;
  }
  .delete-wallet-modal-title {
    font-size: 24px;
    line-height: 32px;
  }
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.loading-container .spinner-border {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

.loading-text {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

.no-wallets {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.no-wallets-icon {
  font-size: 3rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.no-wallets-text {
  font-size: 18px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.no-wallets-subtext {
  font-size: 14px;
  color: #6c757d;
}

.pagination-info {
  font-size: 14px;
}

.pagination {
  margin: 0;
  gap: 4px;
}

.pagination .page-link {
  color: #6c757d;
  border: 1px solid #dee2e6;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
}

.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;
}

.address-balance {
  text-align: right;
  min-width: 140px;
  width: 140px;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.4;
}

.token-balance {
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.balance-amount {
  color: #6c757d;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Tooltip for action icons */
.action-icon[data-tooltip] {
  position: relative;
}
.action-icon[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 100;
}
.action-icon[data-tooltip]:hover::after {
  opacity: 1;
}
