@font-face {
    font-family: 'Vazir';
    src: url('vazir.ttf') format('truetype');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazir', Arial, sans-serif;
}

body {
    font-family: 'Vazir', Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.chat-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    height: 85vh;
}

header {
    background-color: #34495E;
    color: #ffffff;
    padding: 5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    justify-content: center;
    flex-shrink: 0; 
}

.headerPersonel {
    background-color: #8B0000;
    color: #ffffff;
    padding: 5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    justify-content: center;
    flex-shrink: 0; 
}

.headerHealt {
    background-color: #00BCD4;
    color: #ffffff;
    padding: 5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    justify-content: center;
    flex-shrink: 0; 
}

.header-logo {
    width: 40px;
    height: 40px%;
}


.chat-box {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.chat-box::before {
    content: "";
    position: absolute;
    top: 100;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%; 
    background-attachment: fixed;
    opacity: 0.1;
    z-index: -1;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    max-width: 90%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    color: rgba(0, 0, 0, 0.87);
}

.user-message {
    background-color: rgba(74, 144, 226, 0.2);
    align-self: flex-end;
    margin-right: auto;
    border-bottom-right-radius: 0;
}

.bot-message {
    background-color: rgba(240, 240, 240, 0.9);
    align-self: flex-start;
    margin-left: auto;
    border-bottom-left-radius: 0;
}

.input-area {
    position: relative;
    width: 98%;
    display: flex;
    padding: 20px;
    background-color: #ffffff;
}

#userInput {
    width: 100%;
    padding: 10px;
    padding-right: 10px;
    padding-left: 70px;
    border: 1px solid #ccc;
    border-radius: 20px;
}

.sendBtn {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #555;
}

.sendBtn:hover {
    color: #000;
}

.record-btn {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: red;
    background: none;
    opacity: 1;
}

.record-btn:hover {
    color: #000;
}

.record-btn[disabled] {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}
.preloader {
    display: none;
    width: 60px;
    height: 60px;
    margin: 10px auto;
}

.preloader img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/*
.bot-message-preloader {
    background-color: rgba(240, 240, 240, 0.9);
    align-self: flex-start;
    border-bottom-left-radius: 0;
    padding: 10px;
    border-radius: 5px;
    max-width: 80px;
    margin: 15px 0;
}
*/

.processing {
    cursor: wait; 
}

.preloader {
    display: none; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    z-index: 1000; 
    background-color: rgba(255, 255, 255, 0.8); 
    border-radius: 8px; 
    padding: 20px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); 
}

.bot-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px; 
    vertical-align: middle;
}

 #status {
            font-family: 'Vazir', sans-serif;
            font-size: 10px;
            color: lightgray; 
        }

@media (max-width: 100%) {
    .chat-container {
        height: 100vh;
        border-radius: 0;
    }

    header {
        border-radius: 0;
    }
}