/* CSS Custom Properties */
:root {
    --primary-color: #7868E6;
    --secondary-color: #B8B5FF;
    --accent-color: #FFB4B4;
    --background-color: #EDEEF7;
    --surface-color: #E4FBFF;
    --text-color: #333333;
    --text-secondary: #666666;
    --border-color: #E0E0E0;
    --shadow-light: 0 2px 8px rgba(120, 104, 230, 0.1);
    --shadow-medium: 0 4px 16px rgba(120, 104, 230, 0.15);
    --shadow-heavy: 0 8px 32px rgba(120, 104, 230, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 104, 230, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(184, 181, 255, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Paper Texture Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.1) 2px,
            rgba(255, 255, 255, 0.1) 4px
        );
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-medium);
}

.header.menu-open {
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header {
    overflow-x: hidden;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: white;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
    animation: fadeInLogo 0.6s ease-out;
}

.logo:hover .logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-text {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: var(--transition);
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--surface-color), rgba(184, 181, 255, 0.3));
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-light);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-title {
    font-size: clamp(1.4rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 25px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-light);
}

.feature-icon {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    width: 1.2em;
    height: 1.2em;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.hero-actions-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.hero-primary-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-secondary-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-help-link {
    margin-top: 1rem;
}

.help-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.help-link:hover {
    color: var(--primary-color);
    background: rgba(120, 104, 230, 0.1);
}

.help-link-icon {
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 250px;
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-header p {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.5;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label-icon {
    display: inline-flex;
    align-items: center;
    width: 1.2em;
    height: 1.2em;
    color: var(--primary-color);
}

.filter-label-icon svg {
    width: 100%;
    height: 100%;
}

.label-help {
    cursor: help;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.label-help:hover {
    transform: scale(1.2);
}

.filter-select {
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(120, 104, 230, 0.1);
}

/* Exercises Grid */
.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.exercise-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.exercise-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.exercise-thumbnail {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--surface-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.exercise-thumbnail-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(120, 104, 230, 0.2);
    transition: var(--transition);
}

.exercise-card:hover .exercise-thumbnail-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(120, 104, 230, 0.3);
}

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

.exercise-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.exercise-card:hover .exercise-thumbnail::before {
    transform: translateX(100%);
}

.exercise-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.exercise-info {
    padding: 1.5rem;
}

.exercise-title {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.exercise-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.exercise-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-tag {
    background: var(--surface-color);
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.meta-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.meta-tag-duration {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
}

.meta-tag-difficulty {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #7b1fa2;
}

.meta-tag-category {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #388e3c;
}

.exercise-completed {
    opacity: 0.7;
    position: relative;
}

.exercise-completed::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Timer Section */
.timer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.timer-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.exercise-info-column {
    display: flex;
    flex-direction: column;
}

.timer-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.timer-display {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.timer-circle {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

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

.timer-background {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 4;
}

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

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

.timer-time {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timer-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-timer {
    min-width: 140px;
    position: relative;
}

.btn-timer:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-timer:disabled:hover {
    transform: none;
}

.timer-settings {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.timer-settings h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timer-settings h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-item label {
    font-weight: 600;
    color: var(--text-color);
}

.setting-item input {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.setting-item input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(120, 104, 230, 0.1);
}

.current-exercise {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    height: 100%;
}

.current-exercise-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1.5rem;
}

.current-exercise-header h3 {
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.exercise-status-indicator {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.current-exercise-content {
    padding: 2rem;
}

.current-exercise-name {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.current-exercise-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.current-exercise-instructions,
.current-exercise-precautions {
    margin-bottom: 1.5rem;
}

.current-exercise-instructions h5,
.current-exercise-precautions h5 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-exercise-precautions h5 {
    color: #f44336;
}

.current-exercise-instructions ol,
.current-exercise-precautions ul {
    margin: 0;
    padding-left: 1.5rem;
}

.current-exercise-instructions li,
.current-exercise-precautions li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.current-exercise-precautions li {
    color: #d32f2f;
}

/* No Exercise Selected Placeholder */
.no-exercise-selected {
    background: linear-gradient(135deg, var(--background-color), var(--surface-color));
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px dashed var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
}

.placeholder-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary-color);
}

.no-exercise-selected h4 {
    color: var(--primary-color);
    margin: 0;
}

.no-exercise-selected p {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
    margin: 0;
}

.exercise-info h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.exercise-info p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Progress Section */
.progress-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.progress-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
}

.progress-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.progress-stat {
    margin-bottom: 1.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-unit {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-left: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
}

.streak-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
    margin-top: 1rem;
}

.streak-day {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.streak-day.active {
    background: var(--primary-color);
    color: white;
}

.streak-day.today {
    border: 2px solid var(--accent-color);
}

/* Achievements */
.achievements {
    margin-bottom: 3rem;
}

.achievements h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.achievement-card.unlocked .achievement-icon {
    filter: none;
}

.achievement-card.locked .achievement-icon {
    filter: grayscale(100%);
    opacity: 0.5;
}

.achievement-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.achievement-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Exercise History */
.exercise-history {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.exercise-history h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.history-filters {
    margin-bottom: 1.5rem;
}

.history-filters select {
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    color: var(--text-color);
    font-size: 1rem;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.history-item:hover {
    background: var(--surface-color);
}

.history-item:last-child {
    border-bottom: none;
}

.history-exercise {
    font-weight: 600;
    color: var(--text-color);
}

.history-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Profile Form */
.profile-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group > label {
    display: flex;
}

.checkbox-group label {
    display: flex;
    font-weight: normal;
}

.form-label-icon {
    display: inline-flex;
    align-items: center;
    width: 1.2em;
    height: 1.2em;
    color: var(--primary-color);
}

.form-label-icon svg {
    width: 100%;
    height: 100%;
}

.form-label-icon-important {
    color: #f39c12;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(120, 104, 230, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1 1 auto;
    min-width: 180px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 2rem 0;
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: white;
    margin: 0 auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 700px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    animation: slideIn 0.3s ease;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.modal-body {
    padding: 1.5rem;
}

.exercise-video {
    margin-bottom: 2rem;
}

.exercise-video video {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.exercise-details {
    margin-bottom: 2rem;
}

.exercise-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    background: var(--surface-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.exercise-instructions,
.exercise-precautions {
    margin-bottom: 1.5rem;
}

.exercise-instructions h4,
.exercise-precautions h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.exercise-instructions ol,
.exercise-precautions ul {
    padding-left: 1.5rem;
}

.exercise-instructions li,
.exercise-precautions li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1001;
    max-width: 400px;
}

.notification {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    animation: slideInRight 0.3s ease;
    position: relative;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.success {
    border-left-color: #4CAF50;
}

.notification.error {
    border-left-color: #f44336;
}

.notification.warning {
    border-left-color: #ff9800;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
    line-height: 1;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    transform: rotate(90deg);
}

.notification.success .notification-close:hover {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.notification.error .notification-close:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.notification.warning .notification-close:hover {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.notification-close:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.notification-close:active {
    transform: scale(0.9);
}

/* Recent Activity */
.recent-activity {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.recent-activity h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.activity-item:hover {
    background: var(--surface-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-text {
    color: var(--text-color);
}

.activity-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.no-activity {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 4px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 2px 8px rgba(120, 104, 230, 0.3));
    transition: var(--transition);
}

.footer-logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.3) drop-shadow(0 4px 12px rgba(120, 104, 230, 0.5));
}

.footer-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(184, 181, 255, 0.3);
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-badge {
    display: inline-block;
    background: rgba(120, 104, 230, 0.2);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
}

.footer-icon svg {
    width: 100%;
    height: 100%;
}

.footer-partners {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-partner-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-block;
}

.footer-partner-link:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    color: #ecf0f1;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    color: #95a5a6;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-disclaimer strong {
    color: #ecf0f1;
}

.disclaimer-icon {
    display: inline-flex;
    align-items: center;
    width: 1em;
    height: 1em;
    color: #f39c12;
}

.disclaimer-icon svg {
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .exercises-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Menu Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .logo-image {
        height: 35px;
    }

    .logo-text {
        font-size: clamp(1rem, 3.5vw, 1.4rem);
    }

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 101;
    }

    .form-actions {
        gap: 0.8rem;
    }

    .form-actions .btn {
        min-width: 150px;
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85%;
        height: 100vh;
        background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
        z-index: 99;
        overflow-y: auto;
    }

    .nav-menu::before {
        content: 'Menu';
        display: block;
        padding: 1.5rem 2rem 1rem;
        font-size: 1.2rem;
        font-weight: bold;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 1rem;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.2s ease;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        padding-left: 2.5rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-item {
        justify-content: center;
    }

    .hero-primary-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-secondary-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-large {
        width: 100%;
        min-width: auto;
    }

    .btn-small {
        width: 100%;
    }

    .btn {
        font-size: 0.95rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .timer-circle {
        width: 250px;
        height: 250px;
    }
    
    .timer-time {
        font-size: 2.5rem;
    }
    
    .timer-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timer-column {
        order: 1;
    }

    .exercise-info-column {
        order: 2;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

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

    .no-exercise-selected {
        padding: 2rem 1.5rem;
    }

    .timer-settings {
        padding: 1.5rem;
    }

    .timer-settings h3 {
        font-size: 1rem;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }
    
    .modal {
        padding: 0.5rem 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem auto;
        max-height: calc(100vh - 2rem);
    }

    
    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
    
    .notification-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    .notification-content {
        gap: 0.5rem;
    }

    .notification-close {
        width: 20px;
        height: 20px;
        font-size: 1.3rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .profile-form {
        padding: 1.5rem;
    }

    .exercise-card::after {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .recent-activity h3,
    .exercise-history h3,
    .achievements h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 2rem 1rem;
    }

    .main {
        padding: 1.5rem 0;
    }

    .logo-image {
        height: 30px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo {
        gap: 0.5rem;
    }

    .quick-stats {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .modal-header h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .modal-body {
        padding: 1rem;
    }

    .exercise-thumbnail {
        height: 150px;
        font-size: 2.5rem;
    }

    .filter-select {
        font-size: 0.95rem;
        padding: 0.6rem;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group label {
        font-size: 0.9rem;
    }

    .notification-container {
        top: 80px;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
    
    .timer-circle {
        width: 200px;
        height: 200px;
    }
    
    .timer-time {
        font-size: 2rem;
    }

    .timer-label {
        font-size: 1rem;
    }

    .btn-large {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }

    .feature-item {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .help-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .current-exercise-content {
        padding: 1.5rem;
    }

    .current-exercise-name {
        font-size: 1.2rem;
    }

    .current-exercise-instructions h5,
    .current-exercise-precautions h5 {
        font-size: 0.95rem;
    }

    .placeholder-icon {
        width: 60px;
        height: 60px;
    }

    .placeholder-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .exercises-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .progress-overview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .setting-item input {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links,
    .footer-partners {
        align-items: center;
    }

    .footer-title {
        font-size: 1.2rem;
    }

    .footer-subtitle {
        font-size: 1rem;
    }

    .footer-link,
    .footer-partner-link {
        font-size: 0.9rem;
    }

    .achievement-card {
        padding: 1.2rem;
    }

    .achievement-icon {
        font-size: 2rem;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .meta-tag {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 1.5rem 0.5rem;
    }

    .logo-image {
        height: 28px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .form-actions {
        gap: 0.6rem;
    }

    .form-actions .btn {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    .form-actions .btn-outline {
        margin-top: 0.6rem;
    }

    .btn-large {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
        min-width: auto;
    }

    .btn-small {
        font-size: 0.85rem;
    }

    .feature-item {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .timer-circle {
        width: 180px;
        height: 180px;
    }

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

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

    .modal-content {
        width: 98%;
        margin: 0.5rem auto;
        padding: 0;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h3 {
        font-size: 1rem;
    }

    .modal-footer {
        padding: 1rem;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .footer-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .help-link {
        font-size: 0.85rem;
    }

    .achievement-title,
    .history-exercise {
        font-size: 0.95rem;
    }

    .progress-card h3 {
        font-size: 1.1rem;
    }

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

    .checkbox-group label {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .form-actions .btn {
        width: 100%;
        min-width: auto;
        font-size: 0.95rem;
    }

    .form-actions .btn-primary {
        order: -1; /* Botão principal sempre primeiro */
        box-shadow: 0 4px 12px rgba(120, 104, 230, 0.3);
        font-weight: 600;
    }

    .form-actions .btn-secondary {
        order: 0;
    }

    .form-actions .btn-outline {
        order: 1; /* Botão de limpar por último */
        margin-top: 0.8rem; /* Separação extra para botão destrutivo */
        border: 2px solid var(--error-color);
        color: var(--error-color);
    }

    .form-actions .btn-outline:hover {
        background: var(--error-color);
        color: white;
        border-color: var(--error-color);
    }

    .hero-help-link {
        margin-top: 0.5rem;
    }

    .footer-description {
        font-size: 0.85rem;
    }

    .footer-badge {
        font-size: 0.75rem;
    }

    .footer-logo-image {
        height: 50px;
    }

    .current-exercise-content {
        padding: 1.2rem;
    }

    .current-exercise-name {
        font-size: 1.1rem;
    }

    .current-exercise-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .current-exercise-instructions li,
    .current-exercise-precautions li {
        font-size: 0.85rem;
    }

    .no-exercise-selected {
        padding: 2rem 1rem;
    }

    .no-exercise-selected h4 {
        font-size: 1rem;
    }

    .no-exercise-selected p {
        font-size: 0.85rem;
    }
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

/* Important Notice */
.important-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 4px solid #f39c12;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notice-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.notice-content {
    color: #856404;
    line-height: 1.6;
}

.notice-content strong {
    color: #664d03;
}

/* Modern Icon System */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
}

.icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.icon-lg {
    width: 2em;
    height: 2em;
}

.icon-sm {
    width: 1em;
    height: 1em;
}

/* Button Icons */
.btn-icon {
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.btn-icon svg {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
}

/* Help Card */
.help-card {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.help-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-icon {
    font-size: 1.5rem;
}

.help-content ol {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.help-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Tip Box */
.tip-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    border-left: 4px solid #9c27b0;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.tip-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.tip-content {
    color: #4a148c;
    line-height: 1.6;
}

.tip-content strong {
    color: #6a1b9a;
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 4px solid #4caf50;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.privacy-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.privacy-content {
    color: #1b5e20;
    line-height: 1.6;
}

.privacy-content strong {
    color: #2e7d32;
}

/* Timer Instructions */
.timer-instructions {
    background: var(--surface-color);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border-left: 3px solid var(--primary-color);
}

.instruction-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--text-color);
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    position: absolute;
    z-index: 1001;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-color) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Empty States */
.no-exercises,
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

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

.no-exercises h3,
.empty-state h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-exercises p,
.empty-state p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0.5rem 0;
}

.empty-state-tip {
    color: var(--primary-color) !important;
    font-weight: 600;
    margin-top: 1rem !important;
}

/* Enhanced Stat Cards */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(120, 104, 230, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.stat-card:hover::before {
    animation: shine 1.5s;
}

@keyframes shine {
    0% {
        top: -50%;
        right: -50%;
    }
    100% {
        top: 150%;
        right: 150%;
    }
}

/* Progress Cards Enhancement */
.progress-card {
    position: relative;
    transition: var(--transition);
}

.progress-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

/* Improved Exercise Cards */
.exercise-card {
    position: relative;
}

.exercise-card::after {
    content: '👉 Clique para detalhes';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.exercise-card:hover::after {
    opacity: 1;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Success Animations */
@keyframes success-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.success-animation {
    animation: success-bounce 0.6s ease;
}

/* Focus Visible Enhancement */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
button:focus,
input:focus,
select:focus,
textarea:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #5a4fcf;
        --secondary-color: #9b97e8;
        --text-color: #000000;
        --text-secondary: #333333;
        --border-color: #666666;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
