/* On-Chain Deposit History Styles */
.onchain-history-container {
    background: #000000;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    border: 1px solid #222222;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.onchain-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 8px;
}

.onchain-history-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #006ba1 0%, #f0b90b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 90px;
}

.onchain-back-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #222222;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.onchain-back-button:hover {
    background: #006ba1;
    transform: translateX(-2px);
}

/* Table Styles */
.onchain-deposits-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.onchain-deposits-table th {
    text-align: left;
    padding: 16px;
    font-weight: 600;
    color: #888888;
    border-bottom: 1px solid #222222;
    font-size: 14px;
}

.onchain-deposits-table td {
    padding: 16px;
    border-bottom: 1px solid #222222;
    font-size: 14px;
}

.onchain-deposit-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Wallet Info */
.wallet-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #006ba1 0%, #f0b90b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0c3f65;
    font-size: 14px;
}

.wallet-details {
    display: flex;
    flex-direction: column;
}

.wallet-type {
    font-weight: 600;
    color: #cccccc;
    font-size: 14px;
}

.wallet-address {
    font-size: 12px;
    color: #888888;
    font-family: monospace;
}

/* Transaction Hash */
.tx-hash-cell {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
    color: #006ba1;
}

.tx-hash {
    font-family: monospace;
    word-break: break-all;
    color: #006ba1;
    font-size: 13px;
}

/* Address Cells */
.address-cell {
    font-family: monospace;
    font-size: 13px;
    color: #cccccc;
}

/* Amount Cell */
.amount-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.amount-value {
    font-weight: 600;
    color: #888888;
    font-size: 14px;
}

.currency-badge {
    background: rgba(0, 107, 161, 0.1);
    color: #006ba1;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Network Badge */
.network-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

.network-bsc {
    background: rgba(240, 185, 11, 0.1);
    color: #f0b90b;
    border: 1px solid rgba(240, 185, 11, 0.3);
}

.network-eth {
    background: rgba(105, 120, 131, 0.1);
    color: #697883;
    border: 1px solid rgba(105, 120, 131, 0.3);
}

.network-tron {
    background: rgba(234, 29, 37, 0.1);
    color: #ea1d25;
    border: 1px solid rgba(234, 29, 37, 0.3);
}

/* Status Badge */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

.status-pending {
    background: rgba(240, 185, 11, 0.1);
    color: #f0b90b;
    border: 1px solid rgba(240, 185, 11, 0.3);
}

.status-confirmed {
    background: rgba(14, 203, 129, 0.1);
    color: #0ecb81;
    border: 1px solid rgba(14, 203, 129, 0.3);
}

.status-credited {
    background: rgba(0, 107, 161, 0.1);
    color: #006ba1;
    border: 1px solid rgba(0, 107, 161, 0.3);
}

.status-failed {
    background: rgba(246, 70, 93, 0.1);
    color: #f6465d;
    border: 1px solid rgba(246, 70, 93, 0.3);
}

.status-rejected {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Explorer Button */
.explorer-btn {
    background: linear-gradient(135deg, #006ba1 0%, #f0b90b 100%);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.explorer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 107, 161, 0.3);
}

.explorer-btn i {
    font-size: 12px;
}

/* Confirmations */
.confirmations {
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirmation-badge {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.confirmations-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.confirmations-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #006ba1 0%, #f0b90b 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Filter Controls */
.onchain-filter-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.onchain-filter-select {
    background: #000000;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    min-width: 150px;
}

.onchain-filter-select:hover {
    border-color: #006ba1;
    box-shadow: 0 0 0 1px rgba(0, 107, 161, 0.3);
}

.onchain-search-input {
    flex: 1;
    min-width: 200px;
    background: #000000;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.onchain-search-input:focus {
    border-color: #006ba1;
    box-shadow: 0 0 0 1px rgba(0, 107, 161, 0.3);
    outline: none;
}

.onchain-search-input::placeholder {
    color: #666666;
}

/* Loading and Empty States */
.onchain-loading {
    text-align: center;
    padding: 40px;
    color: #888888;
    font-size: 16px;
}

.onchain-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888888;
    font-size: 18px;
}

.onchain-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #444;
}

/* Pagination */
.onchain-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 0;
}

.onchain-pagination button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #222222;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.onchain-pagination button:hover:not(:disabled) {
    background: #006ba1;
    transform: translateY(-2px);
}

.onchain-pagination button:disabled {
    background: #222222;
    color: #666666;
    cursor: not-allowed;
    transform: none;
}

.onchain-pagination-info {
    color: #888888;
    font-size: 14px;
}

/* Responsive table */
@media (max-width: 768px) {
    .onchain-deposits-table {
        display: block;
        overflow-x: auto;
    }
    
    .onchain-filter-controls {
        flex-direction: column;
    }
    
    .onchain-search-input {
        min-width: 100%;
    }
    
    .onchain-deposits-table th,
    .onchain-deposits-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .wallet-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .explorer-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Copy functionality */
.copy-btn {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    color: #006ba1;
}

/* Date styling */
.onchain-date {
    color: #888888;
    font-size: 13px;
    white-space: nowrap;
}

/* Search highlight styling */
mark {
    background: linear-gradient(135deg, #006ba1 0%, #f0b90b 100%);
    color: #ffffff;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
}

/* Clear search button */
.clear-search-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #222222;
    color: #888888;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: -1px;
}

.clear-search-btn:hover {
    background: rgba(246, 70, 93, 0.1);
    border-color: #f6465d;
    color: #f6465d;
}

.clear-search-btn:hover i {
    transform: rotate(90deg);
}

/* Search tips */
.search-tips {
    width: 100%;
    font-size: 12px;
    color: #888888;
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-tips i {
    margin-right: 4px;
    color: #006ba1;
}

/* Search results info */
.search-results-info {
    color: #888888;
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 107, 161, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 107, 161, 0.2);
}

.search-results-info i {
    color: #006ba1;
}

.search-results-info button {
    background: none;
    border: none;
    color: #f6465d;
    cursor: pointer;
    margin-left: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.search-results-info button:hover {
    color: #ff6b6b;
    transform: translateY(-1px);
}

/* Enhanced search input */
.onchain-search-input:focus {
    box-shadow: 0 0 0 2px rgba(0, 107, 161, 0.3);
}

/* Make the search container more prominent */
.onchain-filter-controls {
    /* background: rgba(255, 255, 255, 0.02); */
    padding: 16px;
    border-radius: 12px;
    /* border: 1px solid #222222; */
    margin-bottom: 24px;
}