/* Dashboard Widgets Styling */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.dashboard-section {
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

/* Market Trends Container - Add drop shadow */
.market-trends-container {
    background-color: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Trend and Segment Cards */
.trend-card, .segment-card {
    background-color: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.trend-card {
    padding: 0.75rem;
    display: flex;
    align-items: center;
}

/* Ensure proper spacing in the market grid */
.dashboard-section .col-md-4, .dashboard-section .col-md-2 {
    margin-bottom: 1rem;
}


.asset-type {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.3px;
}

.asset-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.change-percentage, .change-value {
    font-size: 1rem;
    font-weight: 500;
}

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

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

.btn-icon {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
}

/* Balance Card - Modern Clean Design */
.balance-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-grey-dark);
    overflow: hidden;
}

.balance-card .card-body {
    padding: 3rem;
}

.balance-card .card-body.loading {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading State */
.balance-loading {
    text-align: center;
    width: 100%;
}

.loading-shimmer {
    background: linear-gradient(90deg, var(--color-grey) 25%, var(--color-grey-dark) 50%, var(--color-grey) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.vector-shimmer {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.balance-shimmer {
    width: 100%;
    max-width: 300px;
    height: 60px;
}

@media (max-width: 991px) {
    .balance-shimmer {
        margin-left: auto;
        margin-right: auto;
    }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-text {
    color: var(--color-dark);
    opacity: 0.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Balance Hero Section */
.balance-hero {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-grey-dark);
}

.dashboard-vector-column {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-balance-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
}

@media (max-width: 991px) {
    .dashboard-balance-column {
        padding-left: 0;
        margin-top: 2rem;
    }
}

.stat-group {
    display: flex;
    flex-direction: column;
}

.balance-stats-row {
    border-top: 1px solid var(--color-grey-dark);
    padding-top: 2rem;
}

.balance-label {
    font-size: 0.875rem;
    color: var(--color-dark);
    opacity: 0.6;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.balance-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-dark);
}


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

.stat-value.positive {
    color: var(--color-positive);
}

.stat-value.negative {
    color: var(--color-negative);
}

.stat-value.neutral {
    color: var(--color-dark);
    opacity: 0.7;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-dark);
    opacity: 0.6;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state p {
    font-size: 1rem;
    color: var(--color-dark);
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

/* Ensure animated spans inherit all styling from parent elements */
.animated-balance,
.animated-percentage,
.animated-change-amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* Custom styles for segment cards */
.segment-card {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
