.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);
}

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

.rule-explanation {
    background: linear-gradient(135deg, var(--primary-color), #3D7A8C);
    color: var(--white);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}

.rule-explanation h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.rule-explanation p {
    font-size: 1rem;
    opacity: 0.95;
}

.rule-explanation strong {
    font-weight: 700;
}

.timer-section {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    text-align: center;
}

.timer-display {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.timer-ring {
    position: relative;
    width: 220px;
    height: 220px;
}

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

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

.ring-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.ring-progress.break {
    stroke: var(--secondary-color);
}

.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-time {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.timer-phase {
    font-size: 0.95rem;
    color: #64748B;
}

.timer-phase.break {
    color: var(--secondary-color);
    font-weight: 600;
}

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

.timer-controls .btn {
    min-width: 130px;
}

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

.session-stats {
    display: flex;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748B;
}

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

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

.exercise-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.exercise-item:hover {
    background-color: var(--accent-color);
}

.exercise-icon {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.exercise-info {
    flex: 1;
}

.exercise-info h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.exercise-info p {
    font-size: 0.9rem;
    color: #64748B;
}

.exercise-start {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.exercise-start:hover {
    background-color: #3D7A8C;
}

.exercise-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.exercise-modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 25px;
}

.modal-visual {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    position: relative;
}

.visual-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.visual-circle.blink {
    animation: blink 0.5s ease-in-out infinite;
}

.visual-circle.roll {
    animation: roll 2s linear infinite;
}

.visual-circle.focus {
    animation: focus 3s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

@keyframes roll {
    0% { transform: rotate(0deg) translateX(20px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

@keyframes focus {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.5); }
}

.modal-instruction {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.modal-timer {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.modal-close {
    padding: 12px 30px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--border-color);
}

@media (max-width: 768px) {
    .timer-ring {
        width: 180px;
        height: 180px;
    }

    .timer-time {
        font-size: 2rem;
    }

    .exercise-item {
        flex-wrap: wrap;
    }

    .exercise-start {
        width: 100%;
        margin-top: 10px;
    }
}

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

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

    .modal-content {
        padding: 30px 20px;
    }

    .modal-visual {
        width: 120px;
        height: 120px;
    }
}
