/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    color: #333;
    line-height: 1.6;
}

/* App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 30px;
}

.nav-link i {
    margin-right: 10px;
    width: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    background-color: #f5f6fa;
}

.top-header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e6ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-header h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Content Sections */
.content-section {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease-in;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

/* Smaller font size for XSO stock display */
#xso-stock {
    font-size: 1.2rem !important;
}
/* Smaller font size for XSO stock display */
#usdt-funding {
    font-size: 1.2rem !important;
}

.stat-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Network Status */
.network-status {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.network-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.network-name {
    font-weight: 500;
    color: #2c3e50;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.status-indicator.online {
    color: #27ae60;
}

.status-indicator.offline {
    color: #e74c3c;
}

.status-indicator.checking {
    color: #f39c12;
}

/* Activity List */
.activity-list {
    max-height: 600px;
    overflow-y: auto;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
}

.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.activity-item {
    background: white;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-item.enhanced {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
}

/* Activity Icons */
.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
    position: relative;
}

.activity-icon.invoice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-left-color: #667eea;
}

.activity-icon.completion {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-left-color: #11998e;
}

.activity-icon.incoming {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-left-color: #11998e;
}

.activity-icon.outgoing {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    border-left-color: #ff6b6b;
}

.activity-icon.processing {
    background: linear-gradient(135deg, #ffd93d 0%, #ff9d00 100%);
    border-left-color: #ffd93d;
}

/* Activity Content */
.activity-content {
    flex-grow: 1;
    min-width: 0;
}

.activity-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.activity-title {
    font-weight: 600;
    font-size: 1rem;
    color: #2c3e50;
}

.activity-id {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #7f8c8d;
    background: #ecf0f1;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.activity-id:hover {
    background: #d5dbdb;
}

.activity-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.activity-amount {
    font-weight: 600;
    font-size: 1rem;
    color: #27ae60;
}

.activity-amount-outgoing {
    font-weight: 600;
    font-size: 1rem;
    color: #e74c3c;
}

.activity-secondary {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-style: italic;
}

.activity-progress {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #ecf0f1;
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Activity Time */
.activity-time {
    text-align: right;
    flex-shrink: 0;
    min-width: 100px;
}

.time-ago {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 4px;
}

.exact-time {
    display: block;
    font-size: 0.75rem;
    color: #95a5a6;
}

/* Enhanced Chips */
.network-chip, .status-chip, .tx-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.network-chip {
    background: #3498db;
    color: white;
}

.network-bsc {
    background: #f0b90b;
    color: #1e1e1e;
}

.network-ethereum {
    background: #627eea;
    color: white;
}

.network-tron {
    background: #ff0013;
    color: white;
}

.network-bsc_testnet {
    background: #17a2b8;
    color: white;
}

.status-chip {
    font-weight: 600;
}

.status-pending {
    background: #ffeaa7;
    color: #d63031;
}

.status-confirmed, .status-completed, .status-received {
    background: #00b894;
    color: white;
}

.status-failed, .status-expired {
    background: #d63031;
    color: white;
}

.status-processing {
    background: #fdcb6e;
    color: #2d3436;
}

.tx-type-incoming {
    background: #00b894;
    color: white;
    font-weight: 600;
}

.tx-type-outgoing {
    background: #e17055;
    color: white;
    font-weight: 600;
}

/* Activity List Header */
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 8px;
}

.activity-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

.activity-filter {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

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

.filter-btn.active:hover {
    background: #5a6fd8;
}

/* Tables */
.section-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters {
    display: flex;
    gap: 15px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #2c3e50;
    font-size: 0.9rem;
}

.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 0.9rem;
    color: #2c3e50;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.loading {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    outline: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.btn:focus {
    outline: 2px solid rgba(102, 126, 234, 0.3);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background: #545b62;
    color: white;
    text-decoration: none;
}

.btn-warning {
    background: #f39c12;
    color: white;
    border: 1px solid transparent;
}

.btn-warning:hover {
    background: #e67e22;
    color: white;
    text-decoration: none;
}

.btn-info {
    background: #3498db;
    color: white;
    border: 1px solid transparent;
}

.btn-info:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
}

.btn-refresh {
    background: #27ae60;
    color: white;
    border: 1px solid transparent;
}

.btn-refresh:hover {
    background: #229954;
    color: white;
    text-decoration: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    gap: 4px;
}

/* Specific styles for table action buttons */
.data-table .btn {
    white-space: nowrap;
    min-width: auto;
}

.data-table .btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
}

/* Ensure table cells with buttons don't stretch */
.data-table td:last-child {
    width: 1%;
    white-space: nowrap;
}

/* Admin Panel Styles */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.admin-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.admin-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-content {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.wallet-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
    transition: background-color 0.2s ease;
}

.wallet-item:hover {
    background: #e9ecef;
}

.wallet-item strong {
    color: #2c3e50;
}

.wallet-item .text-muted {
    color: #6c757d;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

/* Balance Checker Styles */
.balance-checker {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #2c3e50;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.balance-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.balance-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.balance-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Text Link Styles */
.text-primary {
    color: #4338ca !important;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 500;
}

.text-primary:hover {
    color: #3730a3 !important;
    text-decoration: underline;
}

/* Network and Status Chips Enhancement */
.network-chip i, .status-chip i, .tx-type-chip i {
    margin-right: 4px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    max-width: 850px;
    width: 95%;
    max-height: 92vh;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    margin: 15px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Modal Body Styles */
.modal-body {
    padding: 20px;
    background: #fafbfc;
}

/* Invoice and Transaction Details Grid */
.invoice-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 0;
}

.detail-item {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.detail-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #667eea;
    transform: translateY(-1px);
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 3px;
}

.detail-item span {
    display: block;
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 500;
    word-break: break-all;
    line-height: 1.3;
}

/* Status-specific styling */
.detail-item span[id*="status"] {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Network-specific styling */
.detail-item span[id*="network"] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #f1f5f9;
    border-radius: 4px;
    font-weight: 600;
    color: #475569;
    font-size: 0.8rem;
}

.detail-item span[id*="network"]::before {
    content: "🌐";
    font-size: 0.8rem;
}

/* Hash and Address styling */
.detail-item span[id*="hash"],
.detail-item span[id*="address"],
.detail-item span[id*="wallet"],
.detail-item span[id*="from"],
.detail-item span[id*="to"],
.detail-item span[id*="token"] {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    font-size: 0.8rem;
    color: #1e293b;
    position: relative;
    cursor: pointer;
    font-weight: 500;
}

.detail-item span[id*="hash"]:hover,
.detail-item span[id*="address"]:hover,
.detail-item span[id*="wallet"]:hover,
.detail-item span[id*="from"]:hover,
.detail-item span[id*="to"]:hover,
.detail-item span[id*="token"]:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

/* Copy button for hashes and addresses */
.detail-item span[id*="hash"]::after,
.detail-item span[id*="address"]::after,
.detail-item span[id*="wallet"]::after,
.detail-item span[id*="from"]::after,
.detail-item span[id*="to"]::after,
.detail-item span[id*="token"]::after {
    content: "📋";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.7rem;
}

.detail-item span[id*="hash"]:hover::after,
.detail-item span[id*="address"]:hover::after,
.detail-item span[id*="wallet"]:hover::after,
.detail-item span[id*="from"]:hover::after,
.detail-item span[id*="to"]:hover::after,
.detail-item span[id*="token"]:hover::after {
    opacity: 1;
}

/* Enhanced status colors */
.status-pending { background: #fef3c7; color: #92400e; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-failed { background: #fee2e2; color: #991b1b; }
.status-expired { background: #f3f4f6; color: #374151; }
.status-usdt-received { background: #dbeafe; color: #1d4ed8; }
.status-xso-sent { background: #d1fae5; color: #065f46; }

/* Modal enhancements for better UX */
.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    max-width: 850px;
    width: 95%;
    max-height: 92vh;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    margin: 15px;
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Pagination Styles */
.pagination-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-controls .btn {
    min-width: 40px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination-controls .btn-disabled {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-controls .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    font-weight: 600;
}

.pagination-controls .btn-outline-primary {
    background-color: transparent;
    border-color: #007bff;
    color: #007bff;
}

.pagination-controls .btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

.pagination-controls .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.pagination-controls .btn-secondary:hover {
    background-color: #545b62;
    border-color: #4e555b;
}

.pagination-dots {
    padding: 0 8px;
    color: #6c757d;
    font-weight: bold;
}

.pagination-info {
    color: #6c757d;
    font-size: 14px;
    text-align: center;
}

/* Enhanced Filter Styles */
.filters {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    color: #333;
    font-size: 14px;
    min-width: 150px;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Enhanced Status and Network Chips */
.status-chip, .network-chip, .tx-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status chip colors */
.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-confirmed, .status-completed {
    background-color: #d1edff;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-usdt-received, .status-received {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-xso-sent {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-expired {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.status-processing {
    background-color: #e7f3ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

/* Network chip colors */
.network-bsc {
    background-color: #f0b90b;
    color: #000;
    border: 1px solid #f0b90b;
}

.network-ethereum {
    background-color: #627eea;
    color: white;
    border: 1px solid #627eea;
}

.network-tron {
    background-color: #ff0013;
    color: white;
    border: 1px solid #ff0013;
}

.network-bsc_testnet {
    background-color: #17a2b8;
    color: white;
    border: 1px solid #17a2b8;
}

/* Transaction type chip colors */
.tx-type-incoming {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tx-type-outgoing {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Enhanced Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table th {
    background-color: #f8f9fa;
    color: #f8f9fa;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
    font-size: 14px;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Clickable links in tables */
.data-table a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.data-table a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive Design for Pagination */
@media (max-width: 768px) {
    .pagination-controls {
        gap: 4px;
    }

    .pagination-controls .btn {
        min-width: 36px;
        height: 36px;
        font-size: 12px;
        padding: 0 8px;
    }

    .pagination-dots {
        padding: 0 4px;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }
}

/* Enhanced Loading States */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

.loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Empty States */
.text-center {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.text-danger {
    color: #dc3545 !important;
}

/* Copy functionality visual feedback */
.copy-feedback {
    position: relative;
}

.copy-feedback::after {
    content: 'Copied!';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.copy-feedback.show::after {
    opacity: 1;
}
