.stats-tabs {
    display: flex;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 5px;
}

.stats-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.stats-tab.active {
    background: white;
    color: #007AFF;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.stats-card {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
}

.stats-card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stats-card-value {
    font-size: 28px;
    font-weight: bold;
    color: #007AFF;
    line-height: 1.2;
}

.stats-card-trend {
    font-size: 12px;
    color: #34C759;
    margin-top: 5px;
}

.stats-card-trend.negative {
    color: #FF3B30;
}

.macro-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.macro-label {
    width: 20px;
    font-weight: bold;
    color: #666;
    margin-right: 8px;
}

.macro-progress {
    flex: 1;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    position: relative;
}

.macro-progress-bar {
    height: 100%;
    background: #007aff69;
    border-radius: 10px;
    position: relative;
}

.macro-value {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    z-index: 1;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.chart-card {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
}

.chart-title {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 150px;
    padding-top: 20px;
}

.bar-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    position: relative;
    z-index: 1;
}

.line-chart {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar {
    width: 30px;
    background: #007AFF;
    border-radius: 5px 5px 0 0;
    margin: 0 5px;
}

.bar-label {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.bar-value {
    font-size: 10px;
    color: #666;
    margin-bottom: 3px;
}
.container {
    padding: 80px 20px 0px 20px;
}