* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #0f1419 100%);
    min-height: 100vh;
    padding: 10px;
    color: #e0e7ff;
}

/* Global link styles - make all hyperlinks visible */
a {
    color: #60a5fa;
    text-decoration: underline;
    transition: all 0.2s;
}

a:hover {
    color: #93c5fd;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

a:visited {
    color: #818cf8;
}

/* Dual Range Slider Styles */
.dual-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    outline: none;
    pointer-events: auto;
}

.dual-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #1a1f2e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.dual-range-input::-webkit-slider-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.dual-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #1a1f2e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.dual-range-input::-moz-range-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.dual-range-input::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.dual-range-input::-moz-range-track {
    height: 6px;
    background: transparent;
}

/* Login Page Styles */
#loginContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 20px rgba(16, 185, 129, 0.1);
    padding: 40px;
    max-width: 400px;
    width: 100%;
}

.login-card h1 {
    text-align: center;
    color: #10b981;
    margin-bottom: 10px;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.login-card p {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

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

.login-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.login-form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #334155;
    background: #0f1419;
    color: #e0e7ff;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.login-form-group input[type="password"]:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.login-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
    min-height: 20px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Main App Container - Always visible on index page */
#mainAppContainer {
    display: block;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

.header {
    text-align: center;
    color: #e0e7ff;
    margin-bottom: 15px;
}

.header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.5), 2px 2px 4px rgba(0,0,0,0.5);
    color: #10b981;
}

.header p {
    font-size: 0.85rem;
    opacity: 0.8;
    color: #94a3b8;
}

/* Header Stats Display */
.header-stats {
    position: relative;
    background: transparent;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: default;
    transition: all 0.3s ease;
    min-width: 80px;
}

.header-stats:hover {
    border-color: #10b981;
    background: #1a1f2e;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.stats-compact {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.stats-expanded {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #1a1f2e;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.header-stats:hover .stats-expanded {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #334155;
}

.stats-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.stats-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.stats-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
    font-family: 'Courier New', monospace;
}

.card {
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(16, 185, 129, 0.05);
    padding: 15px;
    margin-bottom: 50px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.status-badge.running {
    background: #10b981;
    color: white;
}

.status-badge.stopped {
    background: #ef4444;
    color: white;
}

/* Collapsible content styles */
.collapsible-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out, margin 0.3s ease-out;
    max-height: 1000px;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
}

.collapsible-content.collapsed * {
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.collapsible-header {
    user-select: none;
}

.collapsible-header:hover {
    opacity: 0.8;
}

#skipTokensToggleIcon.rotated {
    transform: rotate(-90deg);
}

/* Wallet addresses styling - make them fit in one line */
#walletAddressesList {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.wallet-address-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 10px !important;
    background: #0f1419 !important;
    border: 1px solid #334155 !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    max-width: 200px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
}

.wallet-address-item .address-text {
    font-family: 'Courier New', monospace !important;
    font-size: 0.7rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 150px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
}

.wallet-address-item .remove-btn {
    flex-shrink: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    line-height: 1 !important;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 18px;
    background: #10b981;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
}

.input-wrapper label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 4px;
}

input[type="text"],
input[type="date"] {
    padding: 8px 12px;
    border: 2px solid #334155;
    background: #0f1419;
    color: #e0e7ff;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
}

input[type="text"]:disabled,
input[type="date"]:disabled {
    background-color: #1a1f2e;
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.6;
}

input[type="text"]:focus,
input[type="date"]:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

input[type="date"] {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}


button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-start {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    flex: 1;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-start:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-stop {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    flex: 1;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-stop:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.btn-analyze {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    flex: 1;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-analyze:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-refresh {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 8px 14px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-refresh:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Tabs Styles */
.tabs-container {
    width: 100%;
}

.tabs-header {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #334155;
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    position: relative;
    top: 2px;
}

.tab-btn:hover {
    color: #10b981;
}

.tab-btn.active {
    color: #10b981;
    border-bottom-color: #10b981;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.tab-content {
    display: none;
}

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

/* Wallet Address Item Styles */
.wallet-address-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #0f1419;
    border: 1px solid #334155;
    border-radius: 6px;
    cursor: default;
    transition: all 0.2s;
    gap: 10px;
}

.wallet-address-item:hover {
    background: #1a1f2e;
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.wallet-address-item .address-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #10b981;
}

.wallet-address-item .remove-btn {
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #64748b;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 4px;
}

.wallet-address-item .remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}


.wallet-address-item .remove-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Wallet Filter Dropdown Styles */
.wallet-filter-option {
    transition: background-color 0.2s;
}

.wallet-filter-option:hover {
    background-color: #0f1419;
    color: #10b981;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #1a1f2e;
}

/* Analysis tab table container - make it scrollable with fixed header */
#analysisTab .table-container {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1f2e;
}

thead {
    background: #0f1419;
}

th {
    padding: 10px;
    text-align: left;
    font-weight: 600;
    color: #10b981;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #334155;
}

td {
    padding: 10px;
    border-bottom: 1px solid #2d3748;
    font-size: 0.75rem;
    color: #e0e7ff;
}

tbody tr:hover {
    background: #0f1419;
}

tbody tr:last-child td {
    border-bottom: none;
}

.mono {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
}

.truncate {
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.truncate a {
    color: #60a5fa;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.truncate a:hover {
    color: #93c5fd;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.truncate-inner {
    display: inline-block;
    animation: none;
}

.truncate:hover .truncate-inner {
    animation: scroll-text 10s linear infinite;
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% + 120px));
    }
}

.platform-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.platform-raydium { background: #c084fc; color: white; }
.platform-orca { background: #06b6d4; color: white; }
.platform-meteora { background: #f59e0b; color: white; }
.platform-pump { background: #ec4899; color: white; }
.platform-pumpfun { background: #8b5cf6; color: white; }
.platform-unknown { background: #6b7280; color: white; }

.empty-state {
    text-align: center;
    padding: 30px 15px;
    color: #94a3b8;
}

.empty-state svg {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.empty-state p {
    font-size: 0.8rem;
}

.notification {
    position: fixed;
    bottom: 15px;
    right: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

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

.notification.success {
    background: #10b981;
}

.notification.error {
    background: #ef4444;
}

.notification.info {
    background: #3b82f6;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.pagination button {
    padding: 6px 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 0.75rem;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.pagination button:hover:not(:disabled) {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}

.pagination span {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.75rem;
}

.stats-grid {
    position: fixed;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.stat-card {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    min-width: 120px;
}

.stat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 2px;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.stat-card p {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal {
    background: #1a1f2e;
    border: 1px solid #334155;
    border-radius: 12px;
    max-width: 80%;
    width: 80%;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.1);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 15px 24px;
    border-bottom: 2px solid #334155;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.3rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.modal-close {
    background: #0f1419;
    border: 1px solid #334155;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #94a3b8;
    transition: all 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #334155;
    background: #0f1419;
    color: #e0e7ff;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input[type="password"]:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #334155;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    background: #0f1419;
    color: #e0e7ff;
    cursor: pointer;
    transition: all 0.3s;
}

select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

select option {
    background: #1a1f2e;
    color: #e0e7ff;
    padding: 8px;
}

.btn-modal-analyze {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-modal-analyze:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.wallet-info {
    margin-top: 24px;
}

.wallet-info-section {
    background: #0f1419;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.wallet-info-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #60a5fa;
    word-break: break-all;
    background: #1a1f2e;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #334155;
}

.wallet-address a {
    color: #60a5fa;
    text-decoration: underline;
}

.wallet-address a:hover {
    color: #93c5fd;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.sol-balance {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    margin: 10px 0;
}

.token-list {
    overflow-y: hidden;
    overflow-x: hidden;
    width: 100%;
}

.token-list .table-container {
    overflow-x: visible;
    width: 100%;
}

.token-table {
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
    background: #1a1f2e;
    table-layout: auto;
}

.token-table th,
.token-table td {
    position: relative;
}

.token-table th .resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
    background: transparent;
    z-index: 1;
}

.token-table th .resizer:hover {
    background: #10b981;
}

.token-table th .resizer.active {
    background: #10b981;
}

.token-table thead {
    background: #0f1419;
    position: sticky;
    top: 0;
    z-index: 10;
}

.token-table thead th {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    color: #10b981;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #334155;
    background: #0f1419;
    position: relative;
}

.token-table tbody tr {
    background: #1a1f2e;
}

.token-table tbody tr:hover {
    background: #0f1419;
}

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

.token-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #2d3748;
    font-size: 0.75rem;
    color: #e0e7ff;
    vertical-align: middle;
    white-space: normal;
}

.token-table .token-name-cell {
    font-weight: 600;
    font-size: 0.75rem;
    color: #e0e7ff;
    white-space: nowrap;
}

.token-table .token-name-cell div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-table .token-name-cell a {
    white-space: nowrap;
    color: #60a5fa;
    text-decoration: underline;
}

.token-table .token-name-cell a:hover {
    color: #93c5fd;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.token-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #334155;
    background: #0f1419;
}

.token-name-text {
    flex: 1;
}

.token-table .token-symbol-cell {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.75rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 4px 8px !important;
    border-radius: 4px;
    white-space: nowrap;
}

.token-table .token-symbol-cell a {
    color: #10b981;
    text-decoration: underline;
}

.token-table .token-symbol-cell a:hover {
    color: #34d399;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.token-table .token-mint-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-table .token-mint-cell a {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.2s;
    font-weight: 500;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-table .token-mint-cell a:hover {
    color: #93c5fd;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.token-table .token-creator-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-table .token-creator-cell a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #60a5fa;
    text-decoration: underline;
}

.token-table .token-creator-cell a:hover {
    color: #93c5fd;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.token-table .token-dev-buy-cell {
    max-width: 200px;
    overflow: hidden;
}

.token-table .token-dev-buy-cell div {
    overflow: hidden;
    word-wrap: break-word;
}

.token-table .token-dev-buy-cell div div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-table .token-amount-cell {
    font-weight: 700;
    font-size: 0.95rem;
    color: #10b981;
    text-align: right;
    white-space: nowrap;
}

.token-table .token-index-cell {
    font-weight: 700;
    color: #10b981;
    text-align: center;
    font-size: 0.75rem;
    width: 50px;
}

/* First Buy and First Sell columns - wider width */
.token-table thead th:nth-child(4),
.token-table tbody td:nth-child(4) {
    min-width: 220px;
    width: 220px;
}

.token-table thead th:nth-child(5),
.token-table tbody td:nth-child(5) {
    min-width: 220px;
    width: 220px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
}

.loading-spinner {
    border: 3px solid #334155;
    border-top: 3px solid #10b981;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

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


.empty-tokens {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.2rem;
    }

    .input-group {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    table {
        font-size: 0.65rem;
    }

    th, td {
        padding: 6px;
    }

    .stats-grid {
        position: static;
        flex-direction: column;
        margin-bottom: 10px;
    }

    .stat-card {
        min-width: auto;
    }

    .modal {
        width: 95%;
        padding: 20px;
    }
}

