:root {
    --primary-color: #2C5F2D; 
    --secondary-color: #97BC62;
    --background: #F4F7F6;
    --text-dark: #222222;
    --card-bg: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; background: var(--background); color: var(--text-dark); line-height: 1.6; }

/* Utilities */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 2.5rem; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* Header & Badges */
.app-header { background: var(--primary-color); color: white; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.status-badge { background: var(--secondary-color); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: bold; }
.status-badge.offline { background: #d9534f; color: white; }
.app-content { padding: 2rem 1rem; max-width: 800px; margin: auto; }
.section-divider { border: 0; height: 2px; background: #E0E7E4; margin: 2rem 0; }

/* Typography & Layout */
h2 { margin-bottom: 0.5rem; color: var(--primary-color); }
h3 { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 0.5rem; }
.privacy-notice { font-size: 0.85rem; color: var(--primary-color); font-weight: bold; }

/* Buttons */
.btn-primary { background: var(--primary-color); color: white; border: none; padding: 0.8rem 1.5rem; border-radius: 8px; font-size: 1rem; cursor: pointer; transition: background 0.3s; font-weight: bold;}
.btn-primary:hover { background: #1f4220; }
.btn-secondary { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); padding: 0.8rem 1.5rem; border-radius: 8px; font-size: 1rem; cursor: pointer; font-weight: bold; transition: all 0.3s; }
.btn-secondary:hover { background: var(--primary-color); color: white; }

/* Sensory Breathing */
.sensory-section { background: var(--card-bg); padding: 2rem; border-radius: 12px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.breathe-container { display: flex; justify-content: center; align-items: center; height: 180px; margin: 1.5rem 0; }
.breathe-circle { width: 100px; height: 100px; background: var(--secondary-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--text-dark); font-weight: bold; transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1), background-color 4s ease; }
.breathe-circle.inhale { transform: scale(1.6); background: var(--primary-color); color: white; }
.breathe-circle.exhale { transform: scale(1); background: var(--secondary-color); color: var(--text-dark); }

/* AAC Grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1rem; margin-top: 1rem; }
.aac-card { background: var(--card-bg); border: 2px solid var(--secondary-color); border-radius: 12px; padding: 1.5rem 0.5rem; font-size: 1rem; font-weight: bold; text-align: center; cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.1s; }
.aac-card:active { transform: scale(0.95); background: var(--secondary-color); color: white; }

/* Forms & Educator Mode */
.tracking-form { display: flex; flex-direction: column; gap: 0.5rem; }
.form-select, .tracking-form input { padding: 0.8rem; border: 2px solid #ccc; border-radius: 8px; font-size: 1rem; width: 100%; font-family: inherit;}
.form-select:focus, .tracking-form input:focus { outline: none; border-color: var(--primary-color); }
.educator-focus { background: #E8F0ED; border-left: 4px solid var(--primary-color); padding: 1rem; border-radius: 0 8px 8px 0; font-size: 0.95rem; }
.pedagogy-mentor { background: #FFFBEA; border: 1px solid #F4E087; padding: 1rem; border-radius: 8px; font-size: 0.9rem; }
.pedagogy-mentor h4 { color: #B8860B; }

/* Stats & Logs */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat-card { background: #E0E7E4; padding: 1rem; border-radius: 8px; text-align: center; border-left: 4px solid var(--primary-color); }
.stat-number { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); }
.milestone-log { background: #f9f9f9; padding: 1rem; border-radius: 8px; border: 1px solid #e0e0e0; max-height: 250px; overflow-y: auto; }
.log-entry { padding: 0.5rem 0; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.log-date { font-weight: bold; color: var(--primary-color); display: block; font-size: 0.8rem; }

/* SPIMD Tasks */
.spimd-section { background: #FFFFFF; padding: 1.5rem; border-radius: 12px; border: 2px solid var(--secondary-color); }
.micro-steps-list ul { list-style: none; }
.step-item { display: flex; flex-direction: column; padding: 0.8rem; background: #F9F9F9; margin-bottom: 0.5rem; border-radius: 8px; border-left: 4px solid var(--secondary-color); }
.step-label { font-weight: 600; margin-bottom: 0.5rem;}
.step-assessment { display: flex; gap: 0.5rem; justify-content: space-between;}
.step-assessment label { font-size: 0.8rem; background: #E0E7E4; padding: 0.5rem; border-radius: 4px; cursor: pointer; text-align: center; flex: 1;}
.step-assessment input[type="radio"] { display: none; }
.step-assessment input[type="radio"]:checked + label { background: var(--primary-color); color: white; font-weight: bold; }
