﻿

#pageLoader {
    width: 100%;
    max-width: 400px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: #ffffff; /* fallback color */
    background-image: url("../images/splash_landscape.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% auto;
}

    #pageLoader.fade-out {
        opacity: 0;
        transition: opacity 0.5s ease;
    }

body {
    margin: 0;
    font-family: 'Segoe UI',sans-serif;
    background: #eef2f7;
}

/*.app-wrapper {*/
    /*    width: 380px;*/
    /*width: 100%;
    max-width: 400px;
    height: 100vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    background: #f6f8fb;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}*/

.app-wrapper {
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #f6f8fb;
    position: relative;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow-x: clip;
    overflow-y: auto;
}

    .ai-card {
    flex: 2;
    background: linear-gradient(135deg,#4f46e5 0%,#7c3aed 50%,#312e81 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 8vh 5vh;
}

    .ai-card p {
        text-align: center;
        position: absolute;
        margin-top: -30vh;
        font-weight: bold;
        padding: 20px;
        width: 270px;
        font-size: 13pt;
    }

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(255,255,255,.2);
}

    .avatar img {
        width: 140px;
        border: 5px solid white;
        border-radius: 75px;
    }

.tap-btn {
    margin-top: -70px;
    padding: 5px 13px;
    background: rgb(96 66 223 / 72%);
    /*background: rgb(88 69 221);*/
    border: 3px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    font-weight: 600;
    color: white;
    cursor: pointer;
}

.bottom-card {
    flex: 1;
    background: linear-gradient(135deg,#6366f1,#7c3aed);
    border-radius: 20px;
    padding: 16px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-height: 90px; 
    min-height: 70px; 
    height: auto; 
}

/*.app-wrapper {
    width: 380px;*/
    /*min-height: 100vh;*/
    /*height: 100vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    background: #f6f8fb;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}*/

header {
    background: white;
    padding: 16px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.header-flex {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    color: #d4a017;
}

.welcome {
    font-size: 16px;
    font-weight: 600;
}

.welcomeTxt {
    font-size: 20px;
    font-weight: bold;
}

.roomTxt {
    font-size: 16px;
    color: #6b7280;
}
.room {
    font-size: 13px;
    color: #6b7280;
}

/*.parent-nav {
    display: flex;
    justify-content: space-around;
    background: white;
    padding: 14px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}*/

.parent-nav {
    display: flex;
    justify-content: space-around;
    background: white;
    padding: 8px 0;
    margin-top: -14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

    .parent-nav button {
        background: none;
        border: none;
        text-align: center;
        font-size: 12px;
        color: #6b7280;
        cursor: pointer;
    }

.circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: auto;
    margin-bottom: 6px;
}

    .circle img {
        width: 32px;
        margin-top: 15px;
    }

.purple {
    background: #7c3aed;
}

.teal {
    background: #2aa198;
}

.blue {
    background: #4f81bd;
}

.orange {
    background: #d97706;
}

.violet {
    background: #8b5cf6;
}

.parent-nav button.active span {
    font-weight: 700;
    color: #111827;
}

.content {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/*#pageContent {
    display: none;
}*/

.card {
    background: white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    margin: auto;
    margin-bottom: 20px;
    background: linear-gradient(135deg,#2aa198,#3aa7b3);
    cursor:pointer;
}

    .icon-box img {
        width: 38px;
        margin-top: 15px;
        cursor: pointer;
    }

.card h3 {
    margin: 0;
    font-size: 15px;
}

.card p {
    font-size: 13px;
    color: #6b7280;
}

footer {
    background: white;
    padding: 12px 20px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    bottom: 0;
}



.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.care-card {
    background: white;
    border-radius: 28px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: all .25s ease;
    color: inherit;
}

    .care-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 35px rgba(0,0,0,0.08);
    }

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg,#44b3bd,#2f9fb0);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.care-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f1f3a;
    margin-bottom: 6px;
}

.care-card p {
    font-size: 13px;
    color: #667085;
}

@keyframes chatConfirmIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}