/* Progress View Styles */

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.stat-card h3 {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.2;
}

.stat-input {
    font-size: 3rem;
    font-weight: 800;
    background: var(--bg);
    color: var(--accent);
    line-height: 1.2;
    border: 2px dashed var(--border);
    border-radius: 8px;
    text-align: center;
    width: 120px;
    max-width: 100%;
    padding: 8px;
    outline: none;
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto;
}

.stat-input::-webkit-outer-spin-button,
.stat-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stat-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.stat-input::placeholder {
    color: var(--muted);
    opacity: 0.5;
}

.stat-input:focus {
    border-color: var(--accent);
    border-style: solid;
    background: var(--hover);
}

.editable-stat {
    cursor: text;
}

.editable-stat:hover {
    border-color: var(--accent);
}

.editable-stat h3::after {
    content: ' ✏️';
    font-size: 0.8rem;
    opacity: 0.5;
}

.chart-container {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    height: 400px;
    position: relative;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .progress-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-card:hover {
        transform: none;
    }

    .stat-value,
    .stat-input {
        font-size: 2.5rem;
    }

    .chart-container {
        height: 300px;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .stat-value,
    .stat-input {
        font-size: 2rem;
    }

    .chart-container {
        height: 250px;
    }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .progress-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
