﻿/* 使滾動條總是顯示並且不佔空間 */
body {
    /*overflow-y: scroll;*/ /* 設定垂直滾動條始終顯示 */
    /*scrollbar-width: thin;*/ /* Firefox */
    /*display:flex;*/
    /*margin: 0px 15px 20px;*/
    overflow: hidden;
}

/* Webkit瀏覽器(例如Chrome和Safari)的滾動條樣式 */
/*body::-webkit-scrollbar {
        width: 10px;*/ /* 滾動條的寬度 */
/*}

    body::-webkit-scrollbar-track {
        background: transparent;*/ /* 背景透明 */
/*}

    body::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.1);*/ /* 半透明黑色 */
/*border-radius: 5px;*/ /* 圓角 */
/*}*/

/* Firefox的滾動條樣式 */
/*body {
    scrollbar-color: rgba(0, 0, 0, 0.5) transparent;*/ /* 半透明黑色滾動條與透明的軌道 */
/*}*/

.inter {
    position: absolute;
    top: -30px;
    right: 200px;
    color: #444;
}

#answer {
    /*margin-top: 60px;
    padding-bottom: 60px;*/
    flex: 1; /* 讓中間區塊自適應剩餘高度 */
    overflow-y: scroll; /* 當內容超出時顯示垂直滾動條 */
    overflow-x: hidden; /* 隱藏水平滾動條 */
    scrollbar-color: rgba(0, 0, 0, 0.5) transparent;
    scrollbar-width: thin;
}

    #answer .fa-solid, #answer .svg-inline--fa {
        color: gray;
        cursor: pointer;
    }

    #answer .thumbOn {
        color: black;
    }

    /* Webkit瀏覽器(例如Chrome和Safari)的滾動條樣式 */
    #answer::-webkit-scrollbar {
        width: 10px;
    }

    #answer::-webkit-scrollbar-track {
        background: transparent;
    }

    #answer::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 5px;
    }

.divChatContent {
    /*white-space: break-spaces;*/
    word-break: break-all;
    max-width: 100%;
}

.speaker {
    cursor: pointer;
    display: inline-block;
}

#talkPhone {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30vw;
    height: 30vh;
    /* background: rgba(0, 0, 0, 0.5);*/ /* 半透明背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* 確保在頂層 */
    border-radius: 10px; /* 可選，增加圓角效果 */
    flex-direction: column;
}

    #talkPhone img {
        max-width: 100%;
        max-height: 100%;
    }

#phoneOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 確保在頂層 */
}

ul, ol, li {
    line-height: 1;
}

.divSetSpeech {
    position: relative;
    float: right;
    padding: 5px 10px;
}

    .divSetSpeech label {
        margin-top: 2px;
        margin-left: 2px;
    }

a {
    color: #202fff;
}

.inputWithin {
    flex-grow: 1;
    width: unset !important;
    display: flex;
    position: relative;
}

#tbQ {
    flex-grow: 1;
    /*width: auto;*/
}

.imgLogo {
    height: 38px;
}

.input-control {
    cursor: pointer;
}

.contentArea {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    background: transparent;
    border: 0px;
}

.btnFontSize {
    cursor: pointer;
}

/* 文字大小選項的字體大小樣式 */
.btnFontSize[data-fontsize="h6"],
.font-btn[data-fontsize="h6"] {
    font-size: 12px !important;
}

.btnFontSize[data-fontsize="h5"],
.font-btn[data-fontsize="h5"] {
    font-size: 15px !important;
    font-weight: 500 !important;
}

.btnFontSize[data-fontsize="h4"],
.font-btn[data-fontsize="h4"] {
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* 桌面版下拉選項樣式強化 */
.dropdown-item.btnFontSize {
    transition: all 0.2s ease;
}

.dropdown-item.btnFontSize:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.nav-item .form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin: 0 0.5rem 0 0; /* 調整 switch 與 label 的間距 */
}

.form-check-label {
    margin-bottom: 0; /* 防止預設的 margin-bottom 影響置中效果 */
}

.input-group {
    flex-wrap: nowrap;
}


/*圈*/
.circle,
.circle::before,
.circle::after {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #aacff9;
    position: absolute;
    z-index: 1000;
    content: '';
}

@keyframes larger1 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(5);
        opacity: 0;
    }
}

.circle::before {
    animation: larger1 2s infinite;
}

#tbQ {
    display: block;
    width: 100%;
    box-sizing: border-box;
    /*overflow: hidden;*/
    resize: none; /* Disable manual resizing */
    height: 40px;
}

    /* Custom scrollbar for WebKit browsers */
    #tbQ::-webkit-scrollbar {
        width: 12px;
    }

    #tbQ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    #tbQ::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 6px;
    }

        #tbQ::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

/* Custom scrollbar for Firefox */
#tbQ {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

    /* Custom scrollbar for Internet Explorer and Edge */
    #tbQ::-ms-scrollbar {
        width: 12px;
    }

    #tbQ::-ms-scrollbar-track {
        background: #f1f1f1;
    }

    #tbQ::-ms-scrollbar-thumb {
        background: #888;
        border-radius: 6px;
    }

        #tbQ::-ms-scrollbar-thumb:hover {
            background: #555;
        }

/*對話箭頭*/

/*箭頭右-邊框*/
.arrow_r_out {
    width: 0px;
    height: 0px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    position: absolute;
    top: 15px;
    /*right: -19px;*/
    opacity: .5 !important;
}

/*箭頭左-邊框*/
.arrow_l_out {
    width: 0px;
    height: 0px;
    border-width: 12px;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
    position: absolute;
    top: 15px;
    left: -16px;
    opacity: .8 !important;
}

.opacity-15 {
    opacity: .15 !important;
}

.shadow-lg25 {
    background-color: rgba(255, 255, 255, .5);
    box-shadow: 0 .5rem 2rem rgba(0, 0, 0, 0.35) !important;
}

#message {
    display: none;
    position: fixed;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    z-index: 1050;
}

.groupImg {
    width: 200px;
}

.modal-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100% - 100px);
    /*margin: 0;*/
}

.modal-content {
    width: 100%;
    height: calc(100% - 100px);
}

.modal-body {
    overflow-y: auto;
}

.mermaidDiv {
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    background: #e9ffdf;
    text-align: center;
    border: 5px solid #fff;
}

.by-justhings {
    bottom: 1px;
    right: 10px;
    text-decoration: none;
}

/*======= image Upload=======*/
#dropZone {
    transition: all 0.3s ease-in-out;
    background-color: #f8f9fa; /* 預設背景色 */
    position: relative;
    /*min-height: 150px;*/
}

    #dropZone.drag-over {
        background-color: rgba(0, 123, 255, 0.1); /* 拖曳進來的背景色 */
        border-color: #007bff; /* 邊框顏色改變 */
        box-shadow: 0 0 15px rgba(0, 123, 255, 0.5); /* 增加邊框陰影 */
        border: 2px dashed #6c757d; /* 預設邊框樣式 */
    }

        #dropZone.drag-over::before {
            content: "放開檔案上傳"; /* 提示文字 */
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #007bff;
            font-size: 1.5rem;
            font-weight: bold;
            z-index: 10;
            pointer-events: none;
        }

#dropZoneText {
    color: #6c757d; /* 預設文字顏色 */
}

#dropZone.drag-over #dropZoneText {
    opacity: 0; /* 拖曳時隱藏原本的文字 */
}

#previewArea {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.preview-container {
    position: relative;
    width: 100px;
    height: 100px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: inline-block;
    opacity: 0.7; /* 初始透明度 */
    transition: opacity 0.2s ease;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

    .preview-img:hover {
        transform: scale(1.1);
        border-color: #007bff;
    }

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #d6d6d6;
    color: black;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15; /* 高於進度圓圈 */
}

    .delete-btn:hover {
        background-color: #bfbfbf;
        transform: scale(1.2);
    }

.progress-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-complete {
    background: rgba(0, 255, 0, 0.5);
    color: white;
}

.upload-failed {
    background: rgba(255, 0, 0, 0.5);
    color: white;
}

.QImageList {
    display: flex; /* 讓子元素在同一列顯示 */
    gap: 10px; /* 圖片之間的間距 */
    justify-content: flex-end; /* 讓圖片靠右對齊 */
    align-items: center; /* 縱向居中 */
    padding: 10px; /* 外層容器的內邊距 */
}

.QImage {
    background-color: #fff; /* 白色背景框 */
    border-radius: 8px; /* 圓角 */
    padding: 10px; /* 圖片與框的內邊距 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 加些陰影讓框更明顯 */
    display: flex; /* 保證圖片居中 */
    justify-content: center; /* 橫向居中 */
    align-items: center; /* 縱向居中 */
}

    .QImage img {
        max-width: 100%; /* 圖片寬度不超過框 */
        max-height: 100px; /* 限制圖片高度 */
        border-radius: 4px; /* 圖片本身也帶點圓角 */
        object-fit: cover; /* 讓圖片保持比例並填滿框 */
    }

.divChatContent.ChatL p:has(img) {
    display: flex;
    flex-wrap: wrap; /* 當空間不足時自動換行 */
    gap: 10px; /* 圖片之間的間距 */
    justify-content: center;
}

.image-download-container {
    flex: 1 1 calc(50% - 10px); /* 每張圖片佔據 1/3 寬度，減去間距 */
    box-sizing: border-box;
    max-width: calc(50% - 10px);
    object-fit: cover;
    background-color: #fff; /* 白色背景 */
    border: 1px solid #fff; /* 淡灰色邊框 */
    border-radius: 10px; /* 圓角 */
    padding: 5px; /* 框與圖片之間留白 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 輕微陰影增加立體感 */
}

    .image-download-container img {
        width: 100%;
    }

@media screen and (max-width: 768px) {
    .image-download-container {
        flex: 1 1 100%; /* 單張圖片佔滿整行 */
        max-width: 100%;
    }
}

/* 圖片外層容器 */
.image-download-container {
    position: relative;
    display: inline-block;
}

/* 下載按鈕樣式 */
.download-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 8px;
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    display: none; 
    z-index: 10;
    cursor: pointer;
}

.image-download-container:hover .download-btn {
    display: block;
}

.download-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

iframe[src*="google.com/maps"] {
    pointer-events: none;
}

.fa-paper-plane {
    z-index: 9999;
    touch-action: manipulation;
}

/* 覆蓋 input-icon 內的 fa-paper-plane 樣式 */
.input-icon.fa-paper-plane {
    position: static !important;
    transform: none !important;
}

.input-icon.fa-paper-plane:hover {
    background: rgba(0, 123, 255, 0.1) !important;
    color: #007bff !important;
    transform: none !important;
}

/* ========= RAG ID Bubble 樣式 ========= */
.rag-id-bubble {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    cursor: help;
    margin: 0 2px;
    vertical-align: middle;
    transition: all 0.3s ease;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
}

.rag-id-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* RAG Tooltip 容器 */
.rag-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    max-width: 400px;
    max-height: 300px;
    min-width: 200px;
    width: max-content;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: normal;
    text-align: left;
    word-wrap: break-word;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: auto;
}

/* 防止 tooltip 內容垂直顯示 - 保持正常段落格式但避免不必要的換行 */
.rag-tooltip {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
}

/* 保持 <br> 正常換行 */
.rag-tooltip br {
    display: block !important;
}

/* 保持段落正常顯示，但清除多餘的 margin/padding */
.rag-tooltip p {
    display: block !important;
    margin: 0.5em 0 !important;
    padding: 0 !important;
}

.rag-tooltip p:first-child {
    margin-top: 0 !important;
}

.rag-tooltip p:last-child {
    margin-bottom: 0 !important;
}

/* 保持 div 正常顯示 */
.rag-tooltip div {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rag-tooltip span {
    display: inline !important;
}

.rag-tooltip * {
    line-height: inherit !important;
    white-space: inherit !important;
}

.rag-tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* Tooltip 箭頭 */
.rag-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.95);
    z-index: 10001;
}

/* Webkit 瀏覽器滾動條樣式 (Chrome, Safari) */
.rag-tooltip::-webkit-scrollbar {
    width: 6px;
}

.rag-tooltip::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.rag-tooltip::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.rag-tooltip::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .rag-tooltip {
        max-width: 90vw;
        max-height: 250px;
        font-size: 11px;
    }
}

/* 響應式 navbar 樣式 */
.navbar-controls {
    background: transparent;
}

.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem;
    background: transparent;
    line-height: 1;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* 手機版浮動控制選單樣式 - 簡潔白底設計 */
.mobile-controls-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1050;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px 20px;
}

.mobile-controls-overlay.show {
    display: flex;
}

.mobile-controls-popup {
    background: white;
    color: #333;
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
    background: #f8f9fa;
}

.popup-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.btn-close-popup {
    background: transparent;
    border: none;
    color: #666;
    font-size: 18px;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-popup:hover {
    background: #e9ecef;
    color: #333;
}

.popup-content {
    padding: 20px;
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.control-item:last-child {
    border-bottom: none;
}

.control-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin: 0;
}

.form-check-input {
    margin: 0;
}

.font-size-buttons {
    display: flex;
    gap: 8px;
}

.font-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 36px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

/* 手機版文字大小按鈕的字體大小覆寫 */
.font-btn[data-fontsize="h6"] {
    font-size: 12px !important;
    font-weight: 400 !important;
}

.font-btn[data-fontsize="h5"] {
    font-size: 15px !important;
    font-weight: 500 !important;
}

.font-btn[data-fontsize="h4"] {
    font-size: 18px !important;
    font-weight: 600 !important;
}

.font-btn:hover {
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.font-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.font-btn:active {
    transform: scale(0.95);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 確保設定按鈕與標題對齊 */
.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem;
    background: transparent;
    line-height: 1;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* 桌面版控制項對齊 */
@media (min-width: 992px) {
    .form-check-label {
        font-size: 0.875rem;
        white-space: nowrap;
    }
}

/* 手機版優化 */
@media (max-width: 991.98px) {
    .form-check {
        justify-content: flex-start !important;
    }
    
    /* 確保齒輪按鈕與標題在同一行 */
    .card-header .d-flex:first-child {
        margin-bottom: 0 !important;
    }
    
    /* 手機版浮動選單位置調整 */
    .mobile-controls-overlay {
        padding: 50px 15px 15px;
    }
    
    .mobile-controls-popup {
        max-width: 100%;
    }
}

/* 響應式調整圖示容器 - 小螢幕 */
@media (max-width: 576px) {
    .input-icons-container {
        right: 8px !important;
        gap: 8px !important;
        height: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .input-icon-btn {
        width: 26px !important;
        height: 26px !important;
        padding: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 6px !important;
    }
    
    .input-icon {
        width: 20px !important;
        height: 20px !important;
        padding: 2px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 4px !important;
    }
    
    .input-icon-btn i {
        font-size: 16px !important;
        line-height: 1 !important;
    }
    
    .input-icon i {
        font-size: 14px !important;
        line-height: 1 !important;
    }
    
    .inputWithin .form-control {
        padding-right: 75px !important;
    }
    
    /* 確保小螢幕上圖示不會移動 */
    .input-icons-container .fa-solid,
    .input-icons-container .input-icon,
    .input-icons-container .input-icon-btn {
        transform: none !important;
        margin: 0 !important;
    }
    
    .input-icons-container .fa-solid:hover,
    .input-icons-container .input-icon:hover,
    .input-icons-container .input-icon-btn:hover {
        transform: none !important;
        margin: 0 !important;
    }
}

/* 中等螢幕調整 */
@media (max-width: 768px) and (min-width: 577px) {
    .input-icons-container {
        height: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .input-icon-btn, .input-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    
    .input-icon-btn i, .input-icon i {
        line-height: 1 !important;
    }
}

/* 輸入框內圖示容器樣式 */
.input-icons-container {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    z-index: 10 !important;
    height: auto !important;
}

.input-icon-btn {
    cursor: pointer !important;
    padding: 6px !important;
    border-radius: 6px !important;
    transition: background-color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    text-decoration: none !important;
    margin: 0 !important;
}

.input-icon-btn i {
    font-size: 18px !important;
    line-height: 1 !important;
}

.input-icon-btn:hover {
    background: rgba(0, 123, 255, 0.1) !important;
    text-decoration: none !important;
}

.input-icon {
    cursor: pointer !important;
    padding: 4px !important;
    border-radius: 4px !important;
    transition: background-color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 16px !important;
    margin: 0 !important;
}

.input-icon i {
    line-height: 1 !important;
}

.input-icon:hover {
    background: rgba(0, 123, 255, 0.1) !important;
    color: #007bff !important;
}

/* 統一輸入框內圖示的行為 */
.input-icons-container .fa-solid,
.input-icons-container .input-icon,
.input-icons-container .input-icon-btn {
    position: static !important;
    transform: none !important;
    transition: background-color 0.2s ease !important;
}

.input-icons-container .fa-solid:hover,
.input-icons-container .input-icon:hover,
.input-icons-container .input-icon-btn:hover {
    transform: none !important;
    background: rgba(0, 123, 255, 0.1) !important;
    color: #007bff !important;
}

/* 確保 fa-paper-plane 在我們的容器內不會有額外的移動效果 */
.input-icons-container .fa-paper-plane {
    position: static !important;
}

.input-icons-container .fa-paper-plane:hover {
    transform: none !important;
    background: rgba(0, 123, 255, 0.1) !important;
    color: #007bff !important;
}

/* 確保 textarea 有足夠的右邊距 */
.inputWithin .form-control {
    padding-right: 90px !important;
}