/* 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.75rem;
    color: #888;
    text-transform: uppercase;
}

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

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

.positive {
    color: #22c55e;
}

.negative {
    color: #ef4444;
}

.btn-icon {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
}

/* Balance Card - Enhanced */
.balance-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.balance-card .card-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1.25rem 1.5rem;
    background-color: transparent;
}

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

.date-range {
    font-size: 0.9rem;
    color: #888;
    display: flex;
    align-items: center;
}

.total-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.total-balance h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

.change-percentage h1 {
    font-size: 3rem;
    font-weight: 700;
}

.performance-metrics {
    margin-top: 1.5rem;
}

.metric {
    margin-bottom: 1rem;
}

.value-container {
    display: flex;
    align-items: center;
}

.value {
    font-weight: 600;
    margin-left: 0.5rem;
}

.description {
    margin-left: 1.5rem;
    font-size: 0.9rem;
}

/* Progress Circles with improved styling */
.progress-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 2rem 0;
}

.progress-circle::before {
    content: "";
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 14px solid #f0f0f0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.progress-circle::after {
    content: "";
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 14px solid transparent;
    border-left-color: #22c55e;
    border-top-color: #22c55e;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    z-index: 1;
}

.circle-label, .circle-percentage, .circle-amount {
    position: relative;
    z-index: 2;
    text-align: center;
}

.circle-label {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.circle-percentage {
    font-size: 1.2rem;
    font-weight: 600;
}

.circle-amount {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

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

/* Create different rotation angles for each segment */
.dashboard-section .row .col-md-4:nth-child(1) .progress-circle::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.dashboard-section .row .col-md-4:nth-child(2) .progress-circle::after {
    transform: translate(-50%, -50%) rotate(75deg);
}

.dashboard-section .row .col-md-4:nth-child(3) .progress-circle::after {
    transform: translate(-50%, -50%) rotate(180deg);
    border-left-color: #ef4444;
    border-top-color: #ef4444;
}
