#daycare-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #FF9800;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}

#daycare-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#daycare-chat-button i {
    color: white;
    font-size: 24px;
}

#daycare-chat-box {
    width: 300px;
    height: 427px;
    background-color: #FFF3E0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /*font-family: 'Comic Sans MS', cursive, sans-serif;*/
    font-family: 'Comic Sans MS', sans-serif;
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 10000;
    transform: scale(0);
    opacity: 0;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

#daycare-chat-box.open {
    transform: scale(1);
    opacity: 1;
}

.daycare-chat-box .daycare-icon {
    background-image: url('../files/logo/school.png');
}

.daycare-chat-box .principal-icon {
    background-image: url('../files/logo/education.png');
}

.daycare-chat-box .daycare-chat-header {
    background-color: #FF9800;
    color: white;
    padding: 10px 15px;
    height: 80px; /* UPDATED */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#daycare-close-chat {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

#daycare-close-chat:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.daycare-chat-box .daycare-chat-selector {
    display: flex;
    align-items: center;
    position: relative;
}

#daycare-chat-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 50%;
    border: 2px solid white;
    order: -1;
}

#daycare-chat-type {
    appearance: none;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 30px 8px 12px;
    font-size: 16px;
    /*font-family: 'Comic Sans MS', cursive, sans-serif;*/
    font-family: 'Comic Sans MS', sans-serif;
    cursor: pointer;
    background-image: url('../files/arrow.png');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
    transition: background-color 0.3s ease;
}

#daycare-chat-type:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#daycare-chat-type option {
    background-color: #FF9800;
    color: white;
    padding: 10px;
}

#daycare-chat-subtext {
    position: absolute;
    top: 100%;
    left: 5px;
    font-size: 12px;
    color: #FFE0B2;
    white-space: nowrap;
}

.daycare-chat-box .daycare-chat-input {
    display: flex;
    padding: 10px;
    background-color: white;
    border-top: 1px solid #FFE0B2;
}

#daycare-user-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 5px;
    font-size: 14px;
    color: #333333;
    /*font-family: 'Comic Sans MS', cursive, sans-serif;*/
    font-family: 'Comic Sans MS', sans-serif;
}

#daycare-send-button {
    background: none;
    border: none;
    color: #FF9800;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
}

#daycare-chat-messages {
    height: 300px; /* UPDATED */
    overflow-y: auto;
    padding: 10px;
    background-color: #FFF3E0;
}

.daycare-chat-box .daycare-message {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.daycare-chat-box .daycare-message.show {
    opacity: 1;
    transform: translateY(0);
}

.daycare-chat-box .daycare-bot-message {
    justify-content: flex-start; /* Aligns bot messages to the left */
}

.daycare-chat-box .daycare-user-message {
    justify-content: flex-end; /* Aligns user messages to the right */
}

.daycare-chat-box .daycare-message-content {
    background-color: white;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: daycareMessageAppear 0.5s ease-out;
}

@keyframes daycareMessageAppear {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.daycare-chat-box .daycare-bot-message .daycare-message-content {
    border-top-left-radius: 0;
    background-color: #FFB74D;
    color: #333;
}

.daycare-chat-box .daycare-user-message .daycare-message-content {
    background-color: #FFA726;
    color: #333;
    border-top-right-radius: 0;
}

/* ChatBot Specific Scrollbar Styles */
#daycare-chat-messages::-webkit-scrollbar {
    width: 6px !important;
}

#daycare-chat-messages::-webkit-scrollbar-track {
    background: #FFE0B2 !important;
    border-radius: 3px !important;
}

#daycare-chat-messages::-webkit-scrollbar-thumb {
    background: #FF9800 !important;
    border-radius: 3px !important;
    border: none !important;
}

#daycare-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #F57C00 !important;
}

/* Firefox ChatBot Scrollbar */
#daycare-chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #FF9800 #FFE0B2;
}


@keyframes daycareLoadingDots {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0.5;
    }
}

.daycare-chat-box .daycare-loading-dots {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 20px;
    margin-top: 5px;
}

.daycare-chat-box .daycare-loading-dots span {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background-color: #FF9800;
    border-radius: 50%;
    display: inline-block;
    animation: daycareLoadingDots 1.4s infinite ease-in-out both;
}

.daycare-chat-box .daycare-loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.daycare-chat-box .daycare-loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}