﻿/* Base */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    font-size: 14px;
}

/* Caixa principal */
.faq-box {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
    animation: fadeIn 0.6s ease-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Cabeçalho */
.faq-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .faq-header img {
        width: 60px;
        margin-bottom: 10px;
    }

    .faq-header h1 {
        margin: 0;
        font-size: 1.8rem;
        font-weight: 600;
        color: #0078D4;
        text-align: center;
    }

/* Campo de texto */
textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
    font-size: 14px;
    transition: box-shadow 0.3s ease;
}

    textarea:focus {
        border-color: #0078D4;
        box-shadow: 0 0 0 2px rgba(0,120,212,0.2);
        outline: none;
    }

/* Ações */
.faq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Botões */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    button:hover {
        transform: scale(1.05);
    }

.send-btn {
    background-color: #0078D4;
    color: white;
}

.close-btn {
    background-color: #ccc;
    color: #333;
}

/* Quadro de discussão */
.chat-box {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #F9F9F9;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    max-height: 400px;
    overflow-y: auto;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    line-height: 1.5;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

    .chat-item.user {
        background-color: #FCF5EB;
        align-self: flex-start;
        border-left: 4px solid #e0b97f;
    }

    .chat-item.bot {
        background-color: #25D366;
        color: white;
        align-self: flex-end;
        border-left: 4px solid #1da851;
    }

/* Mensagem de erro */
.erro-msg {
    background-color: #ffe3e3;
    color: #c92a2a;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}



@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Feedback */
#feedback {
    margin-bottom: 1rem;
    text-align: center;
    color: #0078D4;
    font-weight: 600;
}

/* Animação de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 900px) {
    .faq-box {
        max-width: 90%;
    }

    .faq-header h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .faq-box {
        padding: 1.5rem;
    }

    .faq-header h1 {
        font-size: 1.4rem;
    }

    button {
        flex: 1 1 100%;
    }
}

/* Utilitários */
.hidden {
    display: none !important;
}

/***/
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

    #loader.active {
        opacity: 1;
        visibility: visible;
    }

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #0078D4;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

#loader-message {
    font-weight: 600;
    font-size: 1rem;
    color: #0078D4;
    text-align: center;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


html {
    position: relative;
    min-height: 100%;
}

/*************************/
/* Centralização da tela */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #0078D4, #00B4DB);
}

/* Caixa de login */
.login-box {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.6s ease-out;
}

/* Cabeçalho */
.login-header h1 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: #0078D4;
    text-align: center;
}

/* Campos */
.form-group {
    margin-bottom: 1.2rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: box-shadow 0.3s ease;
}

    .form-control:focus {
        border-color: #0078D4;
        box-shadow: 0 0 0 2px rgba(0,120,212,0.2);
        outline: none;
    }

/* Botão */
.login-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.send-btn {
    background-color: #0078D4;
    color: white;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .send-btn:hover {
        transform: scale(1.05);
        background-color: #005fa3;
    }


.campo-em-edicao {
    background-color: #F7ED96 !important;
}


        .star-rating {
            display: inline-flex;
            flex-direction: row-reverse;
            justify-content: flex-end;
            gap: 0.3rem;
            font-size: 1.8rem;
            margin-top: 0.5rem;
        }

            .star-rating input[type="radio"] {
                display: none;
            }

            .star-rating label {
                color: #ccc;
                cursor: pointer;
                transition: color 0.2s;
            }

                .star-rating input[type="radio"]:checked ~ label,
                .star-rating label:hover,
                .star-rating label:hover ~ label {
                    color: #f5b301;
                }

        .avaliacao-container {
            margin-top: 1rem;
            text-align: left;
        }

            .avaliacao-container span {
                display: block;
                margin-bottom: 0.3rem;
                font-weight: 600;
            }

            .avaliacao-container.avaliado {
                opacity: 0.6;
                pointer-events: none;
            }

                .avaliacao-container.avaliado span::after {
                    content: " (avaliado)";
                    font-weight: normal;
                    font-size: 0.9rem;
                    color: green;
                }
