/* =====================================================
   SensoryPlay Planner - Main CSS
   Feminine Pastel Theme
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Quicksand:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
    --cream:        #FFF8F0;
    --beige:        #F5ECD7;
    --beige-dark:   #EAD9BC;
    --pink:         #FFB5C8;
    --pink-dark:    #E8899A;
    --pink-light:   #FFD6E3;
    --sage:         #9DC4B0;
    --sage-dark:    #7BA896;
    --sage-light:   #C8E0D6;
    --white:        #FFFFFF;
    --text:         #4A3728;
    --text-muted:   #8B7355;
    --text-light:   #B5998A;
    --border:       #EAD9BC;
    --shadow:       rgba(74, 55, 40, 0.08);
    --shadow-md:    rgba(74, 55, 40, 0.14);

    /* Status Colors */
    --success:      #7BB89A;
    --warning:      #F5C842;
    --danger:       #E87070;
    --info:         #82B4D4;

    /* Category Colors */
    --cat-motorik-halus:  #FFB5C8;
    --cat-motorik-kasar:  #9DC4B0;
    --cat-sensory-bin:    #F5ECD7;
    --cat-messy-play:     #FFD1DC;
    --cat-montessori:     #C8E6C9;
    --cat-art-craft:      #B3D9FF;
    --cat-calming:        #E8D5F5;

    --font-body:    'Nunito', sans-serif;
    --font-heading: 'Quicksand', sans-serif;

    --radius-sm:    8px;
    --radius-md:    12px;
    --radius-lg:    20px;
    --radius-xl:    28px;
    --radius-pill:  100px;

    --transition:   all 0.2s ease;
    --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Dark Mode Variables ---- */
[data-theme="dark"] {
    --cream:        #1E1816;
    --beige:        #2A2420;
    --beige-dark:   #332E29;
    --white:        #2A2420;
    --text:         #F0E6D3;
    --text-muted:   #C4A882;
    --text-light:   #8B7355;
    --border:       #3A3028;
    --shadow:       rgba(0, 0, 0, 0.3);
    --shadow-md:    rgba(0, 0, 0, 0.5);
}

/* ---- Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

a {
    color: var(--pink-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--pink);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--beige);
}
::-webkit-scrollbar-thumb {
    background: var(--pink);
    border-radius: 10px;
}

/* ---- App Layout ---- */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    background: var(--cream);
}

.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-content {
    padding: 1.5rem;
}

/* ---- Sidebar Logo ---- */
.sidebar-logo {
    padding: 1.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo .logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
}

.sidebar-logo .logo-icon {
    font-size: 1.6rem;
}

/* ---- Sidebar Navigation ---- */
.sidebar-nav {
    padding: 0.75rem 0;
    flex: 1;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0.75rem 1.25rem 0.35rem;
}

.nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.25rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0;
    transition: var(--transition);
    border-left: 3px solid transparent;
    position: relative;
}

.nav-item .nav-link:hover {
    background: var(--cream);
    color: var(--text);
    border-left-color: var(--pink-light);
}

.nav-item .nav-link.active {
    background: linear-gradient(135deg, var(--pink-light), var(--beige));
    color: var(--pink-dark);
    border-left-color: var(--pink-dark);
}

.nav-item .nav-link .nav-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* ---- Cards ---- */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 16px var(--shadow-md);
    transform: translateY(-1px);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0;
}

/* ---- Stat Cards ---- */
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-bounce);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-md);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.pink    { background: var(--pink-light); }
.stat-icon.sage    { background: var(--sage-light); }
.stat-icon.beige   { background: var(--beige); }
.stat-icon.purple  { background: #E8D5F5; }

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* ---- Activity Cards ---- */
.activity-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
    transition: var(--transition-bounce);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px var(--shadow-md);
}

.activity-card-header {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.activity-category-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.activity-card-body {
    padding: 0 1rem 1rem;
    flex: 1;
}

.activity-card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ---- Badges ---- */
.badge {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.3em 0.7em;
    border-radius: var(--radius-pill);
}

.badge-messy-low    { background: #E8F5E9; color: #388E3C; }
.badge-messy-medium { background: #FFF8E1; color: #F57F17; }
.badge-messy-high   { background: #FFEBEE; color: #C62828; }
.badge-planned      { background: #E3F2FD; color: #1565C0; }
.badge-completed    { background: #E8F5E9; color: #2E7D32; }
.badge-skipped      { background: #F5F5F5; color: #757575; }

.bg-soft-pink   { background: var(--pink-light); color: var(--pink-dark); }
.bg-soft-green  { background: var(--sage-light); color: var(--sage-dark); }
.bg-soft-blue   { background: #DBEAFE; color: #1D4ED8; }
.bg-soft-purple { background: #EDE9FE; color: #6D28D9; }
.bg-soft-cream  { background: var(--beige); color: var(--text-muted); }

/* ---- Buttons ---- */
.btn {
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: var(--radius-pill);
    padding: 0.5rem 1.25rem;
    transition: var(--transition-bounce);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink-dark), #D4708A);
    color: white;
    box-shadow: 0 4px 12px rgba(232, 137, 154, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #D4708A, var(--pink-dark));
    color: white;
    box-shadow: 0 6px 18px rgba(232, 137, 154, 0.5);
    transform: translateY(-2px);
}

.btn-sage {
    background: linear-gradient(135deg, var(--sage-dark), #6A9888);
    color: white;
    box-shadow: 0 4px 12px rgba(157, 196, 176, 0.4);
}

.btn-sage:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(157, 196, 176, 0.5);
    color: white;
}

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

.btn-outline-pink:hover {
    background: var(--pink-light);
    color: var(--pink-dark);
    transform: translateY(-1px);
}

.btn-soft {
    background: var(--beige);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-soft:hover {
    background: var(--beige-dark);
    color: var(--text);
}

.btn-danger-soft {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.btn-danger-soft:hover {
    background: #FFCDD2;
}

.btn-sm {
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* ---- Forms ---- */
.form-control, .form-select {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.875rem;
    padding: 0.6rem 0.9rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    background: var(--white);
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(255, 181, 200, 0.2);
    color: var(--text);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-label {
    font-weight: 700;
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.form-text {
    font-size: 0.775rem;
    color: var(--text-light);
}

.invalid-feedback {
    font-size: 0.775rem;
    font-weight: 600;
}

/* ---- Schedule Items ---- */
.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

.schedule-item:hover {
    border-color: var(--pink);
    box-shadow: 0 2px 8px var(--shadow);
}

.schedule-item.completed {
    opacity: 0.7;
    background: var(--beige);
}

.schedule-item .schedule-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pink);
    flex-shrink: 0;
    margin-top: 5px;
}

.schedule-item.completed .schedule-dot {
    background: var(--sage);
}

/* ---- Page Header ---- */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ---- Toast Notifications ---- */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    min-width: 280px;
}

.toast {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px var(--shadow-md);
    padding: 0.85rem 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    animation: slideInRight 0.3s ease forwards;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--info); }
.toast.warning { border-left: 4px solid var(--warning); }

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

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

/* ---- Child Avatar ---- */
.child-avatar-wrap {
    position: relative;
    display: inline-block;
}

/* ---- Calendar ---- */
.fc .fc-toolbar-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.fc .fc-button-primary {
    background: var(--pink-dark);
    border-color: var(--pink-dark);
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-sm) !important;
}

.fc .fc-button-primary:hover {
    background: var(--pink);
    border-color: var(--pink);
}

.fc .fc-daygrid-day.fc-day-today {
    background: var(--pink-light) !important;
}

.fc .fc-event {
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    padding: 2px 5px;
}

/* ---- Mood Selector ---- */
.mood-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mood-option {
    display: none;
}

.mood-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.65rem 0.9rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-bounce);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.mood-label .mood-emoji {
    font-size: 1.6rem;
}

.mood-option:checked + .mood-label {
    border-color: var(--pink-dark);
    background: var(--pink-light);
    color: var(--pink-dark);
    transform: scale(1.05);
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h5 {
    color: var(--text-muted);
    font-weight: 700;
}

/* ---- Loading Spinner ---- */
.spinner-wave {
    display: flex;
    align-items: center;
    gap: 4px;
}

.spinner-wave span {
    display: block;
    width: 6px;
    height: 20px;
    background: var(--pink-dark);
    border-radius: 3px;
    animation: wave 1s ease-in-out infinite;
}

.spinner-wave span:nth-child(2) { animation-delay: 0.1s; }
.spinner-wave span:nth-child(3) { animation-delay: 0.2s; }
.spinner-wave span:nth-child(4) { animation-delay: 0.3s; }
.spinner-wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50%       { transform: scaleY(1.5); }
}

/* ---- Step Progress (for wizard/onboarding) ---- */
.step-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    background: var(--white);
    color: var(--text-muted);
    transition: var(--transition);
    z-index: 1;
}

.step-item.active .step-circle {
    border-color: var(--pink-dark);
    background: var(--pink-dark);
    color: white;
}

.step-item.done .step-circle {
    border-color: var(--sage);
    background: var(--sage);
    color: white;
}

.step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
}

.step-item.active .step-label,
.step-item.done .step-label {
    color: var(--text-muted);
}

.step-connector {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin-top: -24px;
    margin-bottom: 0.9rem;
}

/* ---- Material Tag Input ---- */
.tag-input-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    min-height: 44px;
    cursor: text;
    transition: var(--transition);
    background: var(--white);
}

.tag-input-wrap:focus-within {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(255, 181, 200, 0.2);
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    background: var(--pink-light);
    color: var(--pink-dark);
    border-radius: var(--radius-pill);
    font-size: 0.775rem;
    font-weight: 700;
}

.tag-badge .tag-remove {
    cursor: pointer;
    opacity: 0.7;
    font-size: 0.85rem;
    line-height: 1;
}

.tag-badge .tag-remove:hover {
    opacity: 1;
}

.tag-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text);
    min-width: 120px;
    flex: 1;
}

/* ---- Messy Level Indicator ---- */
.messy-indicator {
    display: flex;
    gap: 3px;
}

.messy-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.messy-dot.active-low    { background: #A5D6A7; }
.messy-dot.active-medium { background: #FFD54F; }
.messy-dot.active-high   { background: #EF9A9A; }

/* ---- PDF Print Styles ---- */
@media print {
    .sidebar, .topbar, .no-print {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
    body {
        background: white;
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1050;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .page-content {
        padding: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 1.25rem;
    }

    .mood-label {
        padding: 0.5rem 0.6rem;
    }

    .mood-label .mood-emoji {
        font-size: 1.3rem;
    }
}

/* ---- Animations ---- */
.fade-in-up {
    animation: fadeInUp 0.4s ease forwards;
}

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

.pulse-pink {
    animation: pulsePink 2s infinite;
}

@keyframes pulsePink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 181, 200, 0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(255, 181, 200, 0); }
}

/* ---- Utility ---- */
.text-pink    { color: var(--pink-dark) !important; }
.text-sage    { color: var(--sage-dark) !important; }
.text-cream   { color: var(--text-muted) !important; }
.bg-cream     { background: var(--cream) !important; }
.bg-white-custom { background: var(--white) !important; }
.border-pink  { border-color: var(--pink) !important; }

.rounded-custom { border-radius: var(--radius-lg) !important; }
.rounded-pill-custom { border-radius: var(--radius-pill) !important; }

.fw-extra-bold { font-weight: 800 !important; }
.font-heading  { font-family: var(--font-heading) !important; }

.hover-lift {
    transition: var(--transition-bounce);
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-md);
}

.divider-soft {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}

/* ---- Sidebar Overlay (mobile) ---- */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
}

.sidebar-overlay.show {
    display: block;
}

/* ===== ADDITIONS FOR STEP 3 VIEWS ===== */

/* Stat card */
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(255,181,200,.12);
    position: relative;
    overflow: hidden;
}
.stat-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
    margin-bottom: .75rem;
}
.stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1; color: #3d2c2c; }
.stat-label { font-size: .78rem; color: #9e8989; margin-top: .25rem; }

/* Schedule list (timeline) */
.schedule-list { display: flex; flex-direction: column; gap: 0; }
.schedule-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: .5rem 0;
    border-bottom: 1px dashed #f5ecd7;
    position: relative;
}
.schedule-item:last-child { border-bottom: none; }
.schedule-item.completed .schedule-body p { text-decoration: line-through; color: #9e8989; }
.schedule-time { font-size: .72rem; font-weight: 700; color: #FFB5C8; width: 36px; flex-shrink: 0; text-align: right; }
.schedule-dot {
    width: 10px; height: 10px; border-radius: 50%; background: #FFB5C8;
    flex-shrink: 0; margin-top: 4px;
}
.schedule-item.completed .schedule-dot { background: #9DC4B0; }
.schedule-body { flex: 1; }

/* Schedule card (list view) */
.schedule-card { transition: box-shadow .2s; }
.schedule-card:hover { box-shadow: 0 4px 20px rgba(255,181,200,.2); }
.schedule-card.completed { opacity: .75; }
.schedule-time-badge { text-align: center; min-width: 40px; }

/* Upcoming date badge */
.upcoming-date-badge {
    background: #FFB5C8; color: #fff; border-radius: 8px;
    padding: 4px 8px; text-align: center; min-width: 40px;
}

/* Activity card small (dashboard) */
.activity-card-sm {
    display: flex; align-items: center; gap: 12px;
    background: #FFF8F0; border-radius: 12px; padding: .75rem;
    transition: background .15s;
    border: 1px solid transparent;
}
.activity-card-sm:hover { background: #fff; border-color: #FFB5C8; }
.activity-card-sm-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Weekly bar chart */
.week-bar-wrap { height: 48px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 4px; }
.week-bar { width: 24px; border-radius: 6px 6px 0 0; background: #FFB5C8; min-height: 4px; transition: height .3s; }
.week-bar.today { background: #9DC4B0; }

/* Child card */
.child-card { position: relative; }
.child-card-header { border-bottom: 1px solid #f5ecd7; }

/* Avatar color picker */
.avatar-color-btn {
    width: 28px; height: 28px; border-radius: 50%; border: 3px solid transparent;
    cursor: pointer; transition: transform .15s, border-color .15s;
}
.avatar-color-btn:hover { transform: scale(1.15); }
.avatar-color-btn.active { border-color: #3d2c2c; transform: scale(1.1); }

/* Steps list */
.steps-list { list-style: none; padding: 0; margin: 0; }
.step-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1rem; }
.step-number {
    width: 28px; height: 28px; background: #FFB5C8; color: #fff;
    border-radius: 50%; font-weight: 700; font-size: .82rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-text { flex: 1; line-height: 1.6; padding-top: 3px; }

/* Line clamp */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Hover bg */
.hover-bg { transition: background .15s; cursor: pointer; }
.hover-bg:hover { background: #FFF8F0; }

/* AI result cards */
.ai-result-card {
    background: #fff; border-radius: 16px;
    border: 2px solid #f5ecd7;
    padding: 1.25rem; margin-bottom: 1rem;
    transition: border-color .2s;
}
.ai-result-card:hover { border-color: #FFB5C8; }
.ai-result-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: .75rem; }
.ai-result-num { width: 32px; height: 32px; background: linear-gradient(135deg,#FFB5C8,#9DC4B0); color: #fff; border-radius: 50%; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }

/* Mood selector */
.mood-selector { display: flex; gap: 8px; flex-wrap: wrap; }
.mood-option {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: .5rem .75rem; border-radius: 12px; cursor: pointer;
    border: 2px solid #f5ecd7; transition: all .15s; flex: 1; min-width: 60px;
}
.mood-option:hover { border-color: #FFB5C8; background: #FFF8F0; }
.mood-option.active { border-color: #FFB5C8; background: #ffe4ec; }
.mood-emoji { font-size: 1.4rem; }
.mood-label { font-size: .7rem; font-weight: 600; color: #5c4a4a; }

/* Date group in schedules */
.date-group-badge {}

/* bg-pink and bg-sage utilities */
.bg-pink { background: #FFB5C8 !important; }
.bg-sage { background: #9DC4B0 !important; }
.text-sage { color: #9DC4B0 !important; }

/* FullCalendar overrides */
.fc { font-family: 'Nunito', sans-serif !important; }
.fc .fc-button-primary { background: #FFB5C8 !important; border-color: #FFB5C8 !important; font-weight: 600; }
.fc .fc-button-primary:hover { background: #ff8fab !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active { background: #ff8fab !important; }
.fc .fc-daygrid-day.fc-day-today { background: #ffe4ec44 !important; }
.fc .fc-event { border-radius: 6px !important; font-size: .78rem !important; border: none !important; }
