/* chatclient.css */

/* General styling for the chat client */
.swagger-ui .topbar {
    display: none;
}
#chat-client {
    width: 100%;
    background-color: #f7f7f7;
    border-top: 1px solid #d8dde7;
    border-bottom: 1px solid #d8dde7;
    padding: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
    color: #3b4151;
    height: 680px; /* Fixed height */
    overflow: auto; /* Ensure content is scrollable if it exceeds the height */
}
.chat-client-description{
    margin-bottom:20px;
}
.highlight-code{
    font-size: 12px !important;
    -webkit-hyphens: auto;
    hyphens: auto;
    margin: 0;
    padding: 10px;
    font-weight: normal !important;
    font-family: monospace !important;
}


/* Container styling */
#chat-client .container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Content styling */
#chat-client .content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    height: 100%;
}

/* Left panel styling */
#chat-client .left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Make the left panel scrollable */
}

/* Tabs styling */
#chat-client .tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#chat-client .tab-button {
    padding: 10px;
    background-color: #e8e8e8;
    border: 1px solid #d8dde7;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#chat-client .tab-button:hover {
    background-color: #d8dde7;
}

/* Scrollable area styling */
#chat-client .scrollable-area {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #d8dde7;
    border-radius: 4px;
    padding: 10px;
    background-color: #fff;
}

/* Code tab styling */
#chat-client .code-tab {
    display: none;
}

#chat-client .code-tab.active {
    display: block;
}

/* Right panel styling */
#chat-client .right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Form group styling */
#chat-client .form-group {
    margin-bottom: 10px;
}

#chat-client .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#chat-client .form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #d8dde7;
    border-radius: 4px;
}

/* Button styling */
#chat-client button {
    display: inline-block;
    border-radius: 3px;
    border:none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    min-width: 80px;
    padding: 6px 0;
    text-align: center;
    margin-right: 10px;
    cursor: pointer;
}

#chat-client button:hover {
    background-color: #1f69c0;
}

/* Chat client styling */
#chat-client .chat-client {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#chat-client .chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #e8e8e8;
    border-bottom: 1px solid #d8dde7;
}

#chat-client .chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #d8dde7;
    border-radius: 4px;
    margin-bottom: 10px;
}

#chat-client .chat-input-container {
    display: flex;
    gap: 10px;
}

#chat-client .chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #d8dde7;
    border-radius: 4px;
}

#chat-client .send-button {
    background-color: #4990e2;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Collapsible history item styling */
.history-item {
    border: 1px solid #d8dde7;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
    background-color: #f7f7f7; /* Same background color as expanded API endpoints */
}

.history-item-header {
    display: flex;
    align-items: center;
    background-color: #f7f7f7;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    text-wrap: nowrap;
    border-bottom: 1px solid #d8dde7;
}

.history-item-content {
    display: none;
    padding: 10px;
    background-color: #fff;
}

.history-item-content.active {
    display: block;
}

.history-item-config {
    padding: 10px;
    background-color: #fff;
}

.history-item-config pre {
    background-color: #f3f3f3;
    border: 1px solid #d8dde7;
    border-radius: 4px;
    padding: 10px;
    overflow: auto;
}

.history-item-content pre {
    background-color: #f3f3f3;
    border: 1px solid #d8dde7;
    border-radius: 4px;
    padding: 10px;
    overflow: auto;
}

/* Syntax highlighting
pre code {
    display: block;
    padding: 10px;
    background: #f3f3f3;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
*/
/* Collapsible container styling */
.opblock-tag-section {
    margin: 20px 0;
}

.opblock-tag {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    background-color: #f7f7f7;
    border: 1px solid #d8dde7;
    border-radius: 4px;
}

.opblock-tag h4 {
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
}

.opblock-tag h4 span {
    flex: 1;
}

.opblock-tag svg {
    transition: transform 0.3s;
}

.opblock-tag-content {
    display: none;
    padding: 10px;
    border: 1px solid #d8dde7;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background-color: #fff;
}
#closeChatButton,
#closeConversationButton{
    display: inline-block;
    border-radius: 3px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    min-width: 80px;
    padding: 6px 0;
    text-align: center;
    margin-right: 10px;
    background-color: #f93e3e;
}
/* Swagger endpoint method styling */
.opblock-summary-method {
    display: inline-block;
    border-radius: 3px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    min-width: 80px;
    padding: 6px 0;
    text-align: center;
    margin-right: 10px;
}

.opblock-summary-method-get {
    background-color: #61affe;
}
#sendChatButton,
#startChatButton,
.opblock-summary-method-post {
    background-color: #49cc90;
}

.opblock-summary-method-put {
    background-color: #fca130;
}

.opblock-summary-method-delete {
    background-color: #f93e3e;
}