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

.carousel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.assets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.assets-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.total-balance {
  font-size: 28px;
  font-weight: 600;
  color: black;
  margin-left: 1rem;
}

.search-section {
  margin-bottom: 2rem;
}

.search-container {
  position: relative;
  max-width: 400px;
}

.search-container .fas.fa-search {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
}

.search-container .form-control {
  padding-left: 3rem;
  border-radius: 0.375rem;
}

.asset-carousel {
  margin-bottom: 3rem;
  width: 98%;
}

.asset-card {
  background: linear-gradient(135deg, #1e88e5, #1565c0);
  border-radius: 0.75rem;
  padding: 1rem;
  color: white;
  margin-right: 1rem;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.asset-card.bitcoin {
  background: linear-gradient(135deg, #f7931a, #e67e22);
}

.asset-card.litecoin {
  background: linear-gradient(135deg, #345d9d, #2c3e50);
}

.asset-card.binance {
  background: linear-gradient(135deg, #f3ba2f, #f39c12);
}

.asset-card.ethereum {
  background: linear-gradient(135deg, #627eea, #5e72e4);
}

.asset-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.asset-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #6c757d;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.asset-name {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.asset-amount {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.asset-value {
  font-size: 0.75rem;
  opacity: 0.8;
}

.swiper-button-next,
.swiper-button-prev {
  color: #b7b8bf !important;
  width: 56px !important;
  height: 56px !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-prev {
  left: -40px;
}

.swiper-button-next {
  right: -40px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 14px !important;
}

.accounts-section {
  background: #f9fafb;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

/* Overflow fix for dropdown */
.card-body {
  overflow: visible !important;
}

.table-responsive {
  overflow: visible !important;
}

.accounts-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.accounts-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.accounts-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-search {
  position: relative;
  min-width: 250px;
}

.filter-search .fas.fa-search {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.875rem;
}

.filter-search .form-control {
  padding-left: 2.5rem;
  font-size: 0.875rem;
  border-color: #d1d5db;
}

/* Custom Dropdown */
.custom-dropdown {
  position: relative;
  display: inline-block;
}

.custom-dropdown .dropdown-btn {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  color: #374151;
  font-weight: 500;
  outline: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  justify-content: space-between;
}

.custom-dropdown .dropdown-btn:hover {
  border-color: #246cf9;
  background-color: #f8f9fa;
}

.custom-dropdown .dropdown-arrow {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.custom-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.custom-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-width: 100%;
  z-index: 1000;
  display: none;
  padding: 8px;
}

.custom-dropdown.open .dropdown-menu {
  display: block;
}

.custom-dropdown .dropdown-option {
  padding: 10px 14px;
  font-size: 14px;
  color: #212529;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.custom-dropdown .dropdown-option:hover {
  background: #e8f0fe;
}

.custom-dropdown .dropdown-option.selected {
  background: #e8f0fe;
  font-weight: 500;
}

.archived-accounts-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.archived-accounts-btn:hover {
  border-color: #246cf9;
  background-color: #f8f9fa;
}

.archived-accounts-btn .archived-checkbox {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background-color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  font-size: 10px;
  flex-shrink: 0;
}

.archived-accounts-btn .archived-checkbox::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.archived-accounts-btn.active .archived-checkbox {
  background-color: #246cf9;
  border-color: #246cf9;
}

.archived-accounts-btn.active .archived-checkbox::before {
  opacity: 1;
  color: white;
}

.accounts-table {
  margin: 0;
  overflow: visible;
}

.accounts-table th {
  font-weight: 500;
  color: #6b7280;
  border-bottom: 1px solid #f1f3f4;
  padding: 1rem 1.5rem;
  background-color: #f9fafb;
  font-size: 0.875rem;
}

.accounts-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
  font-size: 0.875rem;
  position: relative;
}

.accounts-table td:last-child {
  text-align: right;
  width: 200px;
}

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

.account-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


.account-details {
  flex: 1;
}

.account-name a {
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.125rem;
  text-decoration: none;
}

.account-type {
  color: #6b7280;
  font-size: 0.75rem;
}

.balance-amount {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.125rem;
}

.balance-value {
  color: #6b7280;
  font-size: 0.75rem;
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.action-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.action-btn.action-btn-detail {
  border: none;
}

.action-btn.action-btn-disabled {
  cursor: not-allowed;
  opacity: 0.4;
  pointer-events: none;
}

.action-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.action-btn.primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 100;
}

[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1f2937;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 100;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
  opacity: 1;
}

.action-btn-disabled[data-tooltip] {
  pointer-events: auto;
}

.action-btn-disabled[data-tooltip]:hover::after,
.action-btn-disabled[data-tooltip]:hover::before {
  opacity: 1;
}

.price-indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.price-value {
  font-weight: 500;
}

.price-change {
  color: #6b7280;
}

.price-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .assets-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .total-balance {
    margin-left: 0;
    font-size: 1.5rem;
  }

  .accounts-filters {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .filter-search {
    width: 100%;
  }

  .accounts-table th,
  .accounts-table td {
    padding: 0.75rem 0.5rem;
  }

  .account-actions {
    flex-direction: column;
    gap: 0.25rem;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
}

.deposit-address-container {
  text-align: left;
  position: relative;
  padding: 1rem;
  box-sizing: border-box;
}

.deposit-address-name-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 12px;
}

.deposit-address-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.deposit-address-type {
  font-weight: 700;
  font-size: 28px;
  color: #424242;
  margin-bottom: 12px;
}

.deposit-address-box {
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 12px;
  margin: 40px 0 20px 0;
  position: relative;
}

.deposit-address-title {
  font-weight: 600;
  font-size: 20px;
  color: #374151;
  margin-bottom: 8px;
}

.deposit-address-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  flex-wrap: nowrap;
}

.deposit-address-text {
  word-break: break-all;
  font-size: 20px;
  color: #b7b8bf;
  min-width: 0;
}

.deposit-address-copy {
  cursor: pointer;
  color: #6b7280;
  font-size: 16px;
}

.deposit-address-copy:hover {
  color: var(--primary-color);
}

.deposit-address-qr {
  position: absolute;
  top: 24px;
  right: 12px;
  cursor: pointer;
  color: #6b7280;
  font-size: 16px;
}

.deposit-address-qr:hover {
  color: var(--primary-color);
}

.deposit-address-qr-image {
  margin-top: 12px;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swal2-popup {
  width: 90%;
  min-width: 400px;
  max-width: 800px;
  border-radius: 16px !important;
  box-sizing: border-box;
}

.swal2-close {
  display: none !important;
}

.deposit-address-swal-container {
  pointer-events: none !important;
}

.deposit-address-swal-container .swal2-popup {
  pointer-events: auto;
}

.custom-close {
  position: absolute;
  top: 12px;
  right: 12px;
  cursor: pointer;
  color: #6c757d;
  font-size: 14px;
  z-index: 10;
  background: #e8e8ed;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-close:hover {
  background: #d8d8dd;
  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;
  }
}

/* Additional Assets page specific styles */
.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.asset-carousel {
  position: relative;
  min-height: 200px;
}

.loading-spinner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #333;
}

.loading-spinner i {
  font-size: 20px;
  color: #007bff;
}

.asset-card:not(.selected) {
  background: #ffffff !important;
  border: 1px solid #d1d5db;
  color: #212529 !important;
}

.asset-card:not(.selected) .asset-name,
.asset-card:not(.selected) .asset-amount,
.asset-card:not(.selected) .asset-value {
  color: #212529 !important;
  opacity: 1 !important;
}

.asset-card.selected {
  background: linear-gradient(90deg, #327CC8 0%, #193D62 100%) !important;
  box-shadow: 0 4px 16px rgba(25, 61, 98, 0.5) !important;
  border: none;
  color: #ffffff !important;
}

.asset-card.selected .asset-name,
.asset-card.selected .asset-amount,
.asset-card.selected .asset-value {
  color: #ffffff !important;
  opacity: 1 !important;
}

.asset-card.selected .asset-icon {
  filter: brightness(1.3);
}

.pagination .page-link {
  color: #6c757d;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}
