.chart-container {
    height: 400px;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 24px;
    overflow: hidden;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #64748b;
}
.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chart-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.chart-area {
    width: 100%;
    overflow-x: auto;
    /*height: 100%;
    display: flex;
    align-items: end;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;*/
}

.chart-bar {
    flex: 1;
    margin: 0 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    transform: translateY(-2px);
}

.bar-container {
    width: 100%;
    height: 280px;
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
}

.bar {
    width: 60%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

.bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffffff80, transparent);
    border-radius: 8px 8px 0 0;
}

.bar-value {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.bar-value::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.9);
}

.chart-bar:hover .bar-value {
    opacity: 1;
}

.bar-label {
    margin-top: 12px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-align: center;
}

@keyframes slideUp {
    from {
opacity: 0;
transform: translateY(20px);
    }
    to {
opacity: 1;
transform: translateY(0);
    }
}

.chart-grid {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 280px;
    pointer-events: none;
}

.grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    opacity: 0.6;
}

.grid-label {
    position: absolute;
    left: -50px;
    transform: translateY(-50%);
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.chart-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.chart-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.chart-btn {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-btn:hover,
.chart-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

