/*************************
 WhatsApp floating button 
 **************************/

.w1 {
    position: fixed;
    bottom: 20px;
    left: 20px;
    /* Change from right to left */
    z-index: 1000;
}

#float-watsapp { 
    font-size: 48px;
    color: #25D366;
    cursor: pointer;
}

/* WhatsApp chat widget container */
#app {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 20px;
    /* Change from right to left */
    width: 320px;
    max-width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1001;
}

/* Chat widget header */
.conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #075E54;
    color: #fff;
}

.conversation-header .icon {
    width: 60px;
    height: 60px;
    border-radius: 10%;
}

.conversation-header .title {
    margin-left: 10px;
    font-size: 21px;
    font-weight: 900;
    color: aliceblue;
    background: linear-gradient(to left, white, blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 24px;
    margin-top: -1.5rem;
}

.messages-container {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.message-bubble {
    background-color: #DCF8C6;
    color: black;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 12px;
}

.message-text p {
    margin: 0;
    font-size: 13px;
}

/* Chat widget footer */
.flex {
    display: flex;
    flex-direction: column;
}

.flex-grow {
    flex-grow: 1;
}

.w-full {
    border-radius: 10px;
}

.input-container {
    display: flex;
    align-items: center;
    padding: 10px;
}

input[type="text"] {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px;
    outline: none;
    margin-right: 10px;
}

input[type="text"]:focus {
    border-color: #25D366;
}

.send-button {
    background-color: #25D366;
    border: none;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

/* Course links container */
.course-links {
    display: flex;
    flex-direction: column;
}

/* Responsive styles */
@media (max-width: 768px) {
    #app {
        bottom: 80px;
        left: 10px;
        /* Change from right to left */
        width: 90%;
    }

    .conversation-header .title {
        font-size: 18px;
    }
}


.input-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.input-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
}

.send-button {
    padding: 10px 20px;
    border: none;
    background-color: #25d366;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.send-button:hover {
    background-color: #128c7e;
}

.options {
    margin-top: 10px;
}

.option-button {

    padding: 10px 20px;
    border: none;
    background-color: #25d366;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.option-button:hover {
    background-color: #128c7e;
}

.dynamic-options {
    margin-top: 10px;
}

.close-button {
    background: none;
    border: none;
    cursor: pointer;
}

.hidden {
    display: none;
}