:root {
    --base-font-size: 14px;
}


body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* Chatbot Container */
.chatbotContainer {
    display: flex;
    flex-direction: column;
    height: 70vh;
    overflow: hidden;
}

/* Chat Display Area */
.chatDisplay {
    flex: 1;
    font-size: var(--base-font-size);
    /*max-height:80%;*/
    height: 100%;
    overflow-y: auto;
    padding: 10px;
    background-color: #f9f9f9;
}

.chatFooter {
    /*position: relative;*/
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ddd;
    padding: 2px 16px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatNotice {
    background-color: #fff3cd; /* 연한 노랑 (경고 느낌) */
    color: #856404;
    padding: 10px;
    font-size: 14px;
    border-bottom: 1px solid #ffeeba;

    display: flex;
    justify-content: center; /* 가로 가운데 */
    align-items: center; /* 세로 가운데 */
    text-align: center; /* 여러 줄일 때 가운데 정렬 */
}

/* Message Row */
.message-row {
    display: flex;
    margin: 8px 0;  /* 카드 간 간격 조정 */
    padding: 0 10px;
}

/* User Message Styling */
.user-message {

    background-color: #0080C3;
    color: white;
    text-align: right;
    border-radius: 15px;
    padding: 8px 12px;
    word-wrap: break-word;
    max-width: 70%;  /* 최대 너비를 설정하여 메시지 길이에 따라 조정 */
    min-width: 60px; /* 최소 너비 설정 */
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* 그림자 효과 */
}

/* Chatbot Message Styling */
.bot-message {
    background-color: #e0e0e0;
    color: #333;
    text-align: left;
    border-radius: 15px;
    padding: 8px 12px;
    word-wrap: break-word;
    max-width: 70%;  /* 최대 너비를 설정하여 메시지 길이에 따라 조정 */
    min-width: 60px; /* 최소 너비 설정 */
    margin-right: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* 그림자 효과 */
}

/* Button Group Styling */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.chat-button {
    padding: 8px 15px;
    background-color: #E6C11D; /* 진한 노란색 */
    color: #000000; /* 검정색 텍스트 */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-button:hover {
    background-color: #ED4C57;
}


/* Footer Input Area */


.chatInput {
    width: calc(100% - 150px); /* reset 버튼 공간 고려 */
    height: 100%;
    padding: 10px 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background-color: #f9fbfd;  /* 연한 파란 배경 */
    color: #333;
    font-size: var(--base-font-size);
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.chatInput:focus {
    border-color: #2378B9;
    background-color: #ffffff;
}

.chatInput.loading {
    background-image: url('/resources/js/plugins/raonnx/install/images/install_ing.gif');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% 100%;
    background-color: #f5f5f5;
    color: #999;
}

.sendButton {
    background-color: #2378B9;
    color: white;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 5px;
    margin-left: 5px;
    cursor: pointer;
}

.sendButton:hover {

    background-color: #1a5a85;
}

.resetButton {
    background-color: #2378B9;
    color: white;
    padding: 10px 14px;
    font-size: var(--base-font-size);
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.resetButton:hover {
    background-color: #e1e8f0;
    color: #2378B9;
}


#chatBottomBar {
    position: fixed;
    bottom: 60px; /* chatFooter 위에 위치하도록 조절 */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border-top: 1px solid #ccc;
    z-index: 999;
}

.chat-block {
    padding: 6px 10px;
    background-color: #2378B9;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

#tabStrip {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;  /* 고정될때 배경 유지 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#tabStrip .k-item {
    width: 50% !important;
}

#tabStrip .k-link {
    display: block;
    text-align: center;
    padding: 15px 0;   /* 높이 증가 */
    font-size: 18px;    /* 글씨 키우기 */
    font-weight: 600;   /* 조금 두껍게 */
    color: black;
    border-bottom: 3px solid transparent; /* 기본 테두리 효과 */
    transition: all 0.3s ease;
}

#tabStrip .k-item.k-active .k-link {
    color: #007bff;    /* 활성 탭 색상 */
    border-bottom: 3px solid #007bff;
}
