@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    font-family: 'Roboto', monospace;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
    cursor: url(../cursors/Normal.cur), auto;
}

a,
button {
    cursor: url(../cursors/Link.cur), pointer !important;
}

.tema-claro {
    background-color: #f0f0f0;
    color: #333;
}

.tema-escuro {
    background-color: #1a1a19;
    color: #f0f0f0;
}

.btn-theme {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: white;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.521);
    border: 1px solid #7e7e7ede;
    cursor: url(../cursors/Link.cur), pointer !important;
    transition: 0.3s ease;
}

.chat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 750px;
}

.chat-container .chat-box {
    height: 300px;
    overflow-y: unset;
    overflow-x: hidden;
}

.chat-container .chat-box::-webkit-scrollbar {
    width: 7px;
    background-color: #d3d3d341;
}

.chat-container .chat-box::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 5px;
}

.chat-container .chat-input {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    background-color: transparent;
    width: 500px;
    border: none;
    border-radius: 15px;
    padding: 10px;
    transition: all 0.4s;
}

.chat-container .chat-input textarea {
    border: 2px solid #b8b8b827;
    background-color: #e9e9e9;
    color: black;
    width: 100%;
    height: 70px;
    resize: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Poppins';
    transition: all 0.4s;
    overflow-y: hidden;
}

body.tema-escuro .chat-container .chat-input textarea {
    background-color: #1a1a19;
    color: white;
}

.chat-container .chat-input textarea:hover {
    border: 2px solid #0267ff6e;
    box-shadow: -2px 0px 18px 0px #0267ff9d;
}

.chat-container .chat-input textarea:focus {
    border-color: #0267ffb0;
    outline: none;
    box-shadow: -2px 0px 18px 0px #0267ff5b;
}

.chat-container .chat-input button {
    display: flex;
    justify-content: flex;
    align-items: center;
    cursor: url(../cursors/Link.cur), pointer !important;
    border: none;
    margin-bottom: 10px;
    text-align: center;
    padding: 10px;
    background-color: #0267ffb0;
    border-radius: 50%;
    transition: all 0.4s;
}

.chat-container .chat-input button:hover {
    background-color: #0267ffd8;
}

.chat-container .chat-input button i {
    font-size: 18px;
    padding-left: 0.3px;
    text-align: center;
    color: white;
}

.chat-container #botoes-atalho {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 10px;
}

.chat-container #botoes-atalho button {
    background-color: white;
    border: 1px solid #b1b1b181;
    padding: 8px 19px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: black;
    font-weight: 600;
    border-radius: 40px;
    font-family: 'Roboto', monospace;
    cursor: url(../cursors/Link.cur), pointer !important;
    transition: all 0.3s;
}

body.tema-escuro .chat-container #botoes-atalho button {
    background-color: #1a1a19;
    color: white;
}

.chat-container #botoes-atalho button:hover,
body.tema-escuro .chat-container #botoes-atalho button:hover {
    background-color: #0267ff5b;
}

.mensagem {
    max-width: 600px;
    border-radius: 15px;
    padding: 12px;
    margin: 5px;
    line-height: 1.4;
    font-family: 'Poppins';
}

.mensagem.user {
    background-color: #9b9b9b75;
    width: 100%;
}

.mensagem.gpt {
    background-color: #0267ff5b;
    width: 100%;
}

.menu-toggler {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1002;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: url(../cursors/Link.cur), pointer !important;
    font-size: 18px;
    line-height: 1;
}

.side-menu {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    background-color: #212529;
    overflow-x: hidden;
    transition: 0.4s;
    padding-top: 60px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.7);
    color: #f8f9fa;
}

.side-menu.open {
    width: 250px;
}

.side-menu .close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 36px;
    color: #f8f9fa;
    background: none;
    border: none;
    cursor: url(../cursors/Link.cur), pointer !important;
}

.menu-title {
    text-align: center;
    padding: 10px;
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #fff;
}

.menu-list {
    height: 120vh;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu-list a {
    color: white;
    text-decoration: none;
}

.menu-item {
    padding: 10px 15px 10px 20px;
    font-size: 16px;
    color: #adb5bd;
    cursor: url(../cursors/Link.cur), pointer !important;
    border-bottom: 1px solid #343a40;
}

.menu-item:hover:not(.category-title) {
    background-color: #495057;
    color: white;
}

.category-title {
    padding: 15px 20px 5px 20px;
    font-size: 14px;
    color: #17a2b8;
    text-transform: uppercase;
    font-weight: bold;
    cursor: default;
}

.menu-overlay {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    transition: opacity 0.4s;
}

.menu-overlay.show {
    display: block;
}

.overlay {
    position: fixed;
    z-index: 9999;
    background-color: #deebfff3;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 1s ease;
    overflow: hidden;
    flex-direction: column;
}

.overlay img {
    width: 100px;
    border-radius: 20px;
    box-shadow: 2px 5px 45px 3px #187fdf;
}

.bemvindo {
    opacity: 0;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }
}

body.loaded .carregando {
    opacity: 0;
}

body.loaded .bemvindo {
    opacity: 1;
}

body.loaded .overlay {
    opacity: 0;
    pointer-events: none;
}

body.loaded .loading-button {
    transform: scale(25);
    opacity: 0;
}

body.loaded .site-content {
    opacity: 1;
    transform: scale(1);
    overflow: auto;
}

@media (max-width: 768px) {
    /* .menu-toggler {
        display: none;
    } */

    .side-menu.open {
        width: 100%;
        max-width: 300px;
    }

    .chat-container {
        width: 95%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .chat-container .chat-box {
        height: 40vh;
    }

    .chat-container .chat-input {
        width: 100%;
        align-items: flex-end;
    }

    .chat-container .chat-input textarea {
        width: calc(100% - 70px);
        height: 60px;
        font-size: 14px;
    }

    .chat-container .chat-input button {
        margin-bottom: 0;
        align-self: flex-start;
    }

    .chat-container #botoes-atalho {
        padding: 10px;
        gap: 5px;
        justify-content: center;
    }

    .chat-container #botoes-atalho button {
        padding: 6px 15px;
        font-size: 14px;
        font-weight: 500;
    }

    .mensagem {
        max-width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    .mensagem.user,
    .mensagem.gpt {
        width: auto;
    }
}