:root {
    --misty-lilac:#C9B8D9;
    --soft-seafoam:#B9D8D0;
    --apricot:#F4C7A1;
    --blush:#E8C4C8;
    --butter:#F5E7B8;
    --background:#FCF8F5;
    --cards:#FFFFFF;
    --border:#E9E1E3;
    --text:#514957;
    --secondary:#887F8D;
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
    background:var(--background);
    color:var(--text);
    font-family:"Segoe UI", system-ui, sans-serif;
}

.header {
    text-align:center;
    padding:18px 20px 0;
}

.header h1 {
    margin:0;
    font-size:2.6rem;
    color:var(--misty-lilac);
}

.header p {
    margin:2px 0 0;
    color:var(--secondary);
}


/* MAIN DASHBOARD */

.hetty-dashboard {
    max-width:1200px;
    margin:auto;
    padding:8px 30px 25px;

    display:grid;

    grid-template-columns:
        1fr
        1.2fr
        1fr;

    grid-template-areas:
        "affirmation affirmation affirmation"
        "left centre right";

    column-gap:25px;
    row-gap:25px;

    align-items:start;
}


/* AFFIRMATION */

.affirmation {
    grid-area:affirmation;

    background:var(--butter);

    border-radius:30px;

    padding:18px 35px;

    text-align:center;

    box-shadow:
        0 8px 20px
        rgba(81,73,87,0.04);
}

.affirmation h2 {
    font-size:.95rem;

    color:var(--secondary);

    margin:0 0 5px;
}

.affirmation p {
    font-size:1.35rem;

    margin:0;

    line-height:1.35;
}


/* THREE DESKTOP COLUMNS */

.dashboard-column {
    display:flex;

    flex-direction:column;

    gap:25px;

    min-width:0;

    align-self:start;
}

.left-column {
    grid-area:left;
}

.centre-column {
    grid-area:centre;
}

.right-column {
    grid-area:right;
}


/* CARDS */

.card {
    width:100%;

    background:var(--cards);

    border-radius:30px;

    padding:25px;

    border:1px solid var(--border);

    box-shadow:
        0 10px 25px
        rgba(81,73,87,.05);

    flex:none;
}

.card h2 {
    margin-top:0;
}

.school {
    border-top:
        8px solid
        var(--soft-seafoam);
}

.meals {
    border-top:
        8px solid
        var(--butter);
}

.reminders {
    border-top:
        8px solid
        var(--apricot);
}

.kids {
    border-top:
        8px solid
        var(--blush);
}

.location {
    border-top:
        8px solid
        var(--misty-lilac);
}


/* CARD CONTENT */

.item {
    padding:12px;

    margin:10px 0;

    background:var(--background);

    border-radius:15px;

    color:var(--secondary);
}

.activity-item {
    padding:12px;

    margin:10px 0;

    background:var(--background);

    border-radius:15px;

    color:var(--secondary);
}

.activity-name {
    font-weight:bold;

    margin-bottom:5px;
}

.activity-description {
    font-size:0.9em;

    opacity:0.8;
}


/* HETTY CORE */

.hetty-core {
    width:100%;

    display:flex;

    justify-content:center;

    align-items:flex-start;
}

.hetty-circle {
    width:330px;
    height:330px;
    border-radius:50%;
    background:
        linear-gradient(
            145deg,
            var(--misty-lilac),
            var(--soft-seafoam)
        );
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:35px;
    box-shadow:
        0 18px 45px
        rgba(81,73,87,.12);
}

.hetty-circle h2 {
    font-size:1.8rem;

    margin:0;
}

.hetty-circle p {
    margin:8px 0;

    color:var(--secondary);
}

.hetty-circle textarea {
    width:210px;

    height:60px;

    border:none;

    border-radius:18px;

    padding:12px;

    resize:none;

    font-family:inherit;

    color:var(--text);

    box-sizing:border-box;
}

.voice-button,
.send-button,
.upload-button {
    background:var(--cards);

    border:none;

    border-radius:25px;

    cursor:pointer;

    color:var(--text);

    font-family:inherit;
}

.voice-button {
    padding:10px 20px;

    margin:6px;
}

.send-button {
    padding:10px 24px;

    margin:6px;

    border-radius:25px;
}

.upload-button {
    width:42px;

    height:42px;

    margin:4px 0 0;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;
}

.voice-button:hover,
.send-button:hover,
.upload-button:hover {
    background:var(--blush);
}

.upload-button input {
    display:none;
}

.location-pill {
    display:inline-block;

    background:var(--soft-seafoam);

    padding:12px 20px;

    border-radius:20px;
}

.hetty-circle textarea.listening {
    color:white;
}

/* HETTY CORE */

/* Keep textarea white when disabled */

.hetty-circle textarea:disabled {
    background:white;

    color:var(--text);

    opacity:1;
}

#image-preview {
    display:none;
    max-width:210px;
    margin-top:6px;
    padding:6px 12px;
    background:rgba(255,255,255,0.65);
    border-radius:20px;
    font-size:0.75rem;
    line-height:1.2;
    color:var(--secondary);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    align-items:center;
}

/* More obvious pulse while Hetty is listening */

.hetty-circle:has(.voice-button.listening) {
    animation:
        hettyListeningPulse
        1.5s
        ease-in-out
        infinite;
}

@keyframes hettyListeningPulse {

    0%,
    100% {

        transform:scale(1);

        box-shadow:
            0 18px 45px
            rgba(81,73,87,.12);

    }

    50% {

        transform:scale(1.04);

        box-shadow:
            0 25px 65px
            rgba(81,73,87,.30);

    }

}
/* MOBILE */

@media(max-width:800px) {

    .hetty-dashboard {
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:5px 15px 20px;
    gap:20px;
}

    @media(max-width:800px) {

    .affirmation {
    order:1;
    align-self:stretch;
}


}

    .centre-column {
        order:2;
    }

    .left-column {
        order:3;
    }

    .right-column {
        order:4;
    }

    .dashboard-column {
        display:flex;

        flex-direction:column;

        gap:20px;

        width:100%;
    }

    .hetty-core {
        width:100%;

        display:flex;

        justify-content:center;

        align-items:center;
    }

    .hetty-circle {
        width:300px;

        height:300px;
    }

    .affirmation p {
        font-size:1.2rem;
    }

}