/* Enhanced Dashboard Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.dashboard-header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.5rem;
}

.highlight {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Wallet Section */
.wallet-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.connect-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.connect-btn.connected {
    background: linear-gradient(135deg, #059669, #047857);
}

.wallet-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    color: #10b981;
}

.user-balance {
    color: #94a3b8;
}

/* Main Dashboard */
.dashboard-main {
    padding: 2rem 0;
}

/* Price Section */
.price-section {
    margin-bottom: 2rem;
}

.price-widget {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.price-widget h2 {
    color: #10b981;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-display {
    text-align: center;
}

.current-price {
    font-size: 3rem;
    font-weight: 700;
    color: #10b981;
    margin: 0.5rem 0;
    font-family: 'Orbitron', monospace;
}

.price-change {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.price-change.positive {
    color: #10b981;
}

.price-change.negative {
    color: #ef4444;
}

.price-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

/* Chart Section */
.chart-section {
    margin-bottom: 2rem;
}

.chart-container {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.chart-container h2 {
    color: #10b981;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-container canvas {
    width: 100% !important;
    height: 400px !important;
}

/* Stats Section */
.stats-section {
    margin-bottom: 2rem;
}

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

.stat-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.stat-card i {
    font-size: 2rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.stat-card h3 {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
    font-family: 'Orbitron', monospace;
}

/* Transactions Section */
.transactions-section {
    margin-bottom: 2rem;
}

.transactions-widget {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.transactions-widget h2 {
    color: #10b981;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transactions-list {
    max-height: 400px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: background-color 0.3s ease;
}

.transaction-item:hover {
    background: rgba(16, 185, 129, 0.05);
}

.transaction-type {
    font-weight: 600;
    font-size: 0.9rem;
}

.transaction-amount {
    color: #10b981;
    font-weight: 600;
}

.transaction-hash {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #64748b;
}

.loading {
    text-align: center;
    color: #64748b;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .wallet-section {
        flex-direction: column;
        align-items: center;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .price-details {
        grid-template-columns: 1fr;
    }
}

/* Scan Line Effect */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    z-index: 1000;
    animation: scanLine 3s linear infinite;
    opacity: 0.7;
}

@keyframes scanLine {
    0% {
        transform: translateY(-100vh);
    }
    100% {
        transform: translateY(100vh);
    }
}

/* Neon Glow Effects */
.neon-glow {
    animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    from {
        text-shadow: 0 0 5px #10b981, 0 0 10px #10b981, 0 0 15px #10b981;
    }
    to {
        text-shadow: 0 0 10px #10b981, 0 0 20px #10b981, 0 0 30px #10b981, 0 0 40px #10b981;
    }
}