body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

#chatgpt-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    background-color: #f5f5f5;
}

#chatgpt-header, #chatgpt-footer {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 1.2em;
    font-weight: bold;
}

#chatgpt-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    margin: 10px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.assistant-message, .user-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
    line-height: 1.5;
    white-space: pre-line;
}

.assistant-message {
    background-color: #f1f1f1;
    font-size: 1em;
    font-weight: normal;
    color: #333;
    text-align: left;
}

.user-message {
    background-color: #d1e7dd;
    font-size: 1em;
    font-weight: normal;
    color: #0f5132;
    text-align: right;
}

.error-message {
    color: red;
    font-weight: bold;
}

#chatgpt-input-container {
    display: flex;
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

#chatgpt-input {
    flex: 1;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
}

#chatgpt-send, #chatgpt-back {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}

#chatgpt-back {
    background-color: #6c757d;
    margin-left: 10px;
}

#processing-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#processing-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #007bff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#processing-message {
    margin-top: 10px;
    font-size: 1.2em;
    color: #007bff;
}