/* General container styles */
.container {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
}

/* Heading styles */
.heading {
    text-align: center;
    margin-bottom: 20px;
}

/* Input and button styles */
.input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

.button {
    display: block;
    width: 50%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #ad0f19;
    color: #fff;
    cursor: pointer;
    margin: 0 auto;
    text-align: center;
}

.button:hover {
    background-color: #40e0d0;
}

/* Message styles */
.message {
    max-width: 80%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
    display: inline-block;
    text-align: justify;
    word-wrap: break-word; /* Ensure long words break and wrap to the next line */
    white-space: pre-wrap; /* Ensure text wraps correctly */
}

.user-message {
    background-color: rgba(173, 15, 25, 0.5);
    color: #fff;
    margin-left: auto;
}

.assistant-message {
    background-color: rgba(64, 224, 208, 0.5);
    margin-right: auto;
}

.conversation {
    display: flex;
    flex-direction: column;
    height: 300px;
    overflow-y: auto;
}

/* Modal styles */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal-content {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.modal-content p {
    width: 100%;
    margin-bottom: 20px;
    text-align: justify;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Loading indicator */
.loader {
    width: 80px;
    height: 80px;
    margin: 100px auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader .big-star,
.loader .small-star {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
}

.loader .big-star {
    width: 80px;
    height: 80px;
    border: 3px solid #40e0d0;
    animation: rotate-anticlockwise 2s infinite linear;
}

.loader .small-star {
    width: 50px;
    height: 50px;
    border: 3px solid #ad0f19;
    animation: rotate-clockwise 1s infinite linear;
    z-index: 1;
}

@keyframes rotate-clockwise {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-anticlockwise {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

/* Analysis container */
.analysis-container {
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    word-wrap: break-word; /* Ensure long words break and wrap to the next line */
}

.analysis-interface {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.analysis-interface h2, .analysis-interface h3 {
    text-align: center;
    margin-bottom: 20px;
}

#discussion-list {
    margin-bottom: 20px;
}

#discussion-dropdown {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#discussion-details {
    display: block;
    width: 100%;
    max-width: 100%;
}

.client-message {
    text-align: justify;
    background-color: rgba(173, 15, 25, 0.5);
    color: #fff;
    padding: 10px;
    margin: 5px 0;
    border-radius: 10px;
    white-space: pre-wrap; /* Ensure text wraps correctly */
}

.assistant-message {
    text-align: justify;
    background-color: rgba(64, 224, 208, 0.5);
    padding: 10px;
    margin: 5px 0;
    border-radius: 10px;
    white-space: pre-wrap; /* Ensure text wraps correctly */
}

#discussion-details pre {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap; /* Ensure text wraps correctly */
}

#question-section {
    margin-top: 20px;
}

#question-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#ask-question-button {
    display: block;
    width: 50%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #ad0f19;
    color: #fff;
    cursor: pointer;
    margin: 0 auto;
    text-align: center;
}

#ask-question-button:hover {
    background-color: #40e0d0;
}

#question-response {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

#discussion-analysis {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f4f4f4;
    margin-top: 20px;
    text-align: justify;
    word-wrap: break-word; /* Ensure long words break and wrap to the next line */
    white-space: pre-wrap; /* Ensure text wraps correctly */
}

