:root {
	--bg-color: #F7F7F7;
}

/*standart -----------------------------------------------------------------------------------------------------------*/
.icon-style {
    fill: none;
    stroke: #fff; /* currentColor */
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 7px;
}
li {
    list-style-type: none;
	margin: 0;
	padding: 0;
}
ul {
	margin: 0;
	padding: 0;
}
body, html {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    font-family: Montserrat Alternates, sans-serif;
	width: 100vw;
	height:100vh;
	display: flex;
	justify-content: center;
	overflow-x: hidden;
    position: relative;
    overscroll-behavior: none;
}
.container{
    width: 100%;
    height: 100%;
    display: none;
}
.container.active{
    display: flex;
}

/*sidebar ------------------------------------------------------------------------------------------------------------*/
.sidebar-container {
    width: 30%;
    height: 100%;
    background-color: #222;
    border-right: 1px solid #111;
    display: flex;
}
.sidebar-two {
    width: 10%;
    height: 100%;
    background-color: #111;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
}
.app-settings{
    margin-bottom: 15px;
    cursor: pointer;
}

/*main ---------------------------------------------------------------------------------------------------------------*/
.main-container {
    width: 70%;
    height: 100%;
    background-color: #333;
    display: flex;
    flex-direction: column;
}
.topbar {
    width: 100%;
    height: 5%;
    background-color: #222;
    display: flex;
    justify-content: space-between;
}
.chat-container {
    width: 100%;
    height: 95%;
    background-color: #333;
    display: flex;
    align-items: flex-end;
}

/* CHAT ------------------------------------------------------------------------------------------------------------- */
.chat-input {
    width: 96%;
    margin-left: 2%;
    margin-right: 1%;
    margin-bottom: 1%;
    padding: 1%;
    border: none;
    outline: none;
    background-color: #444;
    color: #fff;
    border-radius: 35px;
    font-size: 1.6em;
    transition: 0.5s;
    min-height: 1.5em;
    max-height: 100em;
    resize: none;
}
.chat-input::placeholder {
    color: #fff;
    opacity: 0.5;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    height: 100%;
}
.chat-input:focus {
    border-radius: 27px;
    background-color: #555;
    width: 98%;
    margin-left: 1.9%;
    margin-right: 0.9%;
    transition: 0.5s;
}
/* TOP BAR ---------------------------------------------------------------------------------------------------------- */
.title{
    color: #fff;
    font-size: 1.5em;
    margin-left: 1%;
    display: flex;
    height: 100%;
    align-items: center;
}
.settings-button{
    border: none;
    outline: none;
    margin-right: 1%;
    cursor: pointer;
    color: #fff;
    font-size: 1.5em;
    border-radius: 25px;
    background-color: #222;
}
/* BOTTOM CHAT ------------------------------------------------------------------------------------------------------ */
.bottom-chat{
    width: 100%;
    display: flex;
    position: relative;
}
.send-button{
    width: 90px;
    height: 90px;
    margin-right: 1%;
    margin-bottom: 1%;
    border-radius: 50%;
    border: none;
    outline: none;
    background-color: #444;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    transition: 0.5s;
}
.send-button:hover{
    background-color: #555;
    transition: 0.5s;
    border-radius: 40%;
}

/* MESSAGES --------------------------------------------------------------------------------------------------------- */
#chat-messages{
    width: 70%;
    height: 95%;
    top: 5%;
    overflow-y: auto;
    position: absolute;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#chat-messages::-webkit-scrollbar
    display: none;
}
.message:first-child {
    margin-top: 15px;
}
.message:last-child {
    margin-bottom: 200px;
}
.message {
    max-width: 60%;
    margin-bottom: 10px;
    clear: both;
    margin: 7px 10px 2px 10px;
}
.message.user {
    float: right;
    margin-left: auto;
}
.message.assistant {
    float: left;
    margin-right: auto;
}
.message-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    background-color: #1f2c33;
    color: white;
    padding: 8px 12px;
    width: fit-content;
    max-width: 100%;
}
.message.user .message-content {
    background-color: #2b5278;
    border-radius: 12px 12px 0 12px;
}
.message.assistant .message-content {
    border-radius: 12px 12px 12px 0;
}
.message-content p {
    flex: 1;
    margin: 0;
    margin-right: 10px;
    word-break: break-word;
    line-height: 1.6;
    font-size: 1.2rem;
}
.message-content .time {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    align-self: flex-end;
    min-width: 35px;
    text-align: right;
}
.message-content {
    gap: 4px;
}
.message-content .time {
    margin-left: auto;
}
.messageImage {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    background-color: #1f2c33;
    color: white;
    padding: 8px 12px;
    width: fit-content;
    max-width: 100%;
    margin: 1px 10px 1px 10px;
}
.messageImage:last-child{
    margin-bottom: 200px;
}
.messageImage.user {
    background-color: #DCF8C6;
    margin-left: auto;
    margin-right: 10px;
    border-bottom-right-radius: 2px;
}
.messageImage.assistant {
    background-color: #f6f6f6;
    margin-left: 10x;
    margin-right: auto;
    border-bottom-left-radius: 2px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}
.modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
}
/* SETTINGS ---------------------------------------------------------------------------------------------------------- */

.settings-container-buttons{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.settings-title {
    color: #fff;
    font-size: 1.5em;
    width: 100%;
    text-align: center;
    padding: 10px;
}
.settings-title.active {
    color: #999;
}
.separator {
    width: 95%;
    height: 1px;
    background-color: #555;
    margin: 10px auto;
}
.settings-setting:first-child {
    margin-top: 30px;
}
.settings-setting {
    margin: 10px 0 0 20px;
    color: #fff;
    width: 100%;
    display: flex;
    font-size: 1.2em;
    align-items: center;
}
.settings-input{
    border: none;
    outline: none;
    background-color: #555;
    color: #fff;
    width: 90%;
    height: 30px;
    margin-left: 10px;
    border-radius: 10px;
    padding: 5px;
    font-size: 1.2em;
}
.settings-input-title {
    width: 100px;
}
.setting-button{
    border: none;
    outline: none;
    margin-right: 1%;
    cursor: pointer;
    color: #fff;
    font-size: 1.2em;
    padding: 10px 30px;
    margin-left: 10px;
    border-radius: 25px;
    background-color: #444;
    transition: 0.5s;
}
.setting-button:hover{
    background-color: #555;
    transition: 0.5s;
    border-radius: 20px;
}
/* ANIMATIONS ------------------------------------------------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}