/* Step Counter Styles */

/* Step Display */
#stepCount {
    font-family: 'Courier New', monospace;
    font-size: 4rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    #stepCount {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    #stepCount {
        font-size: 2.5rem;
    }
}

/* Activity Chart Canvas */
#activityChart {
    width: 100%;
    height: 100%;
    display: block;
}

/* Statistics Cards */
.card-body .fs-5 {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.card-body small {
    font-size: 0.875rem;
}

/* Status Badge */
#statusBadge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Settings Section */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    font-family: 'Courier New', monospace;
}

/* Button Icons */
.toolBtn .fsvg {
    width: 14px;
    height: 14px;
}

/* Sensor Info */
.sensor-info-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
    padding: 0.5rem;
}

/* Animation for step indicator */
@keyframes pulse-step {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Recording state animation */
@keyframes pulse-recording {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

#statusBadge.bg-success {
    animation: pulse-recording 2s ease-in-out infinite;
}

/* Smooth transitions */
canvas {
    transition: opacity 0.3s ease;
}

.badge {
    transition: all 0.3s ease;
}

.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .d-flex.flex-wrap.gap-2 {
        gap: 0.5rem !important;
    }

    .toolBtn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }

    .card-body {
        padding: 1rem;
    }

    .form-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .col-6.col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .card-body .fs-5 {
        font-size: 1.1rem !important;
    }

    .card-body small {
        font-size: 0.8rem;
    }
}

/* Loading state for canvas */
canvas.loading {
    opacity: 0.5;
}

/* Reset button warning color */
#resetButton:hover {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

[data-bs-theme="dark"] #resetButton:hover {
    background-color: rgba(220, 53, 69, 0.2);
}

/* Pause button color variation */
#pauseButton:not(:disabled) {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

#pauseButton:not(:disabled):hover {
    background-color: #ffca2c;
    border-color: #ffc720;
}

/* Activity chart container */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 250px;
}

/* Settings input focus states */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Step count transition */
#stepCount {
    display: inline-block;
}
