/* Trends Page Specific Styling */

/* Card styling */
.financial-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.financial-card:hover, .chart-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.chart-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Metrics styling */
.card-metric {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    animation: none;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-text {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* Progress bars */
.progress {
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar {
    transition: width 1s ease-in-out;
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 200px;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

/* Text colors */
.text-income {
    color: var(--bs-success);
}

.text-expense {
    color: var(--bs-danger);
}

.text-savings {
    color: var(--bs-info);
}

/* Volatility meter */
.volatility-meter .progress {
    height: 8px;
    border-radius: 4px;
}

/* fadeIn and fadeInUp keyframes in core-animations.css */

/* Date range display */
.page-title .date-range {
    font-size: 0.6em;
    margin-left: 15px;
    vertical-align: middle;
    opacity: 0.8;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .card-body {
    background-color: #2b3035;
}

[data-bs-theme="dark"] .card-header {
    background-color: #212529;
    border-bottom: 1px solid #343a40;
}

[data-bs-theme="dark"] .progress {
    background-color: #343a40;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-metric {
        font-size: 1.75rem;
    }
    
    .chart-container {
        height: 250px;
    }
}