/* Step Counter Tool - Custom Styles */

/* Gradient text for the tool title */
.gradient-text-steps {
    background: linear-gradient(90deg, #10b981, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Step Counter Card Styles */
.step-counter-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.step-counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(16, 185, 129, 0) 0%, 
        rgba(16, 185, 129, 0.1) 50%, 
        rgba(16, 185, 129, 0) 100%
    );
    transition: all 0.8s ease;
    z-index: 0;
    pointer-events: none;
}

/* Animations when goal is achieved */
.step-counter-card.goal-achieved {
    border: 2px solid #10b981;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.step-counter-card.goal-achieved::before {
    left: 100%;
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Step Count Animation */
#step-count {
    transition: color 0.3s ease;
}

.count-animation {
    animation: countPulse 0.5s ease-out;
}

@keyframes countPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* Progress Bar Styles */
.progress-container {
    overflow: hidden;
}

.progress-bar {
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: var(--progress-width, 0%);
    background: linear-gradient(90deg, #10b981, #34d399);
}

/* Activity Badges */
.activity-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.activity-badge.walking {
    background-color: #e9f5f0;
    color: #10b981;
}

.activity-badge.running {
    background-color: #e0f2fe;
    color: #0ea5e9;
}

.activity-badge.hiking {
    background-color: #f2effd;
    color: #8b5cf6;
}

.activity-badge.cycling {
    background-color: #fef3c7;
    color: #d97706;
}

.activity-badge.other {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* Statistic Boxes */
.stat-box {
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-title {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 0.25rem;
}

.stat-desc {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: #10b981;
    color: white;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    color: #4b5563;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-small {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.btn-danger {
    background-color: #fee2e2;
    color: #ef4444;
}

.btn-danger:hover {
    background-color: #fecaca;
}

/* Time Range Buttons */
.time-range-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    background-color: #f3f4f6;
    color: #6b7280;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.time-range-btn:hover {
    background-color: #e5e7eb;
}

.time-range-btn.active {
    background-color: #10b981;
    color: white;
}

/* Quick Add Buttons */
.quick-add-btn {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.quick-add-btn:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

.quick-add-btn:active {
    transform: translateY(0);
}

/* Action Buttons in Activity Log */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.edit-btn {
    background-color: #e0f2fe;
    color: #0ea5e9;
}

.edit-btn:hover {
    background-color: #bae6fd;
}

.delete-btn {
    background-color: #fee2e2;
    color: #ef4444;
}

.delete-btn:hover {
    background-color: #fecaca;
}

/* Empty State for Activity Log */
.empty-state {
    text-align: center;
}

.empty-state i {
    display: block;
    margin: 0 auto 0.5rem;
}

/* Media Queries for Responsive Design */
@media (max-width: 640px) {
    .stat-value {
        font-size: 1.25rem;
    }
    
    .action-btn {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    #step-count {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .stat-box {
        padding: 0.75rem;
    }
}

/* Focus States for Accessibility */
button:focus, 
input:focus, 
select:focus, 
textarea:focus {
    outline: 2px solid rgba(16, 185, 129, 0.5);
    outline-offset: 2px;
}

/* Chart Container */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 100%;
} 