/* Dashboard Styles */
:root {
    --primary: #0033AD;
    --primary-dark: #00257A;
    --secondary: #FF5A00;
    --background: #0A0E17;
    --card-bg: #131B2E;
    --card-hover: #1A263D;
    --text: #FFFFFF;
    --text-secondary: #94A3B8;
    --border: #2D3748;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Base Styles */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    color: var(--text);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

dashboard-header h1 {
    margin: 0;
    font-size: 2rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Search Box */
.search-box {
    display: flex;
    max-width: 500px;
    flex: 1;
    min-width: 300px;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 173, 0.2);
}

.search-btn {
    padding: 0 1.5rem;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 51, 173, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.positive {
    color: var(--success);
}

.negative {
    color: var(--danger);
}

.stat-detail {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Dashboard Content */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dashboard-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-section h2 i {
    color: var(--primary);
}

/* Health Metrics */
.health-metrics {
    display: grid;
    gap: 1.25rem;
}

.metric {
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.progress-bar {
    height: 8px;
    background: var(--background);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-top: 0.5rem;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar span {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: white;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Transactions List */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.view-all {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.transactions-list {
    display: grid;
    gap: 0.75rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--background);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.transaction-item:hover {
    background: var(--card-hover);
}

.tx-hash a {
    color: var(--primary);
    text-decoration: none;
    font-family: monospace;
    font-size: 0.9rem;
}

.tx-amount {
    font-weight: 600;
    color: var(--success);
}

.tx-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: var(--background);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: var(--card-hover);
}

.action-card i {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.action-card span {
    font-weight: 500;
}

/* Updates List */
.updates-list {
    display: grid;
    gap: 1rem;
}

.update-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.update-item:hover {
    background: var(--card-hover);
}

.update-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.update-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.update-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.update-content {
    flex: 1;
}

.update-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.update-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.update-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .quick-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-box {
        width: 100%;
        min-width: auto;
    }
}

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

.chart-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text);
}

.chart-header h2 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
    background: var(--background);
    padding: 0.25rem;
    border-radius: 8px;
}

.chart-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chart-btn:hover {
    background: var(--card-hover);
    color: var(--text);
}

.chart-btn.active {
    background: var(--primary);
    color: var(--text);
}

.chart-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
}

@media (max-width: 768px) {
    .chart-wrapper {
        height: 300px;
    }
    
    .chart-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .chart-btn {
        flex: 1;
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}
