/* style.css - Único e Consolidado (Design Profissional Limpo) */
:root {
    /* Paleta Neuro-Friendly (Calmante) */
    --primary: #8B5CF6; /* Lavanda Suave - Calma e Organização */
    --primary-hover: #7C3AED;
    --bg-color: #F8FAFC; /* Slate 50 - Branco muito suave e sem brilho reflexivo */
    --surface: #FFFFFF;
    --text-main: #334155; /* Slate 700 - Contraste alto, mas não preto puro (evita stress visual) */
    --text-muted: #94A3B8;
    --border: #F1F5F9;
    
    /* Semântica Atípica para as Categorias */
    --color-routine: #8B5CF6; /* Roxo */
    --color-medication: #F43F5E; /* Coral/Rosa Suave */
    --color-therapy: #14B8A6; /* Verde Água / Teal */
    
    --success: #10B981;
    --danger: #EF4444;

    /* Zero Sharp Edges (Bordas Amigáveis) */
    --radius: 24px;
    --radius-pill: 9999px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

.dark-mode {
    --bg-color: #0F172A; /* Slate 900 - Dark mode azulado e profundo */
    --surface: #1E293B; /* Slate 800 */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #334155;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Nunito', sans-serif; background-color: var(--bg-color); color: var(--text-main); -webkit-font-smoothing: antialiased; padding-bottom: 80px; overflow-y: scroll; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* HEADER PADRÃO (Para TODAS as páginas) */
.app-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    height: 70px;
    display: flex;
    justify-content: center;
}
.header-container {
    width: 100%; max-width: 1200px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 24px;
}
.logo { font-size: 1.25rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.logo img { height: 32px; width: auto; object-fit: contain; }

/* DESKTOP NAV */
.desktop-nav { display: flex; gap: 32px; font-weight: 700; align-items: center; }
.nav-link { color: var(--text-muted); transition: color 0.2s; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after { content: ''; position: absolute; bottom: -24px; left: 0; width: 100%; height: 3px; background: var(--primary); border-radius: 3px 3px 0 0; }
.hide-mobile { display: block; }

@media (min-width: 768px) {
    .desktop-nav { display: flex; gap: 32px; align-items: center; }
    .hide-mobile { display: inline-flex !important; }
    .bottom-nav { display: none !important; }
    body { padding-bottom: 0; }
}
.nav-link { font-weight: 600; color: var(--text-muted); transition: color 0.2s; font-size: 1rem; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

/* BOTOES GERAIS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; font-weight: 700; border-radius: var(--radius-pill); cursor: pointer; transition: all 0.2s; border: none; font-size: 1rem; }
.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background-color: transparent; border: 2px solid var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-icon { background: transparent; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; padding: 8px; transition: color 0.2s; }
.btn-icon:hover { color: var(--primary); }

/* MAIN CONTAINER */
.container { max-width: 800px; margin: 0 auto; padding: 40px 24px; }

/* ========== LANDING PAGE (SaaS MARKETING) ========== */
.landing-page .app-header { position: fixed; top: 0; width: 100%; z-index: 100; transition: all 0.3s; }
.glass-header { background: rgba(255, 255, 255, 0.7) !important; backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important; }
.dark-mode .glass-header { background: rgba(30, 41, 59, 0.7) !important; border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important; }

.container-lg { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* HERO FULL WIDTH */
.hero-full { position: relative; min-height: 90vh; display: flex; align-items: center; background-image: url('../assets/hero-bg.png'); background-size: cover; background-position: center; padding-top: 70px; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0.7) 100%); z-index: 1; }
.dark-mode .hero-overlay { background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.8) 100%); }

.hero-full-container { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .hero-full-container { grid-template-columns: 1fr; text-align: center; } }

.badge { display: inline-block; padding: 8px 16px; background: rgba(139, 92, 246, 0.15); color: var(--primary); font-weight: 800; border-radius: var(--radius-pill); font-size: 0.9rem; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1px; }
.hero-title { font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 24px; color: var(--text-main); letter-spacing: -1px; }
.text-gradient { background: linear-gradient(90deg, var(--primary), var(--color-therapy)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.6; max-width: 500px; }
@media (max-width: 900px) { .hero-subtitle { margin: 0 auto 40px auto; } .hero-actions { justify-content: center; } }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }
.btn-pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(139, 92, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); } }

/* MOCKUP FLUTUANTE (Hero Right) */
.glass-mockup { background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 32px; padding: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.1); transform: rotate(2deg) translateY(-10px); transition: transform 0.5s; }
.glass-mockup:hover { transform: rotate(0deg) translateY(-20px); }
.dark-mode .glass-mockup { background: rgba(30, 41, 59, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.mockup-header { font-weight: 800; font-size: 1.2rem; margin-bottom: 24px; display: flex; justify-content: space-between; color: var(--text-main); }
.fake-check { width: 32px; height: 32px; border-radius: 8px; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; color: transparent; }
.fake-check.active { background: var(--success); border-color: var(--success); color: white; }

/* SEÇÕES GENÉRICAS */
.section-padding { padding: 100px 0; }
.bg-alt { background-color: rgba(0,0,0,0.02); }
.dark-mode .bg-alt { background-color: rgba(255,255,255,0.01); }
.section-header { max-width: 600px; margin: 0 auto 60px auto; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; color: var(--text-main); letter-spacing: -0.5px; }
.section-subtitle { font-size: 1.15rem; color: var(--text-muted); line-height: 1.6; }

/* FEATURES GRID PREMIUM */
.features-grid-premium { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.feature-card-glass { background: var(--surface); padding: 40px 32px; border-radius: 32px; border: 1px solid var(--border); box-shadow: var(--shadow); transition: all 0.3s; position: relative; overflow: hidden; }
.feature-card-glass:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: rgba(139, 92, 246, 0.3); }
.feature-icon { width: 64px; height: 64px; background: rgba(139, 92, 246, 0.1); color: var(--primary); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 24px; }
.feature-card-glass h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 16px; color: var(--text-main); }
.feature-card-glass p { color: var(--text-muted); line-height: 1.6; font-size: 1.05rem; }

/* SPLIT LAYOUT (Z-PATTERN) */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split-layout { grid-template-columns: 1fr; } .split-image { order: -1; } }
.benefit-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.benefit-list li { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; font-weight: 600; color: var(--text-main); }

/* CTA E FOOTER */
.cta-section { padding: 80px 24px; background: linear-gradient(135deg, var(--primary), var(--color-therapy)); color: white; border-radius: 32px; max-width: 1200px; margin: 0 auto 60px auto; box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.05)"/></svg>'); opacity: 0.5; }
.cta-section > * { position: relative; z-index: 2; }
.cta-section h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; color: white; letter-spacing: -0.5px; line-height: 1.2; }
.cta-section p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 32px; font-weight: 600; }
.cta-section .btn-primary { background: white; color: var(--primary); font-size: 1.1rem; padding: 18px 32px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 800; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.cta-section .btn-primary:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

@media (max-width: 768px) {
    .cta-section { padding: 48px 24px; border-radius: 24px; margin: 0 16px 40px 16px; }
    .cta-section h2 { font-size: 2rem; }
    .cta-section .btn-primary { width: 100%; max-width: 300px; font-size: 1rem; padding: 16px 20px; }
}

.app-footer { text-align: center; padding: 40px 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-weight: 600; }
.event-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; flex-wrap: nowrap; gap: 20px; margin-bottom: 16px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; }
.event-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.event-card.completed { opacity: 0.6; filter: grayscale(0.3); border-style: dashed; }
.event-card .icon-box { flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; box-shadow: var(--shadow); }

/* Colorização Semântica dos Eventos */
.event-card[data-type="routine"] .icon-box { background: var(--color-routine); }
.event-card[data-type="routine"]:hover { border-color: var(--color-routine); }
.event-card[data-type="medication"] .icon-box { background: var(--color-medication); }
.event-card[data-type="medication"]:hover { border-color: var(--color-medication); }
.event-card[data-type="therapy"] .icon-box { background: var(--color-therapy); }
.event-card[data-type="therapy"]:hover { border-color: var(--color-therapy); }

.event-details { flex-grow: 1; min-width: 0; }
.event-details h4 { font-size: 1.15rem; margin-bottom: 6px; color: var(--text-main); font-weight: 800; letter-spacing: -0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-details span { font-size: 0.9rem; color: var(--text-muted); font-weight: 700; background: var(--bg-color); padding: 4px 12px; border-radius: 12px; }
.btn-check { width: 44px; height: 44px; border-radius: 12px; border: 3px solid var(--border); background: var(--bg-color); color: transparent; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: var(--shadow); }
.btn-check.active { background: var(--success); border-color: var(--success); color: #fff; transform: scale(1.1); box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
.btn-delete { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 8px; transition: color 0.2s; }
.btn-delete:hover { color: var(--danger); }

/* STATUS E HUMOR (App) */
.page-header-banner { background-color: var(--surface); background-image: linear-gradient(to right, rgba(248,250,252,0.4), rgba(248,250,252,0.9)), url('../assets/hero-bg.png'); background-size: cover; background-position: center; padding: 32px 24px; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 32px; box-shadow: var(--shadow); }
.dark-mode .page-header-banner { background-image: linear-gradient(to right, rgba(15,23,42,0.5), rgba(15,23,42,0.95)), url('../assets/hero-bg.png'); }
.status-bar { display: flex; justify-content: space-between; align-items: center; }
.status-bar h2 { font-size: 1.5rem; margin-bottom: 4px; font-weight: 800; color: var(--text-main); }
.status-bar p { color: var(--text-muted); font-size: 1rem; font-weight: 600; }

.mood-container { background: var(--surface); padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); margin-top: 40px; text-align: center; }
.mood-container h3 { font-size: 1.25rem; margin-bottom: 8px; }
.mood-container p { color: var(--text-muted); margin-bottom: 24px; }
.mood-grid { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.mood-btn { font-size: 2.5rem; background: transparent; border: none; cursor: pointer; filter: grayscale(0.8); transition: transform 0.2s, filter 0.2s, opacity 0.2s; opacity: 0.4; color: var(--text-muted); }
.mood-btn[data-mood="crise"] { color: #6366F1; }
.mood-btn[data-mood="dificil"] { color: #F43F5E; }
.mood-btn[data-mood="neutro"] { color: #F59E0B; }
.mood-btn[data-mood="feliz"] { color: #10B981; }
.mood-btn[data-mood="excelente"] { color: #EAB308; }
.mood-btn:hover, .mood-btn.active { transform: scale(1.2); filter: grayscale(0); opacity: 1; }

/* FORMS E MODAL */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s; }
.modal.active { display: flex; opacity: 1; }
.modal-content { background: var(--surface); width: 100%; max-width: 450px; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.2); transform: translateY(30px) scale(0.95); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); max-height: 90vh; overflow-y: auto; }
.modal.active .modal-content { transform: translateY(0) scale(1); }

@media (max-width: 768px) {
    .modal { padding: 80px 16px 16px 16px; align-items: flex-start; }
    .modal-content { border-radius: 24px; margin: 0 auto; transform: translateY(-20px); padding-bottom: 0; }
    .modal.active .modal-content { transform: translateY(0); }
    .modal-header { padding: 16px 20px !important; }
    .form { padding: 16px 20px !important; }
    .form-group { margin-bottom: 16px !important; }
}
.modal-header { padding: 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1.25rem; font-weight: 700; color: var(--text-main); }
.btn-close { background: transparent; border: none; font-size: 1.25rem; cursor: pointer; color: var(--text-muted); transition: color 0.2s; }
.btn-close:hover { color: var(--text-main); }
.form { padding: 24px; }
.form-group { margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 700; font-size: 0.95rem; color: var(--text-main); }
.form-group input, .form-group textarea { padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; background: var(--bg-color); color: var(--text-main); font-family: inherit; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-text { font-size: 0.85rem; color: var(--text-muted); }

.tags-row { display: flex; gap: 12px; flex-wrap: wrap; }
.tag-btn { padding: 12px 24px; border: 2px solid transparent; border-radius: var(--radius-pill); background: var(--border); cursor: pointer; font-weight: 700; color: var(--text-main); transition: all 0.3s; display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.tag-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tag-btn[data-type="routine"].active { background: var(--color-routine); color: #fff; box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3); }
.tag-btn[data-type="medication"].active { background: var(--color-medication); color: #fff; box-shadow: 0 5px 15px rgba(244, 63, 94, 0.3); }
.tag-btn[data-type="therapy"].active { background: var(--color-therapy); color: #fff; box-shadow: 0 5px 15px rgba(20, 184, 166, 0.3); }

/* TOGGLE SWITCH iOS STYLE */
.toggle-switch { position: relative; width: 50px; height: 28px; display: inline-block; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--border); transition: .4s; border-radius: 34px; }
.toggle-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .3s cubic-bezier(0.4, 0.0, 0.2, 1); border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.toggle-switch input:checked + .toggle-slider { background-color: var(--primary); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(22px); }

/* BOTTOM NAV (MOBILE) */
.bottom-nav { position: fixed; bottom: 0; width: 100%; height: 70px; background: var(--surface); border-top: 1px solid var(--border); display: flex; justify-content: space-around; align-items: center; z-index: 50; padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav .nav-item { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; width: 64px; }
.bottom-nav .nav-item i { font-size: 1.25rem; }
.bottom-nav .nav-item.active { color: var(--primary); }
.nav-item-fab { background: var(--primary); color: #fff !important; width: 56px !important; height: 56px; border-radius: 50%; justify-content: center; transform: translateY(-20px); box-shadow: var(--shadow); }

/* TOAST */
.toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--text-main); color: var(--surface); padding: 14px 24px; border-radius: var(--radius-pill); font-weight: 600; transition: transform 0.3s; z-index: 2000; box-shadow: var(--shadow-hover); opacity: 0; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { background: var(--danger); color: white; }
.toast.success { background: var(--success); color: white; }
/* ========== NAVEGAÇÃO MOBILE PREMIUM (GLASSMORPHISM PILL) ========== */
.mobile-nav { display: none; position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 450px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); border: 1px solid rgba(200, 200, 200, 0.3); border-radius: 32px; z-index: 1000; padding: 10px 24px; justify-content: space-between; align-items: center; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.dark-mode .mobile-nav { background: rgba(30, 41, 59, 0.85); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 15px 35px rgba(0,0,0,0.4); }
@media (max-width: 768px) { .mobile-nav { display: flex; } .desktop-nav { display: none !important; } body { padding-bottom: 120px; } }

.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); font-size: 0.75rem; font-weight: 700; transition: all 0.3s; flex: 1; text-decoration: none; }
.nav-item i { font-size: 1.4rem; transition: transform 0.2s; }
.nav-item.active { color: var(--primary); }
.nav-item.active i { transform: scale(1.15) translateY(-2px); }

/* FAB EMBUTIDO NA NAV */
.nav-fab-container { position: relative; width: 64px; height: 40px; display: flex; justify-content: center; align-items: center; flex: 1; }
.btn-fab-nav { position: absolute; bottom: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4); border: 4px solid var(--bg-color); cursor: pointer; transition: all 0.3s; z-index: 10; outline: none; }
.btn-fab-nav:active { transform: scale(0.9); }

/* ========== DIÁRIO DE BORDO ========== */
.diary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); position: relative; }
.diary-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: var(--radius) 0 0 var(--radius); background: var(--color-therapy); }
.diary-card.type-alert::before { background: var(--color-medication); }
.diary-card.type-victory::before { background: var(--success); }
.diary-header { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }
.diary-content { color: var(--text-main); font-size: 1.1rem; line-height: 1.6; }

/* ========== CALENDÁRIO INTERATIVO ========== */
.calendar-container { background: var(--surface); border-radius: 32px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font-weight: 800; font-size: 1.4rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; }
.calendar-day-header { font-size: 0.85rem; color: var(--text-muted); font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.calendar-day { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s; position: relative; font-size: 1.1rem; }
.calendar-day:hover { background: rgba(139, 92, 246, 0.1); color: var(--primary); }
.calendar-day.active { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4); }
.calendar-day.has-events { background: rgba(139, 92, 246, 0.08); font-weight: 900; color: var(--primary); }
.dark-mode .calendar-day.has-events { background: rgba(139, 92, 246, 0.15); }
.calendar-day.empty { visibility: hidden; }
.event-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-routine); position: relative; }
.event-dot.med { background: var(--color-medication); }
.event-dot.therapy { background: var(--color-therapy); }

/* CALENDÁRIO EVENTOS E BOTÕES */
.calendar-events-section { margin-top: 40px; }
.section-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.section-top-bar h3 { font-size: 1.3rem; font-weight: 800; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; white-space: nowrap; }

/* FAB GLOBAL MOBILE (REMOVIDO EM FAVOR DO FAB INLINE) */

/* GATILHOS DIÁRIO */
.trigger-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.trigger-tag { font-size: 0.8rem; padding: 4px 10px; background: rgba(0,0,0,0.05); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; color: var(--text-muted); font-weight: 700; transition: all 0.2s; }
.trigger-tag.selected { background: var(--color-medication); color: white; border-color: var(--color-medication); }
.dark-mode .trigger-tag { background: rgba(255,255,255,0.05); }
