
#aisc-chatbox {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-height: 500px;
    background: white;
    border-radius: 16px;
    border: 1px solid #ccc;
    padding-top: 30px;
    z-index: 9999;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#aisc-controls {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10000;
}

#aisc-controls button {
    background: none;
    border: none;
    font-size: 16px;
    margin-left: 5px;
    cursor: pointer;
    color: #333;
}

#aisc-chatbox.fullscreen {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
}

#aisc-chatbox.fullscreen #aisc-messages-wrapper {
    height: calc(100vh - 140px);
}

#aisc-messages-wrapper {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 5px;
    overflow: hidden;
}

#aisc-messages {
    height: 250px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #eee;
    font-size: 14px;
    background: #fefefe;
    flex-grow: 1;
}

.user-msg {
    text-align: right;
    color: #0073aa;
    margin-bottom: 5px;
}

.ai-msg {
    text-align: left;
    color: #2e8540;
    margin-bottom: 5px;
}

#aisc-input {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    margin-top: 5px;
    border-radius: 6px;
}

#aisc-send, #aisc-voice {
    margin-top: 5px;
    padding: 8px 14px;
    font-size: 14px;
    background-color: var(--aisc-color, #0073aa);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

@media screen and (max-width: 600px) {
    #aisc-chatbox {
        width: 95%;
        right: 2.5%;
        bottom: 10px;
        max-height: 90vh;
    }

    #aisc-messages {
        height: 180px;
    }
}


#aisc-send, #aisc-voice {
    margin-top: 5px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    background-color: var(--aisc-color, #0073aa);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

#aisc-voice {
    background-color: #0b875b;
}

#aisc-send:hover, #aisc-voice:hover {
    filter: brightness(1.1);
}


#aisc-send, #aisc-voice {
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    background-color: var(--aisc-color, #0073aa);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
    flex: 1;
    text-align: center;
}

#aisc-voice {
    background-color: #0b875b;
    display: flex;
    align-items: center;
    justify-content: center;
}

#aisc-voice::before {
    content: "🎙️";
    font-size: 20px;
    margin-right: 6px;
}


#aisc-chatbox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    max-height: 600px;
    background: white;
    border-radius: 16px;
    border: 1px solid #ccc;
    padding-top: 30px;
    z-index: 9999;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
}


@keyframes aisc-popup-zoom {
    0% {
        transform: translate(-50%, -50%) scale(0.8) rotate(-5deg);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

#aisc-chatbox.popup-animate {
    animation: aisc-popup-zoom 0.7s ease forwards;
}


#aisc-chatbox.minimized {
    height: auto !important;
    max-height: 60px !important;
    overflow: hidden;
}
#aisc-chatbox.fullscreen {
    top: 0;
    left: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
}


#aisc-chatbox.minimized {
    height: auto !important;
    max-height: 60px !important;
    overflow: hidden;
}
#aisc-chatbox.fullscreen {
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    border-radius: 0 !important;
}
