body, html {
    height: 100%;
    overflow: hidden;
    width: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-text-size-adjust: 100%; /* Prevent text size adjustment */
}

.chat-container {
    width: 100%;
    height: 100%;
    max-width: 600px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    color: #e0e0e0;
}

.messages {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #333;
    padding: 10px;
    background-color: #2a2a2a;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

.message-container {
    margin-bottom: 20px;
    max-width: 70%;
    position: relative;
}

.message-container.bot {
    align-self: flex-start;
}

.message-container.user {
    align-self: flex-end;
}

.message {
    padding: 10px;
    border-radius: 10px;
    background-color: #4967d4;
    color: #e0e0e0;
}

.message.bot {
    background-color: #2a2a2a;
}

.message.user {
    background-color: #4967d4;
}

.timestamp {
    font-size: 0.7em;
    color: #888;
    margin-top: 5px;
    text-align: left; /* Left-align the timestamp */
}

.uname {
    font-size: 0.9em;
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.message-container.user .uname, .message-container.user .timestamp {
    text-align: right;
}

.text-center {
    text-align: center !important;
}

.input-container {
    display: flex;
    gap: 10px;
    padding: 10px 0;
}

.input-container textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    resize: none;
    font-size: 16px; /* Prevent zoom on focus */
}

.input-container button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #4967d4;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 16px; /* Prevent zoom on focus */

    margin: 12px 0;
}

.input-container button:hover {
    background-color: #4a4a4a;
}

.activity-message {
    text-align: center;
    font-size: 0.8em;
    color: #888;
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 600px) {
    .chat-container {
        width: 100%;
        padding: 10px;
    }

    .input-container {
        flex-direction: column;
        gap: 5px;
    }

    .input-container textarea {
        padding: 5px;
    }

    .input-container button {
        padding: 10px;
    }
}

.typing-indicator {
    font-size: 0.9em;
    color: #888;
    margin: 10px 0;
    text-align: left;
    padding: 0 6px;
}
.typing-indicator.hidden {
    display: none;
}


.device-icon {
    display: inline-block;
    margin: 5px 0 0 5px;
}
.device-icon svg {
    position: relative;
    top: 4px;
}
.device-icon svg path {
    fill: #4967d4; /* Default color */
}

.os-icon {
    display: inline-block;
    height: 15px;
    margin: 5px 0 0 0;
    width: 15px;
}
.os-icon img {
    height: 100%;
    width: 100%;
}
.os-icon img {
    margin: 0 4px;
    position: relative;
    top: 2px;
}

/* Optional: Different color for mobile and desktop if needed */
.icon-mobile svg path {
    fill: #4967d4;
}

.icon-desktop svg path {
    fill: #4967d4;
}

.browser-icon {
    display: inline-block;
    height: 15px;
    margin: 5px 0 0 0;
    width: 15px;
}
.browser-icon img {
    height: 100%;
    width: 100%;
}
.browser-icon img {
    margin: 0 2px;
    position: relative;
    top: 4px;
}

.typing-indicator .browser-icon {
    margin: 5px 4px 0 0;
}

.loader {
    width: 60px;
    aspect-ratio: 1;
    background: linear-gradient(#4967d4 0 0) bottom/100% 0% no-repeat #ccc;
    -webkit-mask: 
      radial-gradient(circle at 60% 65%, #000 62%, #0000 65%) top left, 
      radial-gradient(circle at 40% 65%, #000 62%, #0000 65%) top right, 
      linear-gradient(to bottom left, #000 42%,#0000 43%) bottom left , 
      linear-gradient(to bottom right,#000 42%,#0000 43%) bottom right;
    -webkit-mask-size: 50% 50%;
    -webkit-mask-repeat: no-repeat;
    animation: l19 2s infinite linear;
  }
  @keyframes l19 {
      90%,100% {background-size:100% 100%}
  }
    .loader {
        transition: opacity 0.5s;
    }
    .loader.hidden {
        opacity: 0;
    }
