/* Widget components */
.widget { 
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    padding: 1.25rem; 
    border-radius: 16px; 
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.1),
        0 2px 8px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.4); 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.widget:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0,0,0,0.15),
        0 4px 12px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.widget:hover::before {
    left: 100%;
}

.widget h2 { 
    margin: 0 0 0.75rem 0; 
    font-size: 0.85rem; 
    color: #64748b; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.widget:hover h2 {
    color: #475569;
}

.widget p { 
    margin: 0; 
    font-size: 1.75rem; 
    font-weight: 700; 
    transition: transform 0.3s ease;
}

.summary-values { 
    display: flex; 
    justify-content: center; 
    gap: 1.5rem; 
}

.summary-value { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.summary-value:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.5);
}

.positive-text { 
    color: #059669; 
    text-shadow: 0 0 20px rgba(5, 150, 105, 0.3);
}

.negative-text { 
    color: #dc2626; 
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.neutral-text { 
    color: #6b7280; 
    text-shadow: 0 0 20px rgba(107, 114, 128, 0.3);
}

.total-text { 
    font-size: 1rem; 
    color: #374151; 
    font-weight: 600; 
    margin-top: 0.75rem; 
    transition: all 0.3s ease;
}