.start-session {
    width: 335px;
    margin-top: 50px;
    padding: 20px;
    background: #f9f9f9;
    font-family: Arial, sans-serif;
    text-align: center;
}

.start-session h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.start-session input[type="text"],
.start-session input[type="email"] {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.start-session input[type="text"]:focus,
.start-session input[type="email"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.start-session button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-session button:hover {
    background-color: #0056b3;
}

.start-session button:active {
    background-color: #003f7f;
}

/* General Chat Popup Styling */
/* Chat Container - Fixed Size */
.chat-container {
    position: fixed;
    bottom: 100px; 
    right: 20px; 
    width: 350px;
    height: 500px; 
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: Arial, sans-serif;
    z-index: 1000;
}

/* Header Styling */
.chat-header {
    background-color: #00e3e1; /* Teal color */
    color: #fff;
    text-align: center;
    padding: 15px 10px;
    position: relative;
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.chat-header .chat-name {
    font-size: 18px;
    font-weight: bold;
}

/* Chat Messages - Scrollable Area */
.chat-messages {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: #fafafa;
}

.message {
    padding: 10px 15px;
    border-radius: 15px;
    margin: 8px;
    max-width: 80%;
    word-wrap: break-word;
    font-family: Arial, sans-serif;

    display: flex;
    align-items: center; /* Vertically align avatar with message */
}

.message-avatar {
    width: 30px; /* Set a size for the avatar */
    height: 30px;
    border-radius: 50%; /* Make it circular */
    margin-right: 10px; /* Space between avatar and message */
}

.message-text {
    flex: 1; /* Allow message text to take up the remaining space */
}

/* Align message to the left for admin (or any other sender type) */
.message.admin {
    background-color: #00e3e1;
    color: #ffffff;
    align-self: flex-start;  /* Align to the left */
    border-bottom-left-radius: 0;
}

/* Align message to the right for the user */
.message.user {
    background-color: #f1f1f1;
    color: #333;
    align-self: flex-end; /* Align to the right */
    border-bottom-right-radius: 0;
}

/* Input Field Styling */
.chat-input {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

.chat-input input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    outline: none;
    background-color: #f2f2f2;
}

.chat-input input::placeholder {
    color: #aaa;
}

.chat-input button {
    margin-left: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    color: #333;
}

.chat-input button:hover {
    color: #00e3e1;
}

/* Chat Button Styling */
.chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #00e3e1; /* Teal button */
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    z-index: 1000;
    transition: background-color 0.3s;
}

.chat-toggle-btn:hover {
    background-color: #009c9a; /* Slightly darker teal */
}

@media only screen and (max-width: 80px)
{
    .chat-container {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        max-width: 360px; /* Match the viewport width */
        background-color: #f9f9f9;
        border: 1px solid #ccc;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    
    .chat-header {
        flex: 0 0 auto;
        padding: 10px;
        background-color: #007bff;
        color: white;
        font-size: 18px;
        text-align: center;
    }
    
    .chat-messages {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 10px;
        font-size: 14px;
        background-color: #fff;
    }
    
    .chat-input-container {
        flex: 0 0 auto;
        display: flex;
        border-top: 1px solid #ccc;
        background-color: #f1f1f1;
        padding: 10px;
    }
    
    .chat-input {
        flex: 1 1 auto;
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }
    
    .chat-send-btn {
        flex: 0 0 auto;
        padding: 10px 20px;
        margin-left: 10px;
        font-size: 16px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }
    
    .chat-send-btn:active {
        background-color: #0056b3;
    }
    
}
/* Full-screen chat container for mobile devices */
@media only screen and (max-width: 768px) { /* Target devices with width <= 768px */
    .chat-container {
        width: 100vw;
        height: 90vh;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }

    .message-avatar {
        width: 25px; /* Set a size for the avatar */
        height: 25px;
    }

    .chat-header .chat-name{
        font-size: 35px;
    }

    .chat-messages {
        font-size: 25px;
        padding: 15px;
    }

    .chat-message {
        font-size: 25px;
    }

    .chat-input input {
        font-size: 25px;
        padding: 12px;
    }

    .chat-input button {
        font-size: 25px;
        padding: 12px 20px;
    }
}