/* Dashboard Page */
.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.subtitle {
    margin: 0.5rem 0 0 0;
    color: #94a3b8;
    font-size: 0.875rem;
}

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

.summary-card {
    background: #0f1629;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.summary-card.primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #7c3aed;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.card-icon.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.card-icon.info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.card-icon.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-card:not(.primary) .card-label {
    color: #94a3b8;
}

.card-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
    line-height: 1;
}

.card-value.profit {
    color: #10b981;
}

.card-value.loss {
    color: #ef4444;
}

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

.card-change.positive {
    color: rgba(16, 185, 129, 0.9);
}

.card-change.negative {
    color: rgba(239, 68, 68, 0.9);
}

.card-meta {
    font-size: 0.75rem;
    color: #64748b;
}

/* Section */
.section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.btn-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6366f1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-link:hover {
    gap: 0.75rem;
}

/* Assets Quick Grid */
.assets-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.asset-quick-card {
    background: #0f1629;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.asset-quick-card:hover {
    transform: translateY(-2px);
    border-color: #6366f1;
}

.asset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.asset-symbol {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
}

.asset-change {
    font-size: 0.75rem;
    font-weight: 600;
}

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

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

.asset-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.asset-profit {
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.asset-profit.profit {
    color: #10b981;
}

.asset-profit.loss {
    color: #ef4444;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #0f1629;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: #1a1f3a;
}

.activity-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.activity-icon.buy {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.activity-icon.sell {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.activity-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-type {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.activity-symbol {
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    color: #94a3b8;
}

.bot-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.375rem;
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
}

.activity-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.separator {
    color: #334155;
}

.activity-value {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: #0f1629;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    color: #64748b;
}

.empty-state .bi {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .assets-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
