.comment-image-box {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #f8f9fa;
    position: relative;
    }

    .comment-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* Cắt và co ảnh vừa khung */
    object-position: center;
    transition: transform .3s ease;
    }

    .comment-image-box:hover img {
    transform: scale(1.05);     /* Zoom nhẹ khi hover */
    }
    .mention {
    color: #0d6efd;
    font-weight: 600;
    cursor: pointer;
    }
    .mention:hover {
    text-decoration: underline;
    }
    .highlight-comment {
        background: #fff9c280 !important;
        transition: background 0.5s ease;
        border-left: 4px solid #ffc107;
        color:#121212
    }

    @keyframes shake {
    0% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
    }
    .btn-shake {
    animation: shake 0.4s ease-in-out;
    }
    .highlight-comment {
    background: #fff9c4 !important;
    transition: background 1s;
    }
                
.comment-wrap {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}
/*TASK */
/* =====================================================
   CONTAINER CHỨA TẤT CẢ TASK WINDOWS
   ===================================================== */
#task-windows-container {
    position: fixed;
    inset: 0;
    z-index: 2100;
    pointer-events: none; /* windows xử lý pointer riêng */
}


/* =====================================================
   TASK WINDOW
   ===================================================== */
.task-window {
    position: fixed;

    /* --- Vị trí ban đầu: góc dưới trái --- */
    bottom: 20px;
    left: 20px;

    width: 640px;
    height: 760px;

    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    background: var(--custom-white);
    display: flex;
    flex-direction: column;

    pointer-events: auto;
    overflow: hidden;

    transition: box-shadow .15s ease-out, transform .15s ease-out;
}

/* ACTIVE */
.task-window.active {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    z-index: 2300 !important;
}


/* =====================================================
   HEADER DRAGGABLE
   ===================================================== */
.task-window-header {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    cursor: move;
    user-select: none;
    
}
.task-window-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0; /* quan trọng: không cho co lại */
}
.task-window-title {
    font-size: 14px;
    font-weight: 600;
    max-width: 350px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.task-window-actions button {
    border: none;
    background: transparent;
    color: #e5e7eb;
    padding: 4px 7px;
    margin-left: 4px;
    border-radius: 999px;
}
.task-window-actions button:hover {
    background: rgba(255,255,255,0.15);
}


/* =====================================================
   BODY – CHIA KHỐI
   ===================================================== */
.task-window-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    height: auto !important; /* Ngăn height cũ đè lên */
}


/* =====================================================
   KHU VỰC HIỂN THỊ CHI TIẾT TASK
   ===================================================== */
.task-detail-area {
    flex: 0 0 auto;
    margin-bottom: 10px;
}


/* =====================================================
   COMMENT WRAP = LIST + BOX
   ===================================================== */
.comment-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    border: 0px solid #e2e8f0;
    margin-bottom: 100px;
}


/* LIST COMMENT – CUỘN RIÊNG */
.comment-list-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    padding-bottom: 0px; /* chừa chỗ cho comment box */
}

/* đẹp hơn */
.comment-list-wrap::-webkit-scrollbar {
    width: 6px;
}
.comment-list-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}


/* =====================================================
   COMMENT BOX FIXED BOTTOM (STICKY)
   ===================================================== */
.comment-box-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--custom-white);
    border-top: 1px solid var(--custom-white);
    z-index: 20;
}



/* =====================================================
   TRẠNG THÁI MINI (CHAT HEAD)
   ===================================================== */
.task-window.mini {
    width: 320px !important;
    height: auto !important;
    bottom: 15px;
    left: 15px;

    border-radius: 10px;
}

.task-window.mini .task-window-body {
    display: none;
}

.task-window.mini .task-window-header {
    cursor: default;
}


/* =====================================================
   TRẠNG THÁI MAX – FULL SCREEN
   ===================================================== */
.task-window.max {
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;

    width: auto !important;
    height: auto !important;
    border-radius: 12px;
}

.task-window.max .task-window-header {
    cursor: move;
}
.btn-todo-thread .badge {
    pointer-events: none; /* tránh click trúng badge */
}
/* Completed effect */
.todo-completed .fw-medium,
.todo-completed .text-nowrap {
    text-decoration: line-through !important;
    opacity: 0.55 !important;
}

/* Tick animation */
.todo-tick-anim {
    position: absolute;
    right: 10px;
    top: 6px;
    color: #22c55e;
    font-size: 18px;
    font-weight: bold;
    animation: tickZoom .4s ease-out;
}
.todo-highlight {
    background-color: #fff3c7 !important;
    transition: background-color 1.2s ease;
}

@keyframes tickZoom {
    0%   { transform: scale(0.3); opacity: 0; }
    70%  { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); }
}
.flatpickr-calendar.open {
    z-index: 9999999 !important;
}
/* Ép popup nổi cao hơn mọi layer */
.swal2-container {
    z-index: 999999 !important;
}

/* Nếu muốn nút / tiến trình trên cùng luôn */
.swal2-popup {
    z-index: 999999 !important;
}

/* PAGES */
.main-chart-wrapper {
  position: relative;
  overflow: hidden;
}
.main-chart-wrapper .chat-info,
.main-chart-wrapper .main-chat-area,
.main-chart-wrapper .chat-user-details {
  background-color: var(--custom-white);
  height: calc(100vh - 8rem);
  border-radius: 0.25rem;
}
.main-chart-wrapper .chat-users-tab,
.main-chart-wrapper .chat-groups-tab,
.main-chart-wrapper .chat-contacts-tab1 {
  max-height: calc(100vh - 24rem);
}
.main-chart-wrapper .chat-content {
  max-height: calc(100vh - 18rem);
}
.main-chart-wrapper .chat-content .simplebar-content-wrapper .simplebar-content {
  margin-top: auto;
}
.main-chart-wrapper .chat-content ul li {
  margin-block-end: 1rem;
}
.main-chart-wrapper .chat-content ul li:last-child {
  margin-block-end: 0;
}
.main-chart-wrapper .responsive-chat-close,
.main-chart-wrapper button.responsive-userinfo-open {
  display: none;
}
.main-chart-wrapper .chat-info {
  position: relative;
}
.main-chart-wrapper .chat-info .tab-style-6 {
  padding: 1rem;
  border-radius: 0;
}
.main-chart-wrapper .chat-info .nav-link {
  color: var(--text-muted);
}
.main-chart-wrapper .chat-info .tab-pane {
  padding: 0;
}
.main-chart-wrapper .chat-info .chat-groups-tab li {
  padding: 0.625rem 1.25rem;
}
.main-chart-wrapper .chat-info .chat-groups-tab .group-indivudial {
  color: var(--primary-color);
  font-weight: 400;
}
.main-chart-wrapper .chat-info .chat-contacts-tab > li {
  padding: 0.625rem 1.25rem;
}
.main-chart-wrapper .chat-info .chat-contacts-tab .incoming-call-success i,
.main-chart-wrapper .chat-info .chat-contacts-tab .outgoing-call-success i {
  color: rgb(var(--success-rgb));
  font-size: 0.875rem;
}
.main-chart-wrapper .chat-info .chat-contacts-tab .incoming-call-failed i,
.main-chart-wrapper .chat-info .chat-contacts-tab .outgoing-call-failed i {
  color: rgb(var(--danger-rgb));
  font-size: 0.875rem;
}
.main-chart-wrapper .chat-info .chat-users-tab li,
.main-chart-wrapper .chat-info .chat-groups-tab li {
  padding: 0.625rem 1.25rem;
  border-inline-start: 2px solid transparent;
}
.main-chart-wrapper .chat-info .chat-users-tab li:hover,
.main-chart-wrapper .chat-info .chat-groups-tab li:hover {
  background-color: rgb(var(--light-rgb));
}
.main-chart-wrapper .chat-info .chat-users-tab li .chat-msg,
.main-chart-wrapper .chat-info .chat-groups-tab li .chat-msg {
  color: var(--text-muted);
  max-width: 11.25rem;
  display: inline-block;
}
.main-chart-wrapper .chat-info .chat-users-tab li .chat-msg-typing .chat-msg,
.main-chart-wrapper .chat-info .chat-groups-tab li .chat-msg-typing .chat-msg {
  color: rgb(var(--success-rgb)) !important;
}
.main-chart-wrapper .chat-info .chat-users-tab li .chat-msg-typing .chat-read-icon,
.main-chart-wrapper .chat-info .chat-groups-tab li .chat-msg-typing .chat-read-icon {
  display: none;
}
.main-chart-wrapper .chat-info .chat-users-tab li .chat-read-icon,
.main-chart-wrapper .chat-info .chat-groups-tab li .chat-read-icon {
  line-height: 1;
}
.main-chart-wrapper .chat-info .chat-users-tab li .chat-read-icon i,
.main-chart-wrapper .chat-info .chat-groups-tab li .chat-read-icon i {
  font-size: 1rem;
  color: rgb(var(--success-rgb));
}
.main-chart-wrapper .chat-info .chat-users-tab li.active,
.main-chart-wrapper .chat-info .chat-groups-tab li.active {
  background-color: var(--primary005);
  color: var(--default-text-color);
  border-inline-start: 2px solid var(--primary-color);
}
.main-chart-wrapper .chat-info .chat-users-tab li.chat-msg-unread,
.main-chart-wrapper .chat-info .chat-groups-tab li.chat-msg-unread {
  color: var(--default-text-color);
}
.main-chart-wrapper .chat-info .chat-users-tab li.chat-msg-unread.active,
.main-chart-wrapper .chat-info .chat-groups-tab li.chat-msg-unread.active {
  background-color: var(--primary005);
}
.main-chart-wrapper .chat-info .chat-users-tab li.chat-msg-unread .chat-msg,
.main-chart-wrapper .chat-info .chat-groups-tab li.chat-msg-unread .chat-msg {
  color: var(--default-text-color);
}
.main-chart-wrapper .chat-info .chat-users-tab li.chat-msg-unread .chat-read-icon i,
.main-chart-wrapper .chat-info .chat-groups-tab li.chat-msg-unread .chat-read-icon i {
  color: var(--text-muted);
}
.main-chart-wrapper .chat-info .chat-users-tab li.chat-inactive .chat-read-icon,
.main-chart-wrapper .chat-info .chat-groups-tab li.chat-inactive .chat-read-icon {
  display: none;
}
.main-chart-wrapper .main-chat-area {
  position: relative;
}
.main-chart-wrapper .main-chat-area .main-chat-head {
  padding: 0.75rem;
}
.main-chart-wrapper .main-chat-area .chatnameperson, .main-chart-wrapper .main-chat-area .chatting-user-info {
  font-weight: 600;
}
.main-chart-wrapper .main-chat-area .chat-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
}
.main-chart-wrapper .main-chat-area .chat-content:before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background-image: url("../images/media/svg/pattern-1.svg");
  background-repeat: repeat;
  z-index: -1;
  opacity: 0.015;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
}
.main-chart-wrapper .main-chat-area .chat-content .chatting-user-info {
  color: var(--default-text-color);
  font-size: 0.813rem;
}
.main-chart-wrapper .main-chat-area .chat-content .chatting-user-info .msg-sent-time {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.main-chart-wrapper .main-chat-area .chat-content .chatting-user-info .msg-sent-time .chat-read-mark i {
  color: rgb(var(--success-rgb));
  margin-inline-end: 0.3rem;
}
.main-chart-wrapper .main-chat-area .chat-content .main-chat-msg div {
  margin-block-start: 0.4rem;
  padding: 0.75rem;
  width: -moz-fit-content;
  width: fit-content;
}
.main-chart-wrapper .main-chat-area .chat-content .main-chat-msg div p {
  font-size: 0.813rem;
}
.main-chart-wrapper .main-chat-area .chat-content .main-chat-msg div .chat-media-image {
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 0.25rem;
}
.chat-item-start .main-chat-msg div {
  color: var(--default-text-color);
  border-start-start-radius: 0rem;
  border-start-end-radius: 0.3rem;
  border-end-end-radius: 0.3rem;
  border-end-start-radius: 0.3rem;
  font-weight: 500;
}
.chat-item-start .msg-sent-time {
  margin-inline-start: 0.25rem;
}
.chat-item-end {
  justify-content: end;
}
.chat-item-end .main-chat-msg div {
  color: #fff;
  border-start-start-radius: 0.3rem;
  border-start-end-radius: 0px;
  border-end-end-radius: 0.3rem;
  border-end-start-radius: 0.3rem;
  font-weight: 500;
}
.chat-item-end .msg-sent-time {
  margin-inline-end: 0.25rem;
}

.chat-item-start .chat-list-inner,
.chat-item-end .chat-list-inner {
  display: flex;
  align-items: top;
  width: 100%;
}
.main-chart-wrapper .main-chat-area .chat-footer {
  width: 100%;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
}
.main-chart-wrapper .main-chat-area .chat-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 4.75rem;
  padding: 0 1.5rem;
  border-top: 1px solid var(--default-border);
  background-color: var(--custom-white);
  position: absolute;
  inset-inline-start: auto;
  inset-inline-end: auto;
  inset-block-end: 0;
}
.main-chart-wrapper .main-chat-area .chat-day-label {
  text-align: center;
  color: var(--text-muted);
  margin-block-end: 2rem;
  opacity: 0.6;
  position: relative;
}
.main-chart-wrapper .main-chat-area .chat-day-label span {
  padding: 0.188rem 0.5rem;
  font-size: 0.7rem;
  background-color: var(--primary02);
  border-radius: 0.3rem;
  color: var(--primary-color);
}
@media (min-width: 992px) {
  .main-chart-wrapper .chat-info {
    min-width: 25rem;
    max-width: 25rem;
  }
}
.main-chart-wrapper .main-chat-area {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
@media (max-width: 1275.98px) and (min-width: 992px) {
  .main-chart-wrapper .chat-info {
    min-width: 25rem;
    max-width: 25rem;
  }
  .main-chart-wrapper .main-chat-area {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
}
@media (max-width: 991.98px) {
  .main-chart-wrapper .chat-info {
    width: 100%;
  }
  .main-chart-wrapper .main-chat-area {
    display: none;
    min-width: 100%;
    max-width: 100%;
  }
  .main-chart-wrapper .responsive-chat-close {
    display: block;
  }
}
.chat-user-details {
  padding: 1rem;
}
.chat-user-details .avatar {
  outline: 0.25rem solid var(--primary02);
}
.chat-user-details .shared-files .shared-file-icon i {
  width: 1rem;
  height: 1rem;
  line-height: 1rem;
  border-radius: 0.3rem;
  display: flex;
  align-items: center;
  padding: 1.125rem;
  justify-content: center;
  font-size: 1.125rem;
}
.chat-user-details .chat-media img {
  width: 100%;
  border-radius: 0.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 1400px) {
  .chat-user-details.open {
    display: block;
    inset-inline-end: 0;
    inset-block-start: 0.5rem;
    box-shadow: 0px 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    border-inline-start: 1px solid var(--default-border);
  }
  button.responsive-userinfo-open {
    display: block;
  }
}
@media (max-width: 991.98px) {
  .main-chart-wrapper.responsive-chat-open .chat-info {
    display: none;
  }
  .main-chart-wrapper.responsive-chat-open .main-chat-area {
    display: block;
  }
}
@media (max-width: 767.98px) {
  .main-chart-wrapper .main-chat-area .chat-content .main-chat-msg div .chat-media-image {
    width: 2.5rem;
    height: 2.5rem;
  }
}
@media (max-width: 354px) {
  .main-chart-wrapper .chat-contacts-tab1,
  .main-chart-wrapper .chat-groups-tab,
  .main-chart-wrapper .chat-users-tab {
    max-height: calc(100vh - 29rem);
  }
}
@media (max-width: 340px) {
  .main-chart-wrapper .chat-content {
    max-height: calc(100vh - 20rem);
  }
}
.chat-contacts-tab li {
  border-bottom: 1px solid var(--default-border);
}
.chat-contacts-tab li:last-child {
  border-bottom: 0;
}
[data-page-style=modern] .main-chat-area .rightIcons .btn-outline-light {
  border-color: var(--default-border);
}
[dir=rtl] .chat-footer .btn-send {
  transform: rotate(180deg);
}
[data-theme-mode=dark] .main-chat-area .chat-content:before {
  filter: invert(1);
}
/* Start:: Products */
.list-group-item:last-child {
    border-bottom-right-radius: var(--bs-border-radius-xl) !important;
    border-bottom-left-radius: var(--bs-border-radius-xl) !important;
}

.task-window .comment-filter-panel {
    position: absolute;
    top: 40px;    /* nằm ngay trên khung nhập comment */
    right: 15px;
    width: 280px;
    z-index: 999;
    background: white;
    border-radius: 10px;
}
#xem_task .modal-filter-panel {
    position: absolute;
    top: 55px; /* ngay dưới header */
    right: 20px; 
    width: 300px;
    z-index: 99999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    animation: fadeIn 0.15s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tooltip, .fg-emoji-picker {
    z-index: 999999 !important;
}
.comment-pinned {
    border-left: 4px solid #f8c328 !important;
}
/*ham copy*/

/* Animation zoom mượt */
.swal2-popup.swal-custom-zoom {
    animation: swalZoomIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes swalZoomIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

.swal-copy-popup {
    padding: 0 !important;
    animation: swalZoomIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.copy-title {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.checkmark {
    width: 50px;
    height: 50px;
    stroke: #4CAF50;
    stroke-width: 4px;
    fill: none;
    stroke-linecap: round;
}

/* Circle animation */
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s ease-in-out forwards;
}

/* Check animation */
.checkmark__check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.35s ease-in-out 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes swalZoomIn {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
/*marked*/
/* ============================
   NOTION MARKDOWN STYLE
   ============================ */

.notion-md {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.notion-md h1,
.notion-md h2,
.notion-md h3 {
    font-weight:600;
    margin-top:24px;
    margin-bottom:12px;
}

.notion-md h1 { font-size: 1.6rem; }
.notion-md h2 { font-size: 1.4rem; }
.notion-md h3 { font-size: 1.2rem; }

.notion-md p {
    margin: 10px 0;
}

.notion-md ul, 
.notion-md ol {
    padding-left: 20px;
    margin: 10px 0;
}

.notion-md li {
    margin: 4px 0;
}

.notion-md blockquote {
    border-left: 4px solid #ddd;
    padding-left: 12px;
    color: #555;
    margin: 12px 0;
    font-style: italic;
}

.notion-md code {
    background: #f2f2f2;
    padding: 2px 5px;
    border-radius: 4px;
}

.notion-md pre code {
    background: #f5f5f5;
    padding: 12px;
    display: block;
    border-radius: 6px;
    white-space: pre-wrap;
}

.notion-md a {
    color: #0878f9;
    text-decoration: underline;
}

.notion-md table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    background: white;
}

.notion-md table th,
.notion-md table td {
    border: 1px solid #e5e5e5;
    padding: 8px 10px;
}

.notion-md table th {
    background: #fafafa;
    font-weight: 600;
}

/* Checklist Notion style */
.notion-md .checkbox {
    margin-right: 6px;
}

.react-svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.picker-item img.react-svg {
    width: 40px;
    height: 40px;
    transition: transform .18s cubic-bezier(.22,.61,.36,1);
}

.picker-item:hover img.react-svg {
    transform: translateY(-10px) scale(1.25);
}
.react-pulse {
    animation: reactPulse .35s ease-out;
}

@keyframes reactPulse {
    0%   { transform: scale(.3); opacity:0; }
    40%  { transform: scale(1.3); opacity:1; }
    100% { transform: scale(1); }
}
.r-icon img {
    animation: stackPop .35s ease;
}

@keyframes stackPop {
    0% { transform: scale(.4); opacity:0; }
    100% { transform: scale(1); opacity:1; }
}
.react-svg.haha {
    animation: hahaWiggle 1.8s infinite ease-in-out;
}

@keyframes hahaWiggle {
    0%, 100% { transform: rotate(0deg); }
    40%      { transform: rotate(6deg); }
    80%      { transform: rotate(-6deg); }
}
.react-svg.love {
    animation: heartBeat 1.4s infinite ease-in-out;
}

@keyframes heartBeat {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.18); }
    40%  { transform: scale(1); }
    60%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}
.window-flash {
    animation: flashWin 1s ease-in-out;
}

@keyframes flashWin {
    0%   { box-shadow: 0 0 0px rgba(255,0,0,0); }
    50%  { box-shadow: 0 0 18px rgba(255,100,100,0.9); }
    100% { box-shadow: 0 0 0px rgba(255,0,0,0); }
}
.window-flash-loop {
    animation: flashLoop 1.4s ease-in-out infinite;
}

@keyframes flashLoop {
    0%   { box-shadow: 0 0 0 rgba(255, 150, 150, 0); }
    50%  { box-shadow: 0 0 14px rgba(255, 120, 120, .8); }
    100% { box-shadow: 0 0 0 rgba(255, 150, 150, 0); }
}
.task-window-header.active {
    background-color: rgba(var(--primary-rgb), 0.9) !important;
}

.task-window-header.inactive {
    background-color: rgba(var(--primary-rgb), 0.50) !important;
}

.comment-flash {
    animation: commentFlash 1.4s ease-out;
    background-color: #fff3cd !important;
}

@keyframes commentFlash {
    0%   { background-color: #fff7d1; }
    50%  { background-color: #ffe8a1; }
    100% { background-color: transparent; }
}
.border.border-teal {
    border:2px solid #aeb5bd  !important;
    opacity: 1;
}
.border-teal:checked {
    background-color: #aeb5bd  !important;
    border-color: #aeb5bd  !important;
}
.link-preview-card:hover {
    background: #f8f9ff;
    border-color: #735dff;
}

.link-preview-card img {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.cm-link-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
    background: #fff;
}

.cm-link-card a {
    text-decoration: none;
    color: inherit;
}

.cm-link-card.youtube .thumb {
    position: relative;
}

.cm-link-card.youtube img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.cm-link-card.youtube .play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 56px;
    color: white;
    background: rgba(0,0,0,0.25);
}

.cm-link-card .info {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.cm-link-card .icon {
    font-size: 22px;
}

.cm-link-card .title {
    font-weight: 600;
}

.cm-link-card .domain {
    font-size: 12px;
    color: #6b7280;
}
.nav-item {
    cursor: pointer;
}
.cm-react-multi {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.cm-react-multi .react-svg {
    width: 16px;
    height: 16px;
}

.cm-react-multi .react-count {
    font-size: 12px;
    font-weight: 600;
    margin-left: 2px;
}

.cm-react-multi .react-me {
    background: #e7f1ff;
    border-color: #0d6efd;
}
@keyframes ac-pin-flash {
  0%   { background-color: rgba(255,193,7,.15); }
  100% { background-color: transparent; }
}

.ac-pin-flash {
  animation: ac-pin-flash 400ms ease;
}
@keyframes pinPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.ac-pin-pulse {
  animation: pinPulse 280ms ease;
}
.ac-read-users {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ac-read-user {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: #495057;
}

.ac-read-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
/* READ EYE */
.ac-read-eye {
  cursor: pointer;
  color: #adb5bd;
  display: inline-flex;
  align-items: center;
  transition: all .15s ease;
}

.ac-read-eye:hover {
  color: #795bfc;
  transform: scale(1.1);
}

/* ĐÃ XEM */
.ac-read-eye.read {
  color: #795bfc;
}

.ac-read-eye.read i {
  opacity: 1;
}

.table-row-flash-add {
  animation: flashAdd 1.5s ease-in-out;
  background-color: #e6fffa !important;
}

.table-row-flash-remove {
  animation: flashRemove 1.5s ease-in-out;
  background-color: #fff1f2 !important;
}

@keyframes flashAdd {
  0% { background-color: #99f6e4; }
  100% { background-color: transparent; }
}

@keyframes flashRemove {
  0% { background-color: #fecaca; }
  100% { background-color: transparent; }
}
.kanban-dropzone {
  min-height: 80px;
  padding: 6px;
}

.kanban-dropzone:empty::after {
  content: "Kéo task vào đây";
  display: block;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  padding: 12px 0;
}
.image_opacity{
      filter: grayscale(1);
}
.image_opacity:hover{
      filter: opacity(1);
}
.ac-comment-text {
  max-height: 6.5em;          /* ~3 dòng */
  overflow: hidden;
  position: relative;
  transition: max-height .25s ease;
}

.ac-comment[data-expanded="1"] .ac-comment-text {
  max-height: 2000px;         /* mở full */
}

.ac-readmore {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #0d6efd;
  cursor: pointer;
}

.ac-readmore:hover {
  text-decoration: underline;
}
.ac1-comment-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2em;
  background: linear-gradient(transparent, #fff);
}

.ac-comment[data-expanded="1"] .ac-comment-text::after {
  display: none;
}
/* TODO đang focus */
.todo-focus {
    background: rgba(114, 105, 239, 0.12) !important;
    border-left: 5px solid #7269ef !important;
    transition: all .25s ease;
}

/* pulse nhẹ */
.todo-focus-pulse {
    animation: todoPulse 1.2s ease-in-out 2;
}

@keyframes todoPulse {
    0%   { box-shadow: 0 0 0 0 rgba(114,105,239,.45); }
    70%  { box-shadow: 0 0 0 10px rgba(114,105,239,0); }
    100% { box-shadow: 0 0 0 0 rgba(114,105,239,0); }
}
