:root {
    --primary-green: #EE8C00;
    --hover-green: #EE8C00;
    --bg-color: #0000001c;
    --text-color: #343541;
}

html {
    direction: ltr !important;
}


body.rtl .e-con{
    direction: ltr !important;
}
.bot-main-container {
    font-family: 'Segoe UI', system-ui, sans-serif;
    /* background-color: var(--bg-color); */
    color: var(--text-color);
    margin: 0;
    /* min-height: 100vh; */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* position: absolute; */
    overflow: hidden;
}

.chat-container {
    width: 100%;
    max-width: 800px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-top: 0px;
    flex-grow: 1;
    z-index: 1;
}

.message {
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    max-width: 80%;
    line-height: 1.5;
    transition: opacity 0.3s ease;
}

.user-message {
    background-color: #f0f0f0;
    margin-left: auto;
}

.assistant-message {
    background-color: #f5f5f5;
    margin-right: auto;
}

.voice-container {
    position: fixed;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.talk-button {
    border: none;
    cursor: pointer;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    /* Center items vertically */
    justify-content: space-between;
    /* Create space between items */
    gap: 20px;
    /* Add 20px space between inner items */
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
}

.mic-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-green);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
}

.mic-button:hover {
    background: var(--hover-green);
    transform: scale(1.05);
}

.mic-button:active {
    transform: scale(0.95);
}

.mic-button svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.chat-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-green);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
}

.chat-button:hover {
    background: var(--hover-green);
    transform: scale(1.05);
}

.chat-button:active {
    transform: scale(0.95);
}

.chat-button svg {
    width: 24px !important;
    height: 24px !important;
    fill: white;
}


.listening .mic-button {
    box-shadow: 0 0 0 8px rgba(16, 163, 127, 0.2);
}

.status-text {
    color: #ffffff;
    font-size: 0.9rem;
    text-align: center;
    height: 24px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.listening-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.thinking-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.thinking-dot {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }
}

.thinking-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.hidden {
    display: none;
}

.fade-in {
    animation: fade-scale 0.5s ease-out forwards;
}

#three-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    transition: opacity 0.2s ease-out,
        opacity 0.8s ease-out;
}

#three-container.showing {
    transition: opacity 0.2s ease-out;
}

#three-container.hiding {
    transition: opacity 0.8s ease-out;
}

#three-container canvas {
    width: 100% !important;
    height: 100% !important;
}

@keyframes fade-scale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


.status-pulsing {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}


/* #text-chat {
    width: 300px;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 20px;
} */

#chat-messages {
    height: 200px;
    overflow-y: auto;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
}

#chat-input {
    display: flex;
}

#chat-input-field {
    flex: 1;
    padding: 5px;
}

#send-button {
    padding: 5px 10px;
    margin-left: 10px;
}

#connection-status {
    display: flex;
    justify-content: center;
    color: #ed8a23;
    z-index: 1000;
}

/* ************************************ */
#text-chat {
    /* max-width: 800px; */
    /* margin: 20px auto; */
    width: 100%;
    margin-top: 0px;
    margin-bottom: 20px;
    background: #000000c7;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#chat-messages {
    height: 33vh;
    overflow-y: auto;
    /* padding: 15px; */
    background: #0000005e;
    border-bottom: 1px solid #7373736b;
    border-radius: 10px;
    margin-bottom: 20px;
}

.message {
    max-width: 70%;
    margin: 10px 5px;
    padding: 12px 18px;
    border-radius: 20px;
    clear: both;
    position: relative;
}

.message.user {
    background: white;
    color: #333;
    float: left;
    border: 1px solid #ddd;
}

.message.assistant {
    background: #ee8c00;
    color: white;
    float: right;
}

#chat-input {
    position: relative;
    display: flex;
    gap: 10px;
}

#chat-input-field {
    flex: 1;
    padding: 12px 60px 12px 20px;
    border: 2px solid #a6a6a7;
    border-radius: 30px;
    font-size: 12px;
}
#realtime-chat{
    font-size: 12px;
}
#send-msg-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    /* background: #FF6B35;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s; */
    /*  */
    font-size: 12px;
    /* line-height: 0.6em; */
    letter-spacing: 2px;
    border-width: 2px 2px 2px 2px;
    border-radius: 25px 25px 25px 25px;
    padding: 8px 20px;
    /* padding: 8px 11px 8px 11px; */
    background-color: #FFFFFF;
    font-family: "Roboto Mono", Sans-serif;
    font-weight: 700;
    fill: #ee8c00;
    color: #ee8c00;
    border-style: solid;
    border-color: #1e3e62;
    box-shadow: 0px 0px 10px 0px rgba(117.27167358398437, 117.27167358398);
}

#send-msg-button:hover {
    background: #FFFFFF00;
}

#token-counter {
    background: #333;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.9em;
}

/* Scrollbar styling */
#chat-messages::-webkit-scrollbar {
    width: 5px;
}

#chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: #1e3e62;
    border-radius: 5px;
}

/* Base style for elements you want to fade */
.fade {
    transition: opacity 0.3s ease;
  }
  
  /* Hidden state */
  .hidden {
    opacity: 0;
    display: none;
  }
  
  /* Visible state */
  .visible {
    opacity: 1;
    display: block;
  }
/* ************************************ */
