body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    width: 90%;
    height: 90%;
    max-width: 1600px;
    margin: 0 auto;
}

.form-container,
.result-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 50%;
    margin: 10px;
    box-sizing: border-box;
}

.form-container, .form-container-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    height: calc(100% - 20px);
}

.form-container-info-bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    justify-content: space-between;
}

.form-group {
    flex: 1;
    margin-right: 10px;
}

.form-group:last-child {
    margin-right: 0;
}

.full-width-group {
    flex: 1;
}

.required {
    position: relative;
    padding-left: 8px;
}

.required::after {
    position: absolute;
    top: 2px;
    left: 0;
    content: "*";
    color: red;
}

.result-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-header h2 {
    margin: 5px 0;
}

h2 {
    margin: 0;
}

label {
    display: block;
    margin: 5px 0 5px;
    color: #555;
}

.history-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}


.header {
    font-weight: bold;
    background-color: #f5f5f5;
}

.history-row:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

.cell {
    /*flex: 1;*/
    padding: 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.history-row .cell:nth-child(1) {
    width: 100px;
}

.history-row .cell:nth-child(2) {
    width: 130px;
}

.history-row .cell:nth-child(3) {
    width: 250px;
    min-width: 250px;
}

.history-row .cell:nth-child(4) {
    flex: 1;
    white-space: normal;
    /*换行*/
    word-wrap: break-word;
    text-overflow: clip;
    overflow: auto;
    min-width: 200px;

}

.history-row .cell:nth-child(5),
.history-row .cell:nth-child(6) {
    width: 150px;
    overflow-x: scroll;
}

.history-row .cell:nth-child(5)::-webkit-scrollbar,
.history-row .cell:nth-child(6)::-webkit-scrollbar {
    display: none;
}

.message-full {
    flex: 3;
}

.history-row:hover .message-full {
    white-space: normal;
}

select,
input[type="text"],
input[type="number"],
textarea,
button {
    width: calc(100% - 10px);
    padding: 10px;
    margin: 5px 0 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

button {
    margin: 0 10px 0 0 !important;
}

button:last-child {
    margin: 0 !important;
}

textarea {
    resize: none;
    height: calc(100% - 50px);
}

button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    margin: 0 0 0 10px;
    width: 100px;
}

button:disabled {
    background-color: #cccccc;
}

pre {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
}

#result {
    flex-grow: 1;
    height: 60%;
}

#call_duration {
    height: 30px;
    margin-top: 10px;
}

#token_usage {
    height: 70px;
    margin-top: 10px;
}

#loader, #Loading {
    display: inline-block;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

.Loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
}

#Loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

    100% {
        transform: rotate(360deg);
    }
}

#copyButton {
    background-color: #007BFF;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    margin: 0;
    width: 100px;
}

#copyMessage {
    display: none;
    color: green;
    margin-left: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 8% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-height: 70%;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.history-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

.message-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.message-ellipsis:hover {
    overflow: visible;
    white-space: normal;
}

.delete-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.overlay.active {
    display: flex;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}


.historyList{
    overflow-x: scroll;
}
.historyList::-webkit-scrollbar {
    display: none;
}
.historyListScroll{
    min-width: 1100px;
}

.pagination {
    padding: 10px 0;
    text-align: right;
}


/*模态框 搜索*/
.modal-content .title {
    display: flex;
    align-items: center;
    padding-right: 40px;
}

.modal-content .title h2 {
    flex: 1;
}

.modal-search {
    display: flex;
    align-items: center;
}

.modal-search .form-container-info {
    flex: 1;
    display: flex;
    align-items: center;
    flex-flow: nowrap;
}

.modal-search .form-container-info .full-width-group {
    display: flex;
    align-items: center;
}

.modal-search button {
    width: 80px;
    padding: 8px 0;
}

.modal-search input,
.modal-search select {
    padding: 8px 10px;
    margin: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.value-label input,
.value-label select {
    width: 200px;
}


/*三角形*/
.triangle {
    margin-left: 5px;
}

.triangle_top {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 7px solid #c5c5c5;
    margin-bottom: 3px;
}

.triangle_bottom {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid #c5c5c5;
    /*margin-left: -10px;*/
}