.tutorial-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

.tutorial-link:hover {
    border-bottom-color: var(--primary-color);
}

.stretch-app {
    max-width: 700px;
    margin: 0 auto;
}

.routine-selector {
    background-color: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.routine-selector h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.routine-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.routine-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 15px;
    background-color: var(--bg-color);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: var(--transition);
}

.routine-btn:hover {
    border-color: var(--primary-color);
    background-color: var(--accent-color);
}

.routine-btn.active {
    border-color: var(--primary-color);
    background-color: var(--accent-color);
}

.routine-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.routine-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.routine-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.routine-time {
    font-size: 0.8rem;
    color: #64748B;
}

.stretch-display {
    background-color: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.stretch-visual {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.stretch-icon-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.stretch-icon-large svg {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
}

.stretch-progress-ring {
    width: 100%;
    height: 100%;
}

.stretch-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.stretch-progress-ring .ring-bg {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 6;
}

.stretch-progress-ring .ring-progress {
    fill: none;
    stroke: var(--secondary-color);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s linear;
}

.stretch-info {
    flex: 1;
    text-align: center;
}

.stretch-name {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.stretch-instruction {
    font-size: 1rem;
    color: #64748B;
    margin-bottom: 20px;
    line-height: 1.6;
}

.stretch-timer {
    margin-bottom: 15px;
}

.timer-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stretch-counter {
    font-size: 1rem;
    color: #64748B;
}

.current-stretch {
    font-weight: 600;
    color: var(--secondary-color);
}

.stretch-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.stretch-controls .btn {
    min-width: 140px;
}

.start-btn.running {
    background: linear-gradient(135deg, #E53E3E, #C53030);
}

.upcoming-section {
    background-color: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.upcoming-section h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--bg-color);
    border-radius: 10px;
}

.upcoming-item.active {
    background-color: var(--accent-color);
    border-left: 4px solid var(--secondary-color);
}

.upcoming-item.done {
    opacity: 0.5;
}

.upcoming-number {
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.upcoming-item.done .upcoming-number {
    background-color: var(--secondary-color);
}

.upcoming-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-color);
}

.upcoming-duration {
    color: #64748B;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .routine-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .stretch-display {
        flex-direction: column;
        gap: 25px;
    }

    .stretch-visual {
        width: 150px;
        height: 150px;
    }

    .stretch-name {
        font-size: 1.3rem;
    }

    .timer-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stretch-controls {
        flex-direction: column;
    }

    .stretch-controls .btn {
        width: 100%;
    }

    .stretch-visual {
        width: 130px;
        height: 130px;
    }

    .stretch-icon-large svg {
        width: 50px;
        height: 50px;
    }
}
