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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

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

header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #667eea;
}

h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #667eea;
}

.status {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-item .label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.status-item .value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

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

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

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tokens-container {
    display: grid;
    gap: 15px;
}

.token-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #667eea;
    cursor: pointer;
    transition: all 0.2s;
}

.token-card:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.token-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.token-symbol {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
}

.token-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.token-status.enabled {
    background: #d4edda;
    color: #155724;
}

.token-status.disabled {
    background: #f8d7da;
    color: #721c24;
}

.token-address {
    font-size: 12px;
    color: #666;
    font-family: monospace;
    margin-bottom: 10px;
}

.token-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.holders-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #dee2e6;
}

.holders-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #495057;
}

.holders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.holders-table th {
    background: #e9ecef;
    padding: 8px;
    text-align: left;
    font-weight: 600;
    color: #495057;
}

.holders-table td {
    padding: 8px;
    border-bottom: 1px solid #e9ecef;
}

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

.address {
    font-family: monospace;
    font-size: 12px;
}

.address a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.address a:hover {
    border-bottom-color: #667eea;
}

.alert-details a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.alert-details a:hover {
    border-bottom-color: #667eea;
}

.alerts-container {
    display: grid;
    gap: 10px;
    max-height: 600px;
    overflow-y: auto;
}

.alert-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #ffc107;
    animation: slideIn 0.3s ease;
}

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

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.alert-type {
    font-weight: bold;
    color: #667eea;
    text-transform: uppercase;
    font-size: 12px;
}

.alert-time {
    font-size: 12px;
    color: #666;
}

.alert-message {
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.alert-message a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.alert-message a:hover {
    border-bottom-color: #667eea;
}

.alert-message code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

.alert-details {
    font-size: 12px;
    color: #666;
    font-family: monospace;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.auto-refresh {
    text-align: right;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

/* Scrollbar styling */
.alerts-container::-webkit-scrollbar {
    width: 8px;
}

.alerts-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.alerts-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.alerts-container::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

@media (max-width: 768px) {
    .status {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .token-stats {
        flex-direction: column;
        gap: 5px;
    }
}

/* Chart Section Styles */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.toggle-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chart-section {
    margin-top: 20px;
    animation: slideDown 0.3s ease-out;
}

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

.chart-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.chart-select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.chart-select:hover {
    border-color: #667eea;
}

.chart-select:focus {
    outline: none;
    border-color: #667eea;
}

.chart-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chart-button:active {
    transform: translateY(0);
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    min-height: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chart-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 360px;
    color: #999;
    font-size: 16px;
}

#chart {
    width: 100%;
    height: 400px;
}
