/**
 * DELAS I.A. - Estilos Principais
 * 
 * CSS responsivo com abordagem mobile-first
 */

/* ========================================
   RESET E CONFIGURAÇÕES BÁSICAS
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais - Tom rosé suave e feminino */
    --primary-color: #e8a0bf;
    --primary-dark: #d17a9f;
    --primary-light: #f5d4e3;

    /* Cores secundárias - Lilás suave */
    --secondary-color: #c5b5d6;
    --accent-color: #f4c7d8;

    /* Cores neutras - Tons com melhor contraste */
    --text-color: #3d3d3d;
    --text-light: #757575;
    --bg-color: #fff;
    --bg-light: #fef9f5;
    --bg-cream: #faf5f1;
    --border-color: #e8d4cd;

    /* Cores de status - Versões suaves */
    --success-color: #a8d5a2;
    --error-color: #f5b8b8;
    --warning-color: #f5d5a8;
    --info-color: #b8d4f5;

    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Fonte - Elegante e suave */
    --font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Segoe UI Light', 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;

    /* Border radius - Mais suave e arredondado */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 25px;

    /* Sombras - Equilibradas para boa visibilidade */
    --shadow-sm: 0 2px 8px rgba(209, 122, 159, 0.18);
    --shadow-md: 0 4px 16px rgba(209, 122, 159, 0.25);
    --shadow-lg: 0 8px 24px rgba(209, 122, 159, 0.3);
    --shadow-glow: 0 0 24px rgba(232, 160, 191, 0.4);
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background: linear-gradient(135deg, #fef9f5 0%, #faf5f1 50%, #f5ebe6 100%);
    background-attachment: fixed;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Wrapper principal para manter footer no rodapé */
body > *:not(.site-footer):not(.page-footer) {
    flex: 0 0 auto;
}

.site-footer,
.page-footer {
    margin-top: auto;
}

/* ========================================
   TIPOGRAFIA
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: #c2658f;
    letter-spacing: 0.3px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 300;
}

h2 {
    font-size: 1.85rem;
    font-weight: 400;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: #d17a9f;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

a:hover {
    color: #a95577;
    text-decoration: underline;
}

/* ========================================
   CONTAINER E LAYOUT
   ======================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ========================================
   BOTÕES
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ea4b90 0%, #f661a0 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(209, 122, 159, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #9c37d5 0%, #b684eb 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #b8a8c9 0%, var(--secondary-color) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    width: 100%;
    display: block;
}

/* ========================================
   FORMULÁRIOS
   ======================================== */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    border: 2px solid #dcc4bc;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-family: var(--font-family);
    background-color: #fff;
    color: #3d3d3d;
    font-weight: 400;
}

.form-control:focus {
    outline: none;
    border-color: #e8a0bf;
    background-color: #fffbf9;
    box-shadow: 0 0 0 4px rgba(232, 160, 191, 0.25);
}

.form-text {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--text-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ========================================
   ALERTAS
   ======================================== */

.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
    border-left: 4px solid;
}

.alert-success {
    background-color: #e8f5e5;
    color: #3d6636;
    border-left-color: #7fb876;
    font-weight: 500;
}

.alert-error {
    background-color: #fdeaea;
    color: #9b3838;
    border-left-color: #e89090;
    font-weight: 500;
}

.alert-warning {
    background-color: #fef5e5;
    color: #8a6d2d;
    border-left-color: #ddb76e;
    font-weight: 500;
}

.alert-info {
    background-color: #e8f2fd;
    color: #3a5a8a;
    border-left-color: #7fa9d9;
    font-weight: 500;
}

/* ========================================
   PÁGINA DE LOGIN
   ======================================== */

.login-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #ee5295 0%, #ffd9e9 50%, #fef9f5 100%);
    padding: var(--spacing-md);
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(232, 160, 191, 0.1), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(197, 181, 214, 0.1), transparent 50%);
    pointer-events: none;
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: var(--spacing-xl) 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(209, 122, 159, 0.25);
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(232, 160, 191, 0.2);
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.logo-img {
    max-width: 18vw;
    height: auto;
    margin-bottom: var(--spacing-md);
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 4px 8px rgba(232, 160, 191, 0.2));
    border-radius: 50%;
}

@media (max-width: 768px) {
    .logo-img {
        max-width: 40vw;
    }
}

.logo {
    font-size: 2.2rem;
    font-weight: 200;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 2px;
}

.subtitle {
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.login-form {
    margin-bottom: var(--spacing-lg);
}

.login-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.login-footer p {
    margin-bottom: var(--spacing-xs);
    color: var(--text-light);
}

.text-muted {
    color: #666;
    font-size: 0.875rem;
    font-weight: 400;
}

.link {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   HEADER DO DASHBOARD
   ======================================== */

.site-header {
    background: linear-gradient(135deg, #f85198 0%, #994bce 100%);
    color: white;
    padding: 15px 0;
    min-height: 70px;
    box-shadow: 0 4px 20px rgba(209, 122, 159, 0.35);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: visible;
    z-index: 1001;
}

.site-header .container {
    overflow: visible;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 40px;
}

.logo-small-img {
    height: 12vw;
    width: auto;
    border-radius: 50%;
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
}

.menu-overlay.active {
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }
}

/* Menu antigo comentado - agora usa menu hierárquico em partials/menu.php
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl) var(--spacing-md);
    transition: right 0.3s;
    z-index: 1000;
    list-style: none;
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    margin-bottom: var(--spacing-md);
}

.nav-menu a {
    display: block;
    padding: var(--spacing-sm);
    color: #444;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}
*/

/* ========================================
   MENU HIERÁRQUICO COM DROPDOWN
   ======================================== */

.nav-menu {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 13px;
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: rgba(255, 255, 255, 0.2);
}

.nav-menu .has-dropdown {
    position: relative;
}

.nav-menu .has-dropdown > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-menu .has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
    padding: 8px 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #994bce;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: linear-gradient(135deg, #f85198 0%, #994bce 100%);
    color: white;
}

.dropdown-menu a.active {
    font-weight: 600;
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 3px;
    }
    
    .nav-menu > li > a {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .dropdown-menu {
        min-width: 180px;
    }
}

@media (max-width: 1024px) {
    .main-nav {
        position: static;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    .menu-toggle {
        position: relative;
        z-index: 1002;
        order: 1;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        position: fixed;
        top: 26vw;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        background: linear-gradient(135deg, #f85198 0%, #994bce 100%);
        padding: 20px 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .nav-menu > li > a {
        padding: 12px 15px;
        font-size: 14px;
        width: 100%;
        text-align: left;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin: 5px 0 0 0;
        padding: 5px 0;
        border-radius: 5px;
        display: none;
        max-height: none;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li {
        width: 100%;
    }
    
    .dropdown-menu a {
        color: white !important;
        padding: 10px 15px 10px 25px;
        font-size: 13px;
        width: 100%;
        text-align: left;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1001;
        background: linear-gradient(135deg, #f85198 0%, #994bce 100%);
    }
}

/* ========================================
   CONTEÚDO PRINCIPAL
   ======================================== */

.main-content {
    flex: 1;
    padding: 40px 0;
    margin-top: 30px;
}

/* Espaçamento para containers após header */
body > .container,
.site-header + .container,
header + .container {
    margin-top: 30px;
    padding-top: 20px;
}

.welcome-section {
    margin-bottom: var(--spacing-xl);
}

.welcome-section h2 {
    color: #c2658f;
    font-weight: 400;
}

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

/* ========================================
   CARDS
   ======================================== */

.section-card {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: 0 3px 12px rgba(209, 122, 159, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(232, 160, 191, 0.2);
    margin: 1vw;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(209, 122, 159, 0.35);
    border-color: rgba(232, 160, 191, 0.4);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 2px 4px rgba(232, 160, 191, 0.2));
}

.card h3 {
    color: #c2658f;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    font-size: 1.3rem;
}

.card p {
    color: #666;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
    font-size: 0.95rem;
}

/* Cards bloqueados (recursos PRO) */
.card.card-locked {
    position: relative;
    opacity: 0.75;
    background: linear-gradient(135deg, rgba(240, 240, 240, 0.95) 0%, rgba(250, 250, 250, 0.95) 100%);
}

.card.card-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(200, 200, 200, 0.1) 10px,
        rgba(200, 200, 200, 0.1) 20px
    );
    border-radius: var(--radius-xl);
    pointer-events: none;
}

.card.card-locked:hover {
    transform: translateY(-4px);
    opacity: 0.85;
}

.card.card-locked h3 {
    color: #888;
}

.card.card-locked p {
    color: #999;
}

.btn-locked {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border: 2px dashed #ccc;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: transparent;
    color: #888;
}

.btn-locked:hover {
    background: linear-gradient(135deg, #ea4b90 0%, #f661a0 100%);
    color: white;
    border: 2px solid transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(234, 75, 144, 0.3);
}

.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.welcome-card h1,
.welcome-card h2 {
    color: white;
    margin-bottom: 0.75rem;
}

.welcome-card p {
    color: white;
    opacity: 0.95;
    line-height: 1.6;
}

/* ========================================
   SEÇÕES DO DASHBOARD
   ======================================== */

.profile-section,
.password-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(254, 249, 245, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(209, 122, 159, 0.22);
    margin-bottom: var(--spacing-xl);
    border: 1px solid rgba(232, 160, 191, 0.25);
}

.profile-section h2,
.profile-section h3,
.password-section h2,
.password-section h3 {
    color: #c2658f;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    font-size: 1.6rem;
    letter-spacing: 0.3px;
}

/* Seção de Influencer */
.influencer-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.influencer-info h2 {
    color: #667eea;
}

.influencer-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .influencer-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 90px;
}

.stat-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    word-break: break-word;
}

.stat-card .text-muted {
    font-size: 0.7rem;
    color: #999;
    margin-top: 0.25rem;
    line-height: 1.2;
}

.stripe-onboarding-box {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stripe-onboarding-box h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
}

.stripe-onboarding-box ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.stripe-onboarding-box li {
    margin-bottom: 0.5rem;
    color: #666;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

/* ========================================
   TOGGLE DE SENHA (OLHO)
   ======================================== */

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .password-input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 1.3rem;
    line-height: 1;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.toggle-password:hover {
    opacity: 0.7;
}

.toggle-password:focus {
    outline: 2px solid #d17a9f;
    outline-offset: 2px;
    border-radius: 4px;
}

.toggle-password .eye-icon {
    display: inline-block;
    user-select: none;
}

/* ========================================
   FOOTER
   ======================================== */

.page-footer,
.site-footer {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    color: #666;
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: auto;
    flex-shrink: 0;
}

.page-footer {
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.site-footer {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(254, 249, 245, 0.9));
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-top: 1px solid rgba(232, 160, 191, 0.1);
}

/* ========================================
   MEDIA QUERIES - TABLET
   ======================================== */

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .login-container {
        padding: var(--spacing-xl) 3rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* ========================================
   PÁGINA DE QUESTIONÁRIO
   ======================================== */

.questionnaire-page {
    background: linear-gradient(135deg, #f5ebe6 0%, #faf5f1 50%, #fef9f5 100%);
    padding: var(--spacing-xl) var(--spacing-md);
}

.questionnaire-container {
    max-width: 800px;
    margin: 0 auto;
}

.questionnaire-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.questionnaire-header .logo-img {
    max-width: 80px;
    margin-bottom: var(--spacing-md);
}

.questionnaire-header h1 {
    color: #c2658f;
    margin-bottom: var(--spacing-sm);
}

.questionnaire-header .subtitle {
    color: #666;
    font-size: 1.05rem;
}

.questionnaire-form {
    background: rgba(255, 255, 255, 0.98);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: #c2658f;
    font-size: 1.4rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    margin-right: var(--spacing-sm);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-label span,
.checkbox-label span {
    font-weight: 500;
    color: var(--text-color);
}

.motivation-scale {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: var(--spacing-xs);
}

.radio-label.scale {
    flex: 1;
    justify-content: center;
    padding: var(--spacing-md);
    font-size: 1.2rem;
    font-weight: 600;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--text-light);
}

.form-actions {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* ========================================
   PÁGINA DE VISUALIZAÇÃO DO QUESTIONÁRIO
   ======================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.page-header h1 {
    margin-bottom: 0;
}

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.questionnaire-view {
    background: rgba(255, 255, 255, 0.98);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.view-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.view-section:last-of-type {
    border-bottom: none;
}

.view-section h2 {
    color: #c2658f;
    font-size: 1.4rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

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

.data-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

.data-item.full-width {
    grid-column: 1 / -1;
}

.data-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-value {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.data-value.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--radius-xl);
    font-weight: 600;
}

.data-value.text-box {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    line-height: 1.6;
}

.update-info {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.update-info p {
    margin-bottom: var(--spacing-xs);
}

/* Histórico de Questionários */
.history-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(232, 160, 191, 0.05) 0%, rgba(197, 181, 214, 0.05) 100%);
    border-radius: var(--radius-xl);
}

.history-section h2 {
    color: #c2658f;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.history-subtitle {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

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

@media (min-width: 1024px) {
    .history-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.history-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s;
}

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

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.history-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    color: white;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
}

.history-date {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.history-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.history-value {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 600;
}

/* ========================================
   MEDIA QUERIES - DESKTOP
   ======================================== */

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .info-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .menu-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        width: auto;
        height: auto;
        max-width: none;
        padding: 0;
        background: transparent;
        box-shadow: none;
        gap: 8px;
    }

    .nav-menu li {
        margin-bottom: 0;
    }

    .nav-menu a {
        color: #9f4bca;
        padding: var(--spacing-xs) 10px;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
    }
}

/* ========================================
   UTILIDADES
   ======================================== */

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

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

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

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   TIMELINE DE COMPARAÇÃO
   ======================================== */

.timeline-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
    padding: var(--spacing-lg) 0;
}

/* Linha vertical da timeline */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-left: 100px;
    min-height: 80px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Marcador da timeline */
.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--bg-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--primary-light);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-current .timeline-dot {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 0 6px var(--primary-light), 0 4px 12px rgba(232, 160, 191, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 6px var(--primary-light), 0 4px 12px rgba(232, 160, 191, 0.5);
    }
    50% {
        box-shadow: 0 0 0 8px var(--primary-light), 0 4px 16px rgba(232, 160, 191, 0.7);
    }
}

/* Conteúdo da timeline */
.timeline-content {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.timeline-current .timeline-content {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, var(--bg-color), var(--bg-light));
}

/* Data */
.timeline-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.badge-current {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-first {
    background: var(--success-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Primeiro questionário */
.timeline-first h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.timeline-summary {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-light);
    border-radius: 8px;
}

.summary-item .icon {
    font-size: 1.5rem;
}

/* Mudanças */
.timeline-changes h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.changes-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.change-item {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: var(--spacing-sm);
    transition: all 0.3s ease;
}

.change-item:hover {
    background: var(--bg-cream);
    transform: translateX(3px);
}

.change-item.change-increase {
    border-left-color: var(--warning-color);
}

.change-item.change-decrease {
    border-left-color: var(--success-color);
}

.change-item.change-progress {
    border-left-color: var(--info-color);
}

.change-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: 6px;
}

.change-icon {
    font-size: 1.3rem;
}

.change-field {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.change-values {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.change-old {
    color: var(--text-light);
    text-decoration: line-through;
}

.change-arrow {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.change-new {
    color: var(--text-color);
    font-weight: 600;
}

.change-diff {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.change-diff.increase {
    background: #fff3e0;
    color: #f57c00;
}

.change-diff.decrease {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Sem mudanças */
.timeline-no-changes {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: center;
    color: var(--text-light);
}

/* Estatísticas */
.timeline-stats {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.timeline-stats h2 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-cream));
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(232, 160, 191, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

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

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

/* Botão info */
.btn-info {
    background: linear-gradient(135deg, var(--info-color), #9bbde8);
    color: white;
    border: none;
}

.btn-info:hover {
    background: linear-gradient(135deg, #9bbde8, var(--info-color));
    transform: translateY(-2px);
}

/* Responsivo */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        width: 40px;
    }
    
    .timeline-dot {
        width: 16px;
        height: 16px;
    }
    
    .timeline-current .timeline-dot {
        width: 22px;
        height: 22px;
    }
    
    .timeline-date {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .change-values {
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ANÁLISE POSTURAL
   ======================================== */

.posture-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Seção de Referência */
.reference-section {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-cream));
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.reference-section h2 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.reference-description {
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

.reference-image-container {
    background: var(--bg-color);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reference-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: var(--spacing-md);
}

.reference-caption {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

.reference-caption strong {
    color: var(--primary-dark);
    font-weight: 600;
}

@media (min-width: 768px) {
    .posture-info {
        grid-template-columns: 1fr 1fr;
    }
}

.info-box {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-box h2 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.info-box ul li {
    padding: var(--spacing-xs) 0;
    color: var(--text-color);
}

.disclaimer {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    border-left: 4px solid var(--warning-color);
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
}

.photo-instructions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-light);
    border-radius: 8px;
}

.instruction-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.instruction-item strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.instruction-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.posture-form-section {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.posture-form-section h2 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
}

.photo-uploads {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

@media (min-width: 768px) {
    .photo-uploads {
        grid-template-columns: repeat(3, 1fr);
    }
}

.photo-upload-item {
    position: relative;
}

.photo-label {
    cursor: pointer;
    display: block;
}

.photo-preview {
    height: 250px;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-cream));
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.photo-preview:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-light), var(--bg-cream));
}

.photo-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.photo-text {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.photo-hint {
    font-size: 0.85rem;
    color: var(--text-light);
}

.photo-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--success-color);
}

.photo-input {
    display: none;
}

.form-help {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.consent-section {
    background: var(--bg-light);
    border: 2px solid var(--primary-light);
    padding: var(--spacing-lg);
    border-radius: 12px;
}

.consent-box {
    background: var(--bg-color);
    padding: var(--spacing-md);
    border-radius: 8px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.consent-label input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.consent-label span {
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

/* Mobile: Termo de Consentimento */
@media (max-width: 768px) {
    .consent-section {
        padding: var(--spacing-md);
    }
    
    .consent-box {
        padding: var(--spacing-sm);
    }
    
    .consent-label {
        gap: 10px;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .consent-label input[type="checkbox"] {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        margin-top: 2px;
    }
    
    .consent-label span {
        font-size: 0.85rem;
        line-height: 1.5;
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        max-width: 100%;
    }
    
    .btn-lg {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
        width: 100%;
    }
}

/* Visualização de análises */
.analyses-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.analysis-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.analysis-card:hover {
    box-shadow: 0 4px 16px rgba(232, 160, 191, 0.2);
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
}

.analysis-header h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

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

.analysis-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.analysis-photo-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.btn-analyze-photo {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(232, 160, 191, 0.3);
}

.btn-analyze-photo:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 160, 191, 0.5);
}

.btn-analyze-photo:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-analyze-photo.analyzed {
    background: var(--success-color);
}

.ai-analysis-result {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #7dd3fc;
    border-radius: 12px;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.ai-analysis-result h4 {
    color: var(--primary-dark);
    margin: 0 0 var(--spacing-md) 0;
    font-size: 1.2rem;
}

.ai-analysis-item {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid #bfdbfe;
}

.ai-analysis-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ai-analysis-item h5 {
    color: var(--primary-color);
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 1.1rem;
}

.ai-loading {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md) auto;
}

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

.ai-loading p {
    color: var(--text-light);
    font-style: italic;
}

.ai-success {
    background: white;
    padding: var(--spacing-md);
    border-radius: 8px;
    line-height: 1.8;
    color: var(--text-color);
    white-space: pre-wrap;
}

.ai-error {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    color: #c00;
    padding: var(--spacing-lg);
    border-radius: 12px;
    border-left: 4px solid #c00;
    box-shadow: 0 2px 8px rgba(200, 0, 0, 0.1);
}

.ai-error p {
    margin: 8px 0;
}

.ai-error strong {
    color: #a00;
}

.ai-error small {
    color: #666;
    line-height: 1.6;
}

.photo-label {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.posture-photo {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--bg-light);
}

.posture-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(232, 160, 191, 0.3);
    border-color: var(--primary-color);
}

.photo-placeholder {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-lg);
    font-size: 2rem;
    margin-bottom: 4px;
}

.photo-status {
    display: block;
    font-size: 0.85rem;
    color: var(--success-color);
    font-weight: 600;
}

.analysis-info {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-sm);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.info-value {
    font-weight: 600;
    color: var(--text-color);
}

.user-notes {
    background: linear-gradient(135deg, #fff9e6, #fffbf0);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-radius: 8px;
}

.user-notes h4 {
    color: var(--primary-dark);
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 1rem;
}

.user-notes p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.analysis-footer {
    border-top: 2px solid var(--border-color);
    padding-top: var(--spacing-md);
}

.analysis-note {
    background: var(--primary-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-light);
    border-radius: 12px;
    margin: var(--spacing-xl) 0;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
}

.empty-state h2 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

/* Modal de visualização de foto */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.photo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

.photo-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.photo-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100001;
}

.photo-modal-close:hover {
    background: var(--primary-dark);
    transform: rotate(90deg);
}

#photoModalCaption {
    margin-top: var(--spacing-md);
    color: white;
    font-size: 1.1rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===================================
   CORREÇÕES DE LAYOUT MOBILE
   =================================== */

/* Mobile First - Ajustes gerais para telas pequenas */
@media (max-width: 768px) {
    
    /* Container principal */
    .container {
        padding: 10px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .main-content {
        padding: 15px 0;
    }
    
    /* Cabeçalho da página */
    .page-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
        text-align: center;
        word-break: break-word;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .header-actions .btn {
        width: 100%;
        text-align: center;
        padding: 12px 15px;
        font-size: 0.9rem;
        white-space: normal;
        word-break: break-word;
    }
    
    /* Seções do questionário */
    .view-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .view-section h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        word-break: break-word;
    }
    
    /* Grid de dados */
    .data-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .data-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        gap: 5px;
    }
    
    .data-item.full-width {
        grid-column: 1;
    }
    
    .data-label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .data-value {
        font-size: 1rem;
        word-break: break-word;
        width: 100%;
    }
    
    .badge {
        display: inline-block;
        max-width: 100%;
        word-break: break-word;
        white-space: normal;
    }
    
    .text-box {
        padding: 10px;
        font-size: 0.9rem;
        word-break: break-word;
    }
    
    /* Informações de atualização */
    .update-info {
        padding: 12px;
        font-size: 0.85rem;
        word-break: break-word;
    }
    
    /* Histórico */
    .history-section {
        padding: 15px;
        margin-top: 20px;
    }
    
    .history-section h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .history-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .history-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .history-card {
        padding: 15px;
    }
    
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 12px;
    }
    
    .history-badge,
    .history-date {
        font-size: 0.85rem;
    }
    
    .history-body {
        gap: 10px;
    }
    
    .history-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 8px 0;
    }
    
    .history-label {
        font-size: 0.85rem;
    }
    
    .history-value {
        font-size: 0.9rem;
        word-break: break-word;
        text-align: right;
    }
    
    /* Alertas */
    .alert {
        padding: 12px;
        font-size: 0.9rem;
        margin-bottom: 15px;
        word-break: break-word;
    }
    
    /* Footer */
    .site-footer {
        padding: 15px 10px;
        font-size: 0.85rem;
    }
    
    .site-footer p {
        text-align: center;
        word-break: break-word;
    }
    
    /* Navegação mobile */
    .main-nav ul {
        flex-direction: column;
        gap: 5px;
        padding: 10px 0;
    }
    
    .main-nav a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    /* Header do site */
    .site-header {
        padding: 10px;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .site-logo {
        font-size: 1.3rem;
    }
    
    /* Garantir que nada estoure */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Ajustes para telas muito pequenas (smartphones antigos) */
@media (max-width: 375px) {
    .page-header h1 {
        font-size: 1.3rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    
    .view-section h2 {
        font-size: 1.1rem;
    }
    
    .data-label,
    .history-label {
        font-size: 0.8rem;
    }
    
    .data-value,
    .history-value {
        font-size: 0.9rem;
    }
}

/* Landscape mode em mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .page-header {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .header-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .header-actions .btn {
        width: auto;
        flex: 1 1 auto;
        min-width: 150px;
    }
    
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   CORREÇÃO INPUT DE DATA NO MOBILE
   =================================== */

@media (max-width: 768px) {
    
    /* Inputs de data específicos */
    input[type="date"],
    input[type="datetime-local"] {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        font-size: 16px; /* Evita zoom automático no iOS */
        padding: 12px 10px;
        box-sizing: border-box;
    }
    
    /* Form groups que contêm inputs de data */
    .form-group {
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .form-group label {
        display: block;
        width: 100%;
        margin-bottom: 5px;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px;
    }
    
    /* Formulários em geral */
    form {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    /* Botões de formulário */
    .form-actions,
    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .form-actions .btn,
    .btn-group .btn {
        width: 100%;
    }
}

/* Correção específica para webkit (Safari/Chrome mobile) */
@media (max-width: 768px) {
    input[type="date"]::-webkit-date-and-time-value {
        text-align: left;
    }
    
    input[type="date"]::-webkit-calendar-picker-indicator {
        background: transparent;
        color: transparent;
        cursor: pointer;
        height: auto;
        position: absolute;
        right: 0;
        top: 0;
        width: auto;
    }
    
    /* Correção universal para inputs de data - prevenir overflow */
    input[type="date"],
    input[type="datetime-local"],
    input[type="time"],
    input[type="month"],
    input[type="week"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 10px 3px !important;
        font-size: 14px !important;
        margin: 0 !important;
        border-width: 1px !important;
    }
    
    /* Garantir que form-control de data também respeite */
    input[type="date"].form-control,
    input[type="datetime-local"].form-control,
    input[type="time"].form-control {
        padding: 10px 3px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    input[type="date"],
    input[type="datetime-local"],
    input[type="time"],
    input[type="month"],
    input[type="week"] {
        padding: 8px 2px !important;
        font-size: 14px !important;
    }
    
    input[type="date"].form-control,
    input[type="datetime-local"].form-control,
    input[type="time"].form-control {
        padding: 8px 2px !important;
    }
}

/* ===================================
   CORREÇÃO TERMO DE CONSENTIMENTO NO MOBILE
   =================================== */

@media (max-width: 768px) {
    
    /* Termo de consentimento */
    .consent-terms,
    .terms-box,
    .consent-box {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
        padding: 12px;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .consent-terms p,
    .terms-box p,
    .consent-box p {
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        margin-bottom: 10px;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .consent-terms ul,
    .consent-terms ol,
    .terms-box ul,
    .terms-box ol {
        padding-left: 20px;
        margin: 10px 0;
        width: 100%;
        max-width: 100%;
    }
    
    .consent-terms li,
    .terms-box li {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        margin-bottom: 8px;
        font-size: 0.9rem;
    }
    
    .consent-terms h3,
    .consent-terms h4,
    .terms-box h3,
    .terms-box h4 {
        word-wrap: break-word;
        word-break: break-word;
        font-size: 1rem;
        margin: 15px 0 10px 0;
    }
    
    /* Checkbox de consentimento */
    .consent-checkbox,
    .consent-label {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        padding: 12px;
        box-sizing: border-box;
    }
    
    .consent-checkbox label,
    .consent-label label {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        flex: 1;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .consent-checkbox input[type="checkbox"],
    .consent-label input[type="checkbox"] {
        flex-shrink: 0;
        margin-top: 3px;
    }
    
    /* Seções de análise postural */
    .posture-section,
    .analysis-section {
        padding: 15px;
        margin-bottom: 15px;
        overflow-x: hidden;
    }
    
    .posture-section h2,
    .analysis-section h2 {
        font-size: 1.2rem;
        word-wrap: break-word;
        margin-bottom: 12px;
    }
    
    /* Garantir que textos longos quebrem */
    .posture-section p,
    .analysis-section p,
    .posture-section div,
    .analysis-section div {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
}

/* Ajuste específico para textos muito longos sem espaços */
@media (max-width: 768px) {
    .consent-terms *,
    .terms-box *,
    .consent-box * {
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        -ms-hyphens: auto;
    }
}

/* ===================================
   CORREÇÃO FORMULÁRIO DE QUESTIONÁRIO NO MOBILE
   =================================== */

@media (max-width: 768px) {
    
    /* Wrapper do formulário */
    .questionnaire-form-wrapper {
        background: white;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 20px;
        overflow-x: hidden;
    }
    
    /* Subtítulo da página */
    .page-subtitle {
        font-size: 0.9rem;
        color: #666;
        text-align: center;
        margin-top: 10px;
        word-break: break-word;
        line-height: 1.4;
    }
    

    
    /* Formulário */
    .questionnaire-form {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
    
    /* Seções do formulário */
    .form-section {
        padding: 0 0 20px 0;
        margin-bottom: 20px;
        overflow-x: hidden;
        border-bottom: 2px solid #f0f0f0;
    }
    
    .form-section:last-of-type {
        border-bottom: none;
    }
    
    .form-section h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        word-break: break-word;
    }
    
    /* Form groups */
    .form-group {
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .form-group label {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 8px;
        word-break: break-word;
        line-height: 1.4;
    }
    
    /* Inputs e selects */
    .form-control {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        font-size: 16px;
        box-sizing: border-box;
    }
    
    input.form-control,
    select.form-control,
    textarea.form-control {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    textarea.form-control {
        min-height: 100px;
        resize: vertical;
    }
    
    /* Form row - empilha em mobile */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Radio groups */
    .radio-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .radio-label {
        display: flex;
        align-items: center;
        padding: 12px;
        word-break: break-word;
        width: 100%;
        box-sizing: border-box;
    }
    
    .radio-label span {
        margin-left: 10px;
        font-size: 0.9rem;
        word-break: break-word;
        flex: 1;
    }
    
    .radio-label input[type="radio"] {
        flex-shrink: 0;
    }
    
    /* Escala de motivação */
    .motivation-scale {
        flex-direction: row;
        justify-content: space-between;
        gap: 5px;
    }
    
    .radio-label.scale {
        flex: 1;
        justify-content: center;
        padding: 10px 5px;
        min-width: 0;
    }
    
    .radio-label.scale span {
        margin: 0;
        font-size: 0.85rem;
    }
    
    .scale-labels {
        display: flex;
        justify-content: space-between;
        font-size: 0.8rem;
        margin-top: 5px;
    }
    
    /* Checkbox groups */
    .checkbox-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .checkbox-label {
        display: flex;
        align-items: center;
        padding: 12px;
        word-break: break-word;
        width: 100%;
        box-sizing: border-box;
    }
    
    .checkbox-label span {
        margin-left: 10px;
        font-size: 0.9rem;
        word-break: break-word;
        flex: 1;
    }
    
    .checkbox-label input[type="checkbox"] {
        flex-shrink: 0;
    }
    
    /* Botões de ação */
    .form-actions {
        padding: 20px 0 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
        border-top: 2px solid #f0f0f0;
    }
    
    .btn-block {
        width: 100%;
        display: block;
        text-align: center;
        box-sizing: border-box;
    }
    
    .btn-lg {
        padding: 14px 20px;
        font-size: 1rem;
        word-break: break-word;
        line-height: 1.3;
    }
    
    .form-actions .btn {
        margin: 0;
        width: 100%;
    }
    
    /* Footer da página */
    .page-footer {
        padding: 15px 10px;
        text-align: center;
        font-size: 0.85rem;
    }
    
    .page-footer p {
        word-break: break-word;
        margin: 0;
    }
}

/* Ajustes para telas muito pequenas no formulário */
@media (max-width: 375px) {
    .questionnaire-header h1 {
        font-size: 1.2rem;
    }
    
    .form-section h2 {
        font-size: 1.1rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 10px;
        font-size: 14px;
    }
    
    .radio-label.scale {
        padding: 8px 3px;
    }
}

/* Regras universais para evitar estouro no mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    html {
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
    }
    
    .questionnaire-form-wrapper * {
        box-sizing: border-box;
    }
    
    /* Força todos os inputs a respeitarem o container */
    input, select, textarea, button {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ===================================
   CORREÇÃO CICLO MENSTRUAL NO MOBILE
   =================================== */

@media (max-width: 768px) {
    
    /* Card da fase atual */
    .phase-card {
        padding: 15px;
        margin-bottom: 20px;
        overflow-x: hidden;
    }
    
    .phase-card h3 {
        font-size: 1.3rem;
        word-break: break-word;
        margin-bottom: 15px;
    }
    
    .phase-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .phase-stat {
        padding: 12px;
    }
    
    .phase-stat .label {
        font-size: 0.8rem;
    }
    
    .phase-stat .value,
    .phase-stat .phase-name {
        font-size: 1.5rem;
    }
    
    .phase-description {
        padding: 12px;
        font-size: 0.9rem;
        word-break: break-word;
    }
    
    /* Form sections do ciclo menstrual */
    .form-section {
        margin-bottom: 25px;
        overflow-x: hidden;
    }
    
    .form-section h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        word-break: break-word;
    }
    
    /* Checkbox group */
    .checkbox-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .checkbox-item {
        display: flex;
        align-items: center;
        padding: 10px;
        word-break: break-word;
        width: 100%;
        box-sizing: border-box;
    }
    
    .checkbox-item label {
        margin-left: 10px;
        font-size: 0.9rem;
        word-break: break-word;
        flex: 1;
    }
    
    .checkbox-item input[type="checkbox"] {
        flex-shrink: 0;
    }
    
    /* Campos condicionais */
    .conditional-field {
        width: 100%;
        max-width: 100%;
    }
    
    /* Log items */
    .log-item {
        padding: 12px;
        margin-bottom: 12px;
        overflow-x: hidden;
    }
    
    .log-item .date {
        font-size: 0.9rem;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .log-item .badge,
    .log-item .time-badge {
        font-size: 0.7rem;
    }
    
    .log-item .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .log-item .info-item {
        font-size: 0.85rem;
        word-break: break-word;
    }
    
    /* Calendário do ciclo */
    .cycle-calendar {
        gap: 0.3rem;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
    
    /* Tags de sintoma */
    .symptom-tag {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    /* Welcome card */
    .welcome-card {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .welcome-card h1 {
        font-size: 1.4rem;
        word-break: break-word;
    }
    
    .welcome-card h2 {
        font-size: 1.2rem;
        word-break: break-word;
    }
    
    .welcome-card p {
        font-size: 0.9rem;
        word-break: break-word;
        line-height: 1.5;
    }
}

/* Ajustes específicos para telas muito pequenas */
@media (max-width: 375px) {
    .phase-card h3 {
        font-size: 1.1rem;
    }
    
    .phase-stat .value,
    .phase-stat .phase-name {
        font-size: 1.3rem;
    }
    
    .form-section h4 {
        font-size: 1rem;
    }
    
    .calendar-day {
        font-size: 0.7rem;
    }
}