/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    /* Variáveis CSS para as barras do dispositivo (gerenciadas pelo managebar.js) */
    --statusbar-height: 28px;
    --actionbar-height: 45px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #EDEEF7 0%, #E4FBFF 100%);
    min-height: 100vh;
    color: #333;
    position: relative;
    /* Adiciona padding para compensar as barras fixas */
    padding-top: var(--statusbar-height);
    padding-bottom: var(--actionbar-height);
}

/* Device Status Bar - Barra fixa no topo */
.device-statusbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--statusbar-height);
    background: linear-gradient(135deg, #7868E6 0%, #6554D1 100%);
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(120, 104, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.3s ease;
}

/* Device Action Bar - Barra fixa embaixo */
.device-actionbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--actionbar-height);
    background: linear-gradient(135deg, #7868E6 0%, #6554D1 100%);
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(255, 180, 180, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.3s ease;
}

/* Global SVG Icon Styles */
.icon svg,
.nav-icon svg,
.btn-icon svg,
.info-icon svg,
.benefit-icon svg,
.tip-icon svg,
.progress-icon svg,
.achievement-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Icon color inheritance */
.icon-muscle svg,
.icon-close svg,
.icon-target svg,
.icon-check svg,
.icon-users svg,
.icon-clock svg,
.icon-home svg,
.icon-trending svg,
.icon-activity svg,
.icon-lightbulb svg,
.icon-play svg,
.icon-pause svg,
.icon-stop svg,
.icon-info-small svg,
.icon-trophy svg,
.icon-calendar svg,
.icon-heart svg,
.icon-target svg,
.icon-award svg,
.icon-star svg,
.icon-medal svg,
.icon-crown svg,
.icon-heart-small svg,
.fab-icon svg {
    width: 100%;
    height: 100%;
}

/* Paper Texture Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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%),
        radial-gradient(circle at 40% 40%, rgba(255, 180, 180, 0.05) 0%, transparent 50%);
    background-size: 300px 300px, 200px 200px, 400px 400px;
    pointer-events: none;
    z-index: -1;
}

/* App Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 30px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(120, 104, 230, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(120, 104, 230, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.logo-link:focus {
    outline: 2px solid #7868E6;
    outline-offset: 4px;
    border-radius: 50%;
}

.header-logo:hover {
    transform: translateY(-5px) rotate(5deg);
    filter: drop-shadow(0 6px 15px rgba(120, 104, 230, 0.4));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

.header-title {
    font-size: 2.5rem;
    color: #7868E6;
    margin-bottom: 10px;
    font-weight: 700;
}

.header-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(120, 104, 230, 0.1);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #666;
}

.nav-btn:hover {
    background: rgba(184, 181, 255, 0.2);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: #7868E6;
    color: white;
    box-shadow: 0 4px 15px rgba(120, 104, 230, 0.3);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-bottom: 30px;
}

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

.page.active {
    display: block;
}

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

/* Timer Page */
.timer-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(120, 104, 230, 0.1);
    backdrop-filter: blur(10px);
    max-width: 100%;
    overflow-x: hidden;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, rgba(184, 181, 255, 0.15) 0%, rgba(228, 251, 255, 0.15) 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid rgba(120, 104, 230, 0.2);
    animation: slideInDown 0.5s ease-out;
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.welcome-header h3 {
    color: #7868E6;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-header h3 .icon-muscle {
    width: 28px;
    height: 28px;
}

.close-welcome {
    background: rgba(255, 180, 180, 0.2);
    border: none;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.close-welcome:hover {
    background: #FFB4B4;
    color: white;
    transform: rotate(90deg);
}

.welcome-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #7868E6;
}

.info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: #7868E6;
}

.info-text h4 {
    color: #7868E6;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.info-text p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 8px;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    color: #7868E6;
}

.benefit-text {
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Exercise Guide */
.exercise-guide {
    background: rgba(184, 181, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.exercise-guide h3 {
    color: #7868E6;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.exercise-guide h3 .icon-activity {
    width: 24px;
    height: 24px;
}

.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.guide-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(120, 104, 230, 0.2);
    border-color: #7868E6;
}

.guide-number {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #7868E6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.guide-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.guide-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.guide-settings {
    background: rgba(120, 104, 230, 0.1);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: #7868E6;
    font-weight: 600;
}

.toggle-guide {
    background: transparent;
    border: 2px solid #7868E6;
    color: #7868E6;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.toggle-guide:hover {
    background: #7868E6;
    color: white;
}

/* Exercise Tips */
.exercise-tip {
    background: linear-gradient(135deg, #FFE58F 0%, #FFD666 100%);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(255, 214, 102, 0.3);
    animation: tipPulse 2s ease-in-out infinite;
}

.tip-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #8B4513;
}

.tip-text {
    color: #8B4513;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

/* Info Tooltip */
.info-tooltip {
    cursor: help;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    margin-left: 5px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    color: #7868E6;
}

.info-tooltip:hover {
    opacity: 1;
}

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

.timer-circle {
    width: 300px;
    height: 300px;
    border: 8px solid #EDEEF7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #B8B5FF 0%, #7868E6 100%);
    transition: all 0.3s ease;
}

.timer-circle.contracting {
    border-color: #FFB4B4;
    animation: pulse 1s infinite;
}

.timer-circle.relaxing {
    border-color: #E4FBFF;
    animation: breathe 2s infinite;
}

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

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

.timer-inner {
    text-align: center;
    color: white;
}

.timer-time {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.timer-phase {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}

.timer-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(184, 181, 255, 0.1);
    border-radius: 15px;
}

.series-counter, .exercise-counter {
    text-align: center;
}

.series-label, .exercise-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.series-current, .exercise-current {
    font-size: 2rem;
    font-weight: 700;
    color: #7868E6;
}

.series-total, .exercise-total {
    font-size: 1.5rem;
    color: #999;
}

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

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    flex-shrink: 0;
}

.start-btn {
    background: #7868E6;
    color: white;
}

.start-btn:hover:not(:disabled) {
    background: #6554D1;
    transform: translateY(-2px);
}

.pause-btn {
    background: #FFB4B4;
    color: white;
}

.pause-btn:hover:not(:disabled) {
    background: #FF9999;
    transform: translateY(-2px);
}

.stop-btn {
    background: #999;
    color: white;
}

.stop-btn:hover:not(:disabled) {
    background: #777;
    transform: translateY(-2px);
}

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

.timer-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    font-weight: 600;
    color: #555;
}

.setting-group input {
    padding: 12px;
    border: 2px solid #EDEEF7;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.setting-group input:focus {
    outline: none;
    border-color: #7868E6;
}

/* Feedback Preferences */
.feedback-preferences {
    margin-top: 30px;
    padding: 25px;
    background: rgba(184, 181, 255, 0.1);
    border-radius: 15px;
}

.feedback-preferences h3 {
    color: #7868E6;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.preference-toggles {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch {
    background: #7868E6;
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch::after {
    left: 27px;
}

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

/* Progress Page */
.progress-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(120, 104, 230, 0.1);
    backdrop-filter: blur(10px);
    max-width: 100%;
    overflow-x: hidden; /* Previne overflow horizontal */
}

.progress-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.2rem;
    color: #7868E6;
    margin-bottom: 10px;
}

.progress-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-stat {
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(120, 104, 230, 0.2);
}

.hero-stat.primary {
    background: linear-gradient(135deg, #7868E6 0%, #B8B5FF 100%);
    color: white;
}

.hero-stat.secondary {
    background: linear-gradient(135deg, #FFB4B4 0%, #FFD666 100%);
    color: white;
}

.hero-stat-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.hero-stat-icon {
    width: 60px;
    height: 60px;
    opacity: 0.9;
}

.hero-stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 600;
}

.hero-stat-badge {
    margin-top: 10px;
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(120, 104, 230, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(120, 104, 230, 0.15);
    border-color: #7868E6;
}

.stat-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
    color: #7868E6;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #7868E6;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

/* Progress Grid (Two Columns) */
.progress-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.progress-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(120, 104, 230, 0.08);
    min-width: 0; /* Previne overflow */
    overflow: hidden; /* Garante que nada saia */
}

.section-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h3 {
    color: #7868E6;
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h3 .icon-trophy {
    width: 24px;
    height: 24px;
}

.section-subtitle {
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Weekly Section */
.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    width: 100%; /* Garante que não ultrapasse o container */
}

.week-day {
    background: rgba(184, 181, 255, 0.08);
    padding: 12px 8px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    min-width: 0; /* Permite que o grid item encolha */
    overflow: hidden; /* Previne overflow de texto */
}

.week-day:hover {
    background: rgba(184, 181, 255, 0.15);
    transform: scale(1.05);
}

.week-day.completed {
    background: linear-gradient(135deg, #7868E6 0%, #B8B5FF 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(120, 104, 230, 0.3);
}

.week-day.completed:hover {
    transform: scale(1.08);
}

.week-day.today {
    border-color: #FFB4B4;
    font-weight: 700;
}

.day-name {
    font-size: 0.75rem;
    margin-bottom: 5px;
    opacity: 0.8;
    text-transform: uppercase;
    font-weight: 600;
}

.day-number {
    font-size: 1.3rem;
    font-weight: 700;
}

.week-summary {
    margin-top: 15px;
    padding: 15px;
    background: rgba(184, 181, 255, 0.08);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

/* Chart Section */
.chart-container {
    background: rgba(184, 181, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow-x: auto; /* Permite scroll horizontal se necessário */
}

.chart-bar {
    background: #7868E6;
    margin: 0 2px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.chart-bar:hover {
    background: #6554D1;
    box-shadow: 0 4px 15px rgba(120, 104, 230, 0.3);
}

/* Achievements Wrapper */
.achievements-wrapper {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(120, 104, 230, 0.08);
    margin-bottom: 30px;
}

.achievements-count {
    background: #7868E6;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.achievement-tier-header {
    grid-column: 1 / -1;
    color: #7868E6;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 15px;
    margin-bottom: 5px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(120, 104, 230, 0.2);
}

.achievement-tier-header:first-child {
    margin-top: 0;
}

.achievement-badge {
    background: white;
    border-radius: 12px;
    padding: 18px 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.achievement-badge.unlocked {
    border-color: #7868E6;
    box-shadow: 0 4px 15px rgba(120, 104, 230, 0.2);
}

.achievement-badge.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.achievement-badge:hover {
    transform: translateY(-5px);
}

.achievement-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 8px;
    display: block;
    color: #7868E6;
}

.achievement-name {
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
    margin-bottom: 4px;
    line-height: 1.2;
}

.achievement-desc {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.3;
}

.achievement-badge.unlocked::before {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: #4CAF50;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Motivation Card Large */
.motivation-card-large {
    background: linear-gradient(135deg, #7868E6 0%, #B8B5FF 100%);
    border-radius: 20px;
    padding: 35px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 10px 40px rgba(120, 104, 230, 0.3);
    position: relative;
    overflow: hidden;
}

.motivation-card-large::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: motivationGlow 4s ease-in-out infinite;
}

@keyframes motivationGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -30px); }
}

.motivation-icon {
    width: 80px;
    height: 80px;
    color: white;
    opacity: 0.9;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.motivation-content {
    position: relative;
    z-index: 1;
    color: white;
}

.motivation-content h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.motivation-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
    opacity: 0.95;
}

/* About/Learn More Page Specific Styles */
.about-section {
    margin-bottom: 35px;
}

.about-section h3 {
    color: #7868E6;
    font-size: 1.35rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-section h3 span[class^="icon-"] {
    width: 26px;
    height: 26px;
}

.about-section p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.highlight-box {
    background: linear-gradient(135deg, #FFE58F 0%, #FFD666 100%);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border-left: 4px solid #FFA500;
}

.highlight-box p {
    color: #8B4513;
    font-weight: 600;
    margin: 0;
    font-size: 0.95rem;
}

.methodology-box {
    background: rgba(184, 181, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 12px;
    border-left: 4px solid #7868E6;
}

.methodology-box h4 {
    color: #7868E6;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.methodology-box ul {
    margin-left: 0;
    list-style: none;
}

.methodology-box li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.methodology-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #7868E6;
    font-weight: bold;
}

.feature-list {
    list-style: none;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feature-list li {
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #7868E6;
    font-weight: bold;
}

.evidence-list {
    list-style: none;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.evidence-list li {
    padding: 10px;
    background: rgba(184, 181, 255, 0.05);
    border-left: 3px solid #7868E6;
    border-radius: 0 5px 5px 0;
    font-size: 0.9rem;
}

.benefits-grid-about {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.benefit-card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(120, 104, 230, 0.1);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(120, 104, 230, 0.2);
}

.benefit-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #7868E6;
    margin-bottom: 8px;
}

.benefit-card p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.indication-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.indication-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(120, 104, 230, 0.1);
}

.indication-item h4 {
    color: #7868E6;
    margin-bottom: 12px;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(120, 104, 230, 0.2);
    padding-bottom: 8px;
}

.indication-item ul {
    list-style: none;
    margin-left: 0;
}

.indication-item li {
    padding: 6px 0 6px 25px;
    position: relative;
    color: #555;
    font-size: 0.9rem;
}

.indication-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #7868E6;
    font-weight: bold;
}

.about-b20 {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-top: 15px;
}

.about-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(120, 104, 230, 0.2));
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(120, 104, 230, 0.1);
    transition: all 0.3s ease;
}

.about-logo:hover {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 6px 25px rgba(120, 104, 230, 0.2);
}

.about-b20-text {
    flex: 1;
}

.contact-info {
    background: rgba(184, 181, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.contact-info strong {
    color: #7868E6;
}

/* Content Pages (Privacy, FAQ) */
.content-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(120, 104, 230, 0.1);
    backdrop-filter: blur(10px);
}

/* Specific styling for content pages - todas exibem conteúdo completo sem scroll */
#privacy-page .content-container,
#faq-page .content-container,
#about-page .content-container {
    max-height: none;
    overflow-y: visible;
}

#about-page .page-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Custom scrollbar for content container */
.content-container::-webkit-scrollbar {
    width: 8px;
}

.content-container::-webkit-scrollbar-track {
    background: rgba(184, 181, 255, 0.1);
    border-radius: 10px;
}

.content-container::-webkit-scrollbar-thumb {
    background: #7868E6;
    border-radius: 10px;
}

.content-container::-webkit-scrollbar-thumb:hover {
    background: #6554D1;
}

.content-section {
    margin-bottom: 30px;
}

.content-section h3 {
    color: #7868E6;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.98rem;
}

.content-section ul, .content-section ol {
    color: #555;
    line-height: 1.7;
    margin-left: 25px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.content-section strong {
    color: #7868E6;
    font-weight: 600;
}

.content-section a {
    color: #7868E6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.content-section a:hover {
    color: #6554D1;
    text-decoration: underline;
}

.content-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(120, 104, 230, 0.2);
    text-align: center;
    color: #666;
}

.content-footer p {
    font-size: 0.9rem;
    font-style: italic;
}

/* FAQ Styles */
.faq-section {
    margin-bottom: 40px;
}

.faq-section h3 {
    color: #7868E6;
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid rgba(120, 104, 230, 0.3);
}

.faq-item {
    background: rgba(184, 181, 255, 0.05);
    border-left: 4px solid #7868E6;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(184, 181, 255, 0.1);
    transform: translateX(5px);
}

.faq-question {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.faq-question::before {
    content: '❓';
    margin-right: 10px;
    font-size: 1.2rem;
}

.faq-answer {
    color: #555;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer ul, .faq-answer ol {
    margin-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer strong {
    color: #7868E6;
}

/* Footer */
.footer {
    padding: 50px 20px 70px;
    color: #666;
    font-size: 0.9rem;
    border-top: 2px solid rgba(120, 104, 230, 0.1);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(237, 238, 247, 0.9));
    backdrop-filter: blur(10px);
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(120, 104, 230, 0.15);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(120, 104, 230, 0.2));
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(120, 104, 230, 0.3));
}

.footer-section h4 {
    color: #7868E6;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
}

.footer-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-left: 65px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav-link {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
    font-weight: 500;
}

.footer-nav-link:hover {
    color: #7868E6;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright {
    margin: 0;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-heart-small {
    width: 14px;
    height: 14px;
    display: inline-flex;
    color: #FF6B9D;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
}

.footer-version {
    margin: 0;
    color: #999;
    font-size: 0.85rem;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: calc(var(--actionbar-height) + 85px);
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7868E6 0%, #B8B5FF 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(120, 104, 230, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.fab.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    animation: fabSlideIn 0.3s ease-out, fabPulse 2s ease-in-out 0.5s infinite;
}

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

@keyframes fabPulse {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(120, 104, 230, 0.4);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(120, 104, 230, 0.4), 0 0 0 8px rgba(120, 104, 230, 0.1);
    }
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(120, 104, 230, 0.5);
    background: linear-gradient(135deg, #6554D1 0%, #9D99E6 100%);
}

.fab:active {
    transform: scale(0.95);
}

.fab::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.fab:hover::before {
    opacity: 1;
    transform: scale(1);
}

.fab-icon {
    width: 28px;
    height: 28px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-icon svg {
    stroke: currentColor;
}

/* Responsive Design */

/* Tablet e telas médias */
@media (max-width: 1024px) {
    .progress-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .week-grid {
        gap: 6px;
    }
    
    .week-day {
        padding: 10px 6px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .app-container {
        padding: 0 15px;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .header-logo {
        width: 60px;
        height: 60px;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .footer-logo {
        width: 40px;
        height: 40px;
    }
    
    .footer-brand {
        gap: 10px;
        justify-content: center;
    }
    
    .footer-description {
        margin-left: 0;
    }
    
    .about-b20 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-logo {
        width: 100px;
        height: 100px;
    }
    
    .navigation {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-btn {
        justify-content: center;
        padding: 15px;
    }
    
    .timer-container,
    .progress-container,
    .settings-container {
        padding: 20px;
    }
    
    .content-container {
        padding: 20px;
    }
    
    #privacy-page .content-container,
    #faq-page .content-container,
    #about-page .content-container {
        max-height: none;
        overflow-y: visible;
        padding: 25px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-stat-number {
        font-size: 3rem;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-container {
        padding: 20px;
    }
    
    .progress-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .progress-section {
        padding: 20px;
    }
    
    .motivation-card-large {
        flex-direction: column;
        text-align: center;
    }
    
    .motivation-icon {
        width: 60px;
        height: 60px;
    }
    
    .timer-circle {
        width: 250px;
        height: 250px;
    }
    
    .timer-time {
        font-size: 2.5rem;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .timer-settings {
        grid-template-columns: 1fr;
    }
    
    .progress-summary {
        grid-template-columns: 1fr;
    }
    
    .week-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }
    
    .week-day {
        padding: 10px 5px;
    }
    
    .day-number {
        font-size: 1rem;
    }
    
    .faq-item {
        padding: 15px;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .content-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-separator {
        display: none;
    }
    
    .welcome-section {
        padding: 15px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-cards {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievement-tier-header {
        font-size: 0.85rem;
    }
    
    .benefits-grid-about {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .indication-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .evidence-list {
        grid-template-columns: 1fr;
    }
    
    .preference-toggles {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-nav {
        align-items: center;
    }
    
    .footer-nav-link:hover {
        padding-left: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .fab {
        bottom: calc(var(--actionbar-height) + 80px);
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .fab-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .timer-circle {
        width: 200px;
        height: 200px;
    }
    
    .timer-time {
        font-size: 2rem;
    }
    
    .timer-phase {
        font-size: 1rem;
    }
    
    .hero-stat {
        padding: 20px;
    }
    
    .hero-stat-number {
        font-size: 2.5rem;
    }
    
    .hero-stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 24px;
        height: 24px;
    }
    
    .week-day {
        padding: 8px 2px;
        font-size: 0.85rem;
    }
    
    .day-number {
        font-size: 0.95rem;
    }
    
    .day-name {
        font-size: 0.6rem;
    }
    
    .week-grid {
        gap: 4px;
    }
    
    .progress-container {
        padding: 15px;
    }
    
    .progress-section {
        padding: 15px;
    }
    
    .benefits-grid-about {
        grid-template-columns: 1fr;
    }
    
    .benefit-number {
        font-size: 2rem;
    }
    
    .about-section h3 {
        font-size: 1.2rem;
    }
    
    .about-section p {
        font-size: 0.95rem;
    }
    
    .about-section h3 span[class^="icon-"] {
        width: 22px;
        height: 22px;
    }
    
    .about-section {
        margin-bottom: 25px;
    }
    
    .motivation-card-large {
        padding: 25px;
    }
    
    .motivation-icon {
        width: 50px;
        height: 50px;
    }
    
    .motivation-content h3 {
        font-size: 1.3rem;
    }
    
    .motivation-text {
        font-size: 1rem;
    }
    
    .footer {
        padding: 30px 15px 65px;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .header-logo {
        width: 50px;
        height: 50px;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
    
    .about-logo {
        width: 80px;
        height: 80px;
        padding: 10px;
    }
    
    .footer-logo {
        width: 35px;
        height: 35px;
    }
    
    .fab {
        bottom: calc(var(--actionbar-height) + 80px);
        right: 15px;
        width: 48px;
        height: 48px;
    }
    
    .fab-icon {
        width: 22px;
        height: 22px;
    }
}

/* Animations */
@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.slide-out {
    animation: slideOut 0.3s ease-out;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #7868E6;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 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 styles for accessibility */
button:focus,
input:focus {
    outline: 2px solid #7868E6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .timer-circle {
        border-width: 4px;
    }
    
    .nav-btn.active {
        border: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fab.visible {
        animation: none !important;
    }
    
    .icon-heart-small {
        animation: none !important;
    }
    
    .header-logo {
        animation: none !important;
    }
}

/* Logo fallback - hide if image fails to load */
img.header-logo[src="logo.png"],
img.footer-logo[src="logo.png"],
img.about-logo[src="logo.png"] {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* If logo doesn't exist, hide gracefully */
.header-logo:not([src]),
.footer-logo:not([src]),
.about-logo:not([src]) {
    display: none;
}
