/* Step Counter Styles */

.step-counter-widget {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.step-counter-today {
    text-align: center;
    margin-bottom: 30px;
}

.step-count-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.step-count-number {
    font-size: 48px;
    font-weight: 700;
    color: #0067FF;
    letter-spacing: -2px;
}

.step-count-unit {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.step-calories {
    font-size: 14px;
    color: #888;
}

.step-progress-container {
    position: relative;
    margin-bottom: 30px;
}

.step-progress-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    transform: rotate(-90deg);
}

.step-progress-ring {
    transition: stroke-dashoffset 0.5s ease;
}

.step-progress-text {
    font-size: 32px;
    font-weight: 700;
    fill: #191f28;
    transform: rotate(90deg);
    transform-origin: center;
}

.step-progress-label {
    font-size: 12px;
    fill: #666;
    transform: rotate(90deg);
    transform-origin: center;
}

.step-milestones {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.step-milestone {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.step-milestone.achieved {
    color: #0067FF;
    font-weight: 600;
}

.step-milestone.claimed {
    color: #4caf50;
}

.step-rewards-container {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.step-rewards-info {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #191f28;
    margin-bottom: 15px;
}

.step-reward-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.step-reward-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #999;
    font-size: 13px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.step-reward-btn.active {
    background: linear-gradient(135deg, #0067FF 0%, #0052CC 100%);
    border-color: #0067FF;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 103, 255, 0.3);
}

.step-reward-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 103, 255, 0.4);
}

.step-reward-btn.claimed {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #4caf50;
    cursor: default;
}

.step-reward-drawer {
    position: fixed;
    bottom: -300px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
}

.step-reward-drawer.show {
    bottom: 0;
}

.step-reward-drawer-content {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.step-reward-animation {
    color: #fff;
}

.step-reward-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: rewardBounce 0.6s ease;
}

@keyframes rewardBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.step-reward-amount {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-reward-message {
    font-size: 18px;
    opacity: 0.9;
}

/* Heatmap Styles */
.step-heatmap-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

.step-heatmap-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #191f28;
    margin: 0 0 20px;
}

.step-heatmap {
    overflow-x: auto;
}

.step-heatmap-months {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.step-heatmap-grid {
    display: flex;
    gap: 10px;
}

.step-heatmap-days {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    color: #666;
    padding-top: 2px;
}

.step-heatmap-days span {
    height: 12px;
    line-height: 12px;
}

.step-heatmap-cells {
    display: flex;
    gap: 3px;
}

.step-heatmap-week {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.step-heatmap-cell {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.step-heatmap-cell:hover {
    transform: scale(1.3);
    outline: 2px solid #000;
}

.step-heatmap-cell.level-0 {
    background: #ebedf0;
}

.step-heatmap-cell.level-1 {
    background: #c6e48b;
}

.step-heatmap-cell.level-2 {
    background: #7bc96f;
}

.step-heatmap-cell.level-3 {
    background: #239a3b;
}

.step-heatmap-cell.level-4 {
    background: #196127;
}

.step-heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 15px;
    font-size: 11px;
    color: #666;
}

.legend-cell {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* History Styles */
.step-history-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

.step-history-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.step-history-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.step-history-tab:hover {
    color: #0067FF;
}

.step-history-tab.active {
    color: #0067FF;
    border-bottom-color: #0067FF;
}

.step-history-tab-content {
    display: none;
}

.step-history-tab-content.active {
    display: block;
}

.step-history-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.step-history-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.step-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-history-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

.step-history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.step-history-item:hover {
    background: #f5f5f5;
    transform: translateX(4px);
}

.step-history-item.goal-achieved {
    border-left-color: #4caf50;
    background: linear-gradient(90deg, #e8f5e9 0%, #f9f9f9 100%);
}

.step-history-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.date-day {
    font-size: 24px;
    font-weight: 700;
    color: #191f28;
    line-height: 1;
}

.date-month {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
}

.step-history-info {
    flex: 1;
}

.step-history-steps {
    font-size: 16px;
    font-weight: 600;
    color: #191f28;
    margin-bottom: 4px;
}

.step-goal-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #4caf50;
    color: #fff;
    font-size: 11px;
    border-radius: 12px;
    margin-left: 8px;
}

.step-history-calories {
    font-size: 13px;
    color: #666;
}

.step-history-progress {
    min-width: 100px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0067FF 0%, #00c6ff 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .step-count-number {
        font-size: 36px;
    }
    
    .step-reward-buttons {
        flex-direction: column;
    }
    
    .step-reward-btn {
        min-width: 100%;
    }
    
    .step-history-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-history-progress {
        width: 100%;
    }
}

.step-counter-login-required,
.step-heatmap-login-required,
.step-history-login-required {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    color: #666;
    font-size: 14px;
}

