/* Workout Stats Section - Lift Log Only */
#lift-log .workout-stats-section {
    margin-bottom: 2rem;
}

#lift-log .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#lift-log .stat-card {
    background: var(--bg-secondary);
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    transform: translateY(0);
}

#lift-log .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

#lift-log .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

#lift-log .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Recent Workouts Section - Lift Log Only */
#lift-log .recent-workouts-section {
    margin-bottom: 2rem;
}

#lift-log .recent-workouts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: var(--radius);
}

#lift-log .recent-workouts-header:hover {
    background: var(--bg-secondary);
    transform: scale(1.01);
}

#lift-log .recent-workouts-section h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

#lift-log .collapse-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg);
}

#lift-log .collapse-btn:hover {
    background: var(--bg-secondary);
    transform: rotate(0deg) scale(1.1);
    border-color: var(--primary);
}

#lift-log .recent-workouts-section.collapsed .collapse-btn {
    transform: rotate(180deg);
}

#lift-log .recent-workouts-section.collapsed .collapse-btn:hover {
    transform: rotate(180deg) scale(1.1);
}

#lift-log .recent-workouts-list {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#lift-log .recent-workouts-section.collapsed .recent-workouts-list {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    border: none;
    margin-top: 0;
}

#lift-log .recent-workout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    position: relative;
}

#lift-log .recent-workout-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(8px);
    box-shadow: -4px 0 0 var(--primary);
}

#lift-log .recent-workout-item:active {
    transform: translateX(4px);
    transition: all 0.1s ease;
}

#lift-log .recent-workout-item:last-child {
    border-bottom: none;
}

#lift-log .workout-info {
    flex: 1;
}

#lift-log .workout-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

#lift-log .workout-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

#lift-log .workout-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    transform: translateX(0);
}

#lift-log .recent-workout-item:hover .workout-arrow {
    color: var(--primary);
    transform: translateX(5px);
}

#lift-log .recent-workout-item.active:hover .workout-arrow {
    color: white;
    transform: translateX(5px);
}

#lift-log .empty-workouts {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

#lift-log .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

#lift-log .empty-workouts p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    color: var(--text-secondary);
}

#lift-log .empty-workouts small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Workout Display Improvements - Lift Log Only */
#lift-log .workout-display {
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    margin-top: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: slideInWorkout 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInWorkout {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#lift-log .workout-display.fade-out {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.3s ease;
}

#lift-log .workout-exercises {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#lift-log .workout-exercise {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#lift-log .workout-exercise:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

#lift-log .workout-exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

#lift-log .workout-exercise-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

#lift-log .workout-sets {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

#lift-log .workout-set {
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#lift-log .recent-workout-item.active {
    background: var(--primary);
    color: white;
    transform: translateX(8px);
    box-shadow: -4px 0 0 var(--primary-dark);
}

#lift-log .recent-workout-item.active .workout-arrow {
    color: white;
}

#lift-log .workout-display-header {
    background: var(--bg-secondary);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

#lift-log .close-workout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    transform: scale(1);
    margin-bottom: 10px;
}

#lift-log .close-workout-btn:hover {
    background: #c82333;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

#lift-log .close-workout-btn:active {
    transform: scale(0.98);
}