/*
resizable-layout.css: CSS cho layout resize + chatbot demo
*/
#row-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.resizable-col {
    position: relative;
    background: #fafbfc;
    transition: background 0.2s;
}

.resizable-col .resize-handle {
    position: absolute;
    top: 0;
    right: -6px; /* Nằm chính giữa biên phân chia cột */
    width: 12px; /* Vùng click đủ rộng giúp kéo thả dễ dàng */
    height: 100%;
    cursor: col-resize;
    z-index: 9999 !important; /* Đảm bảo luôn nổi lên trên cùng, kể cả đè lên cột bên cạnh */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Đường phân chia biên mảnh (Claude-style) */
.resizable-col .resize-handle .resize-handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5px;
    background-color: #e2e8f0;
    transition: background-color 0.2s ease, width 0.2s ease;
    pointer-events: none; /* Tránh cản trở sự kiện kéo của handle */
}

/* Nút pill bo tròn ở trung tâm (Claude-style) - Mặc định nhỏ gọn, tinh tế */
.resizable-col .resize-handle .resize-handle-pill {
    position: relative;
    width: 3px;
    height: 16px;
    border-radius: 9999px;
    background-color: #cbd5e1;
    border: none;
    box-shadow: none;
    opacity: 0.6;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 2;
}

/* Visual feedback khi hover vào CỘT CHỨA (#col-left hoặc .resizable-col) hoặc hover trực tiếp vào handle */
.resizable-col:hover .resize-handle .resize-handle-line,
.resizable-col .resize-handle:hover .resize-handle-line {
    background-color: var(--brown-tone, #8B4513);
    width: 1.5px;
    opacity: 1;
}

.resizable-col:hover .resize-handle .resize-handle-pill,
.resizable-col .resize-handle:hover .resize-handle-pill {
    background-color: #ffffff;
    border: 1px solid var(--brown-tone, #8B4513);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    width: 5px;
    height: 26px;
    opacity: 1;
}

.resizable-col .resize-handle:hover .resize-handle-pill {
    background-color: var(--brown-tone, #8B4513);
    border-color: var(--brown-tone, #8B4513);
    transform: scale(1.15);
}

/* Visual feedback khi active/dragging */
.resizable-col .resize-handle:active .resize-handle-line,
.resizable-col .resize-handle.dragging .resize-handle-line {
    background-color: var(--brown-dark, #3E2723);
    width: 2px;
}

.resizable-col .resize-handle:active .resize-handle-pill,
.resizable-col .resize-handle.dragging .resize-handle-pill {
    background-color: var(--brown-dark, #3E2723);
    border-color: var(--brown-dark, #3E2723);
    height: 28px;
    width: 6px;
    opacity: 1;
    transform: scale(1.2);
}

.resizable-col.left .resize-handle {
    left: 100% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

.resizable-col.middle .resize-handle {
    left: 100% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

.resizable-col.right .resize-handle {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

/* Hover effect cho cột right */
.resizable-col.right .resize-handle:hover .resize-handle-line {
    background-color: var(--brown-tone, #8B4513);
    width: 2px;
}

.resizable-col.right .resize-handle:hover .resize-handle-pill {
    background-color: var(--brown-tone, #8B4513);
    border-color: var(--brown-tone, #8B4513);
    height: 28px;
    transform: scale(1.15);
}

/* Active effect cho cột right */
.resizable-col.right .resize-handle:active .resize-handle-line,
.resizable-col.right .resize-handle.dragging .resize-handle-line {
    background-color: var(--brown-dark, #3E2723);
    width: 2px;
}

.resizable-col.right .resize-handle:active .resize-handle-pill,
.resizable-col.right .resize-handle.dragging .resize-handle-pill {
    background-color: var(--brown-dark, #3E2723);
    border-color: var(--brown-dark, #3E2723);
    height: 28px;
    transform: scale(1.25);
}

/* Tablet responsive */
@media (min-width: 768px) and (max-width: 1024px) {
    .chatbot-box {
        height: 100% !important;
        max-height: 100% !important;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .chatbot-history {
        flex: 1 1 0%;
        overflow-y: auto;
        min-height: 0;
    }

    .chatbot-input {
        flex-shrink: 0 !important;
        position: sticky !important;
        bottom: 0 !important;
        z-index: 1000 !important;
        background: white !important;
        border-top: 1px solid #e9ecef !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        margin-top: auto !important;
        /* Tránh bị che bởi navigation bar */
        padding-bottom: env(safe-area-inset-bottom, 10px) !important;
        margin-bottom: env(safe-area-inset-bottom, 0px) !important;
    }

    /* Đảm bảo chatbot-input luôn visible trên tablet */
    .chatbot-input .input-group {
        margin-bottom: 0 !important;
    }

    /* Thêm padding bottom để tránh bị che bởi virtual keyboard và navigation bar */
    .chatbot-input {
        padding-bottom: max(env(keyboard-inset-height, 0px), env(safe-area-inset-bottom, 10px)) !important;
    }

    /* Detect navigation bar height và adjust */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .chatbot-input {
            padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
        }

        .chatbot-history {
            padding-bottom: 10px !important; /* Fixed height layout - không cần padding lớn */
        }
    }

    /* Fallback cho tablets không support safe-area */
    @media (pointer: coarse) and (hover: none) {
        .chatbot-input {
            margin-bottom: 60px !important;
            /* Estimate navigation bar height */
        }

        .chatbot-history {
            padding-bottom: 10px !important; /* Fixed height layout - không cần padding lớn */
        }
    }

    /* Tối ưu resize handles cho tablet touch */
    .resizable-col .resize-handle {
        width: 20px !important;
        /* Tăng từ 12px lên 20px cho dễ touch */
        right: 0 !important;
        /* Luôn nằm trong cột */
        touch-action: pan-x;
        /* Chỉ cho phép pan ngang */
        -webkit-touch-callout: none;
        /* Tắt callout trên iOS */
        -webkit-user-select: none;
        /* Tắt text selection */
        user-select: none;
    }

    .resizable-col.right .resize-handle {
        width: 20px !important;
        left: 0 !important;
        right: auto !important;
    }

    /* Visual feedback rõ hơn cho tablet */
    .resizable-col .resize-handle:active,
    .resizable-col .resize-handle.dragging {
        width: 24px !important;
        right: 0 !important;
        background: rgba(139, 69, 19, 0.3) !important;
    }

    .resizable-col.right .resize-handle:active,
    .resizable-col.right .resize-handle.dragging {
        width: 24px !important;
        left: 0 !important;
        background: rgba(139, 69, 19, 0.3) !important;
    }
}

/* Tablet Portrait - Tối ưu đặc biệt cho tablet dọc */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {

    /* Resize handles lớn hơn cho tablet dọc */
    .resizable-col .resize-handle {
        width: 24px !important;
        /* Tăng lên 24px cho tablet dọc */
        right: 0 !important;
        background: rgba(139, 69, 19, 0.05) !important;
        /* Hiển thị nhẹ để dễ nhìn */
        border-radius: 2px;
    }

    .resizable-col.right .resize-handle {
        width: 24px !important;
        left: 0 !important;
        right: auto !important;
    }

    /* Visual feedback mạnh hơn khi touch */
    .resizable-col .resize-handle:active,
    .resizable-col .resize-handle.dragging {
        width: 28px !important;
        right: 0 !important;
        background: rgba(139, 69, 19, 0.4) !important;
        box-shadow: 0 0 8px rgba(139, 69, 19, 0.3);
    }

    .resizable-col.right .resize-handle:active,
    .resizable-col.right .resize-handle.dragging {
        left: 0 !important;
        background: rgba(139, 69, 19, 0.4) !important;
        box-shadow: 0 0 8px rgba(139, 69, 19, 0.3);
    }

    /* Tối ưu layout cho tablet dọc */
    #col-left {
        width: 12vw !important;
        min-width: 10vw !important;
        max-width: 30vw !important;
    }

    #col-middle {
        min-width: 10vw !important;
        max-width: 80vw !important;
    }
}

/* Mobile responsive */
@media (max-width: 767.98px) {

    /* Column visibility is controlled by body.tab-* classes in custom-theme.css */
    /* Default: hide all columns, let tab classes show the active one */
    #col-left,
    #col-middle,
    #col-right {
        width: 100vw !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    /* ✅ FIX: Đảm bảo chatbot-box có layout flexbox đúng trên mobile */
    /* Height = viewport - mobile header (50px) - bottom nav (56px) */
    .chatbot-box {
        display: flex !important;
        flex-direction: column !important;
        height: calc(100vh - 50px - 56px) !important;
        height: calc(100dvh - 50px - 56px) !important;
        overflow: hidden !important;
        min-height: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* ✅ FIX: chatbot-header desktop: ẩn trên mobile */
    .chatbot-header {
        display: none !important;
    }

    /* ✅ FIX: chatbot-history chiếm phần còn lại, có scroll */
    .chatbot-history {
        flex: 1 !important;
        overflow-y: auto !important;
        min-height: 0 !important;
        padding-bottom: 10px !important;
        background: #fff !important;
    }

    /* ✅ FIX: chatbot-input cố định tại chân khung chat, TRÊN thanh nav */
    .chatbot-input {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: 10 !important;
        background: #f8f8f8 !important;
        border-top: 1px solid #e9ecef !important;
        box-shadow: none !important;
        flex-shrink: 0 !important;
    }
}

/* Global cursor states cho resize */
.resizing {
    cursor: col-resize !important;
    -webkit-user-select: none;
    user-select: none;
}

.resizing * {
    cursor: col-resize !important;
    -webkit-user-select: none;
    user-select: none;
}

/* Đảm bảo resize handles luôn có cursor đúng */
.resize-handle,
.resizable-col .resize-handle {
    cursor: col-resize !important;
}

/* Chatbot UI demo - Fixed height layout */
.chatbot-box {
    min-height: 0;
    height: 100%;
}

.chatbot-header {
    background: #f8f9fa;
    height: 45px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.chatbot-history {
    background: #fff;
    min-height: 0;
    flex: 1 1 0%;
    overflow-y: auto;
    scroll-behavior: auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 0px !important; /* Triệt tiêu hoàn hảo padding đáy gây hở khoảng cách */
}

.chatbot-history > *:first-child {
    margin-top: auto !important;
}

/* Đảm bảo tin nhắn cuối cùng khít sát sạt với ô nhập liệu */
.chatbot-history > .chat-msg:last-child {
    margin-bottom: 0px !important;
    padding-bottom: 5px !important;
}

.chatbot-input {
    background: #f8f9fa !important;
    border-top: 1px solid #FBF0E1;
    flex-shrink: 0;
}

/* Modern rounded chat input - Fixed border radius */
.chat-input-rounded {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-radius: 20px !important;
    /* Fixed 20px cho mọi trường hợp */
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
}

.chat-input-rounded .form-control {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    min-height: 40px;
    font-size: 0.95rem;
}

.chat-input-rounded .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #6c757d;
}

.chat-input-rounded .btn-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #495057;
}

.chat-input-rounded .btn-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--brown-tone, #5D4037);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(93, 64, 55, 0.35);
}

.chat-input-rounded .btn-send i {
    font-size: 1.05rem;
    transform: rotate(0deg);
}

.chat-input-rounded .btn-send:hover {
    background: var(--brown-dark, #3E2723);
}

.chat-input-rounded:focus-within {
    border-color: var(--brown-tone, #5D4037);
    box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.15);
}

.chat-input-rounded .form-control::placeholder {
    color: #9aa1a7;
    opacity: 1;
}

/* Fixed height layout cho desktop/tablet */
@media (min-width: 768px) {

    /* Cột phải hỗ trợ co giãn linh hoạt */
    #col-right {
        flex: 0 0 auto !important; /* cho phép co giãn dựa trên inline width từ JS */
    }

    #main-layout {
        height: 100vh !important;
        overflow: hidden !important;
    }

    #row-content {
        height: 100vh !important;
        overflow: hidden !important;
    }

    #col-left,
    #col-middle,
    #col-right {
        height: 100vh !important;
        overflow: visible !important;
        /* Cho phép handle hiển thị ra ngoài biên */
    }

    .chatbot-box {
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .chatbot-history {
        flex: 1 !important;
        overflow-y: auto !important;
        min-height: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 10px !important;
    }

    .chatbot-input {
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 15px !important;
        position: relative !important;
    }
}

/* Header sections cho cột trái và phải */
.col-header-section {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #FBF0E1;
    background: #FBF0E1;
    flex-shrink: 0;
}

.col-content-section {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Logo section styling */
.logo-section {
    justify-content: center;
}

.logo-section img {
    max-width: 250px;
    height: auto;
    margin: 0;
    padding: 0;
}

/* User section styling */
.user-section {
    justify-content: flex-end;
    padding-right: 15px;
}

.user-section .dropdown-toggle {
    color: #333;
    font-size: 0.9rem;
}

.user-section .dropdown-toggle:hover {
    color: #8B4513;
}

/* Đảm bảo min-width và flex không bị nén cho cột trái */
#col-left {
    min-width: 10vw !important;
    position: relative !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    z-index: 1045 !important; /* Đảm bảo nổi lên trên #col-middle để hiển thị trọn vẹn handle kéo */
}

/* Đảm bảo min-width và flex không bị nén cho cột phải */
#col-right {
    min-width: 10vw !important;
    position: relative !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    z-index: 1047 !important; /* Đảm bảo nổi lên trên #col-middle để hiển thị trọn vẹn handle kéo */
}

/* Navigation bar detection styles */
.has-navigation-bar .chatbot-input {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1), 0 -60px 0 rgba(255, 255, 255, 0.9) !important;
}

.has-navigation-bar .chatbot-history {
    scroll-padding-bottom: 100px !important;
}

/* Tablet navigation bar specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .has-navigation-bar .chatbot-input {
        position: fixed !important;
        bottom: 60px !important;
        /* Estimate navigation bar height */
        left: 0 !important;
        right: 0 !important;
        z-index: 1001 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .has-navigation-bar #col-middle .chatbot-input {
        position: sticky !important;
        bottom: 60px !important;
        left: auto !important;
        right: auto !important;
        border-radius: 0 !important;
    }
}

/* Android tablet - Fixed height layout không cần navigation bar spacing */
@media (min-width: 768px) and (max-width: 1024px) and (pointer: coarse) {

    /* Fixed height layout - không cần extra margin cho navigation bar */
    .chatbot-input {
        margin-bottom: 0 !important;
        padding-bottom: 15px !important;
        position: relative !important;
    }

    .chatbot-history {
        padding-bottom: 10px !important;
    }

    /* Khi keyboard mở - giảm padding */
    @media (max-height: 500px) {
        .chatbot-input {
            padding-bottom: 10px !important;
        }

        .chatbot-history {
            padding-bottom: 5px !important;
        }
    }
}

/* Disable navigation bar detection cho fixed height layout */
@supports (-webkit-appearance: none) {
    @media (min-width: 768px) and (max-width: 1024px) and (pointer: coarse) {
        .chatbot-input {
            /* Fixed height layout - không cần extra spacing */
            margin-bottom: 0 !important;
            padding-bottom: 15px !important;
        }
    }
}

/* Samsung Internet và các browser khác - Fixed height */
@media (min-width: 768px) and (max-width: 1024px) and (pointer: coarse) and (hover: none) {
    .chatbot-input {
        /* Fixed height layout - minimal spacing */
        margin-bottom: 0 !important;
        padding-bottom: 15px !important;
    }

    .chatbot-history {
        padding-bottom: 10px !important;
    }
}

/* Disable transitions during active resizing */
.resizing #col-right, .resizing #col-left, .resizing #col-middle {
    transition: none !important;
}

/* Cho phép col-middle tự động giãn theo phần còn dư khi đang kéo resize */
body.resizing #col-middle {
    width: auto !important;
    max-width: none !important;
    flex: 1 1 auto !important;
}

/* Giải phóng giới hạn tối thiểu của cột phải để cho phép co về bất kỳ kích thước nào khi kéo */
body.resizing #col-right {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

body.resizing #col-left {
    flex: 0 0 auto !important;
    overflow: hidden !important;
}

/* Toggle cột trái & phải - Desktop/Tablet (≥768px = md breakpoint) */
@media (min-width: 768px) {

    /* Cột trái hỗ trợ co giãn & ẩn hiện */
    #col-left {
        flex: 0 0 auto !important; /* Cố định flex basis, chống bị flexbox nén co lại khi kéo cột phải */
        position: relative;
        transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), flex 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
    }

    /* Khi cột trái thu gọn (10vw / is-collapsed), ẩn nhãn thời gian để tiêu đề thoáng và không bị gãy dòng */
    #col-left.is-collapsed .conv-title > .small.text-muted,
    #col-left.is-collapsed .conv-title .relative-time {
        display: none !important;
    }
    #col-left.is-collapsed .conv-title .d-flex.text-truncate {
        max-width: 100% !important;
    }

    body.col-left-hidden #col-left {
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        flex: 0 0 0 !important;
        overflow: visible !important;
        opacity: 1;
        z-index: 1050 !important; /* Buộc nút khôi phục nổi lên trên nền trắng của cột giữa */
        transition: all 0.3s ease-in-out;
    }

    /* Ẩn sạch các phần tử con khác để không bị tràn màn hình khi cột trái co về 0 */
    body.col-left-hidden #col-left > *:not(#btn-toggle-left-col) {
        opacity: 0 !important;
        pointer-events: none !important;
        display: none !important;
        transition: opacity 0.15s ease-in-out;
    }

    #col-left > *:not(#btn-toggle-left-col) {
        transition: opacity 0.3s ease-in-out;
    }

    /* Cột phải hỗ trợ co giãn & ẩn hiện */
    #col-right {
        position: relative;
        transition: all 0.3s ease-in-out;
        opacity: 1;
        flex: 0 0 auto !important; /* Cho phép co giãn dựa trên inline width */
    }

    /* Ẩn cột phải với animation */
    body.col-right-hidden #col-right {
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        flex: 0 0 0 !important;
        overflow: visible !important;
        opacity: 1;
        transition: all 0.3s ease-in-out;
    }

    /* Ẩn sạch các phần tử con và thanh resize-handle để không bị tràn/bắt chuột ở mép phải */
    body.col-right-hidden #col-right > *:not(#btn-toggle-right-col) {
        opacity: 0 !important;
        pointer-events: none !important;
        display: none !important;
        transition: opacity 0.15s ease-in-out;
    }

    #col-right > *:not(#btn-toggle-right-col) {
        transition: opacity 0.3s ease-in-out;
    }

    /* Mở rộng cột giữa khi các cột bên cạnh bị ẩn */
    #col-middle {
        position: relative;
        z-index: 1; /* Để thấp hơn #col-left (1045) và #col-right (1047) giúp thanh kéo nổi lên trọn vẹn */
        transition: all 0.3s ease-in-out;
    }

    body.col-right-hidden #col-middle {
        flex: 1 1 auto !important;
        max-width: none !important;
        transition: all 0.3s ease-in-out;
    }

    body.col-left-hidden #col-middle {
        flex: 1 1 auto !important;
        max-width: none !important;
        transition: all 0.3s ease-in-out;
    }

    /* Nút toggle tại border - luôn hiển thị */
    #btn-toggle-right-col, #btn-toggle-left-col {
        transition: all 0.2s ease;
        background: white !important;
        z-index: 1100 !important;
    }

    #btn-toggle-right-col:hover, #btn-toggle-left-col:hover {
        background: #f8f9fa !important;
        border-color: var(--brown-tone, #8B4513) !important;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.15) !important;
    }

    /* Di chuyển nút ra ngoài khi cột phải bị ẩn - Sửa đổi tối thượng */
    body.col-right-hidden #btn-toggle-right-col {
        position: fixed !important;
        right: 0 !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 2000 !important; /* Đảm bảo nổi lên trên tất cả mọi thứ */
        border-radius: 8px 0 0 8px !important; /* Bo góc trái, bám sát mép phải màn hình */
    }

    /* Di chuyển nút ra ngoài khi cột trái bị ẩn - Sửa đổi tối thượng */
    body.col-left-hidden #btn-toggle-left-col {
        position: fixed !important;
        left: 0 !important;
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 2000 !important; /* Đảm bảo nổi lên trên tất cả mọi thứ */
        border-radius: 0 8px 8px 0 !important; /* Khi ẩn dính mép trái màn hình thì bo bên phải */
    }

    /* Ẩn bộ nút header chatbot khi ẩn cột phải */
    body.col-right-hidden #chatbot-header-actions {
        display: none !important;
    }
}

/* Collapse/Expand styling for thinking process panel */
.chatbot-processing-panel.collapsed-view .processing-panel-content {
    max-height: 10vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
}

/* Hiệu ứng hover và trỏ chuột bàn tay cực đỉnh cho Folder Card trong Chat Bubble */
.folder-bubble-card {
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.folder-bubble-card:hover {
    background-color: #F5E6D3 !important; /* Kem đậm ấm áp Indochine */
    border-color: #D4A373 !important; /* Nâu đất nhẹ nhàng */
    box-shadow: 0 4px 12px rgba(93, 64, 55, 0.12) !important; /* Đổ bóng mịn */
    transform: translateY(-1.5px) scale(1.02); /* Phóng nhẹ 2% nổi bật */
}

.folder-bubble-card:active {
    transform: translateY(0) scale(0.98); /* Nhấn nhẹ đàn hồi */
}

/* Hiệu ứng hover thượng hạng cho từng tệp tin trong sơ đồ cây thư mục Modal */
.file-tree-link {
    display: inline-flex !important;
    align-items: center;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
}

.file-tree-link:hover {
    background-color: #FAF4EB !important; /* Màu nền kem nhạt mượt */
    color: #2563eb !important; /* Chuyển màu chữ sang xanh công nghệ */
    transform: translateX(4px); /* Nhích nhẹ sang phải 4px đầy tinh tế */
}

.file-tree-link i {
    transition: transform 0.2s ease !important;
}

.file-tree-link:hover i {
    transform: scale(1.15); /* Phóng nhẹ icon tệp tin */
}
