:root {
    --bs-primary: #3489c6;
    --bs-primary-rgb: 52, 137, 198;
    --bs-body-font-size: 0.875rem;
}

.nav-tabs, .nav {
    --bs-nav-tabs-link-active-border-color: #3489c6;
    --bs-primary: #3489c6;
}
.navbar-nav {
    --bs-nav-link-font-size: 0.875rem;
}
:root, [data-bs-theme=light] {
  --bs-primary: #3489c6;
  --bs-primary-rgb: 52, 137, 198;
}

.btn {
  --bs-btn-font-size: 0.875rem;
  --bs-primary: #3489c6;
}

.dropdown-menu {
  --bs-dropdown-font-size: 0.875rem;
}

.form-control {
  font-size: 0.875rem;
  line-height: 24px;
}

.menu-vertical .menu-item .menu-link.active-folder {
  border-left: 3px solid var(--bs-primary);
  border-radius: 0;
  font-weight: 500;
  transform: translateX(-3px);
}

.menu-vertical .menu-item .menu-link {
  font-size: 14px;;
}
.menu-link .folder-link:hover {
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--bs-primary);
}

.material-symbols-rounded {
  font-size: inherit;
  transform: scale(1.2) translateY(1px);
}

.form-control[type="datetime-local"] {
  height: 38px;;
}

#userSuggestions {
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0.375rem;
    padding: 0;
}

#userSuggestions .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#userSuggestions .dropdown-item:hover {
    background-color: #f8f9fa;
}

#userSuggestions .dropdown-item.active {
    background-color: #e9ecef;
    color: #000;
    font-weight: 500;
}

#userSuggestions:not(.d-none) {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coming-soon {
  cursor: not-allowed;
  color: #6c757d;
  opacity: 0.6;
  /* pointer-events: none; */
}

.coming-soon input,
.coming-soon label {
  pointer-events: none;
}

.coming-soon:hover::after {
  opacity: 1;
}

coming-soon::after {
  position: absolute;
  top: -1.8em;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}

label.required::after {
  content: " *";
  color: #ea5455;
  font-weight: bold;
}

[data-bs-theme=dark] .board-panel-status-label {
  --bs-dark-rgb: #333;
  --bs-text-opacity: 1;
}

.dropdown .dropdown-menu {
  position: absolute !important;
  z-index: 99999 !important;
}

/* ==================== A HA thêm CSS dưới cho Chatbox AI ==================== */
#ai-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99998;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ai-chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bs-primary), #2a73a8);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ai-chat-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.ai-chat-toggle:active {
  transform: scale(0.95);
}

.ai-chat-toggle.active {
  background: linear-gradient(135deg, #2a73a8, var(--bs-primary));
}

.ai-chat-toggle svg {
  transition: transform 0.3s ease;
}

.ai-chat-toggle:hover svg {
  transform: scale(1.1);
}

/* Chat Box Container */
.ai-chat-box {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 550px;
  max-height: calc(100vh - 120px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* A HA test lại responsive bằng CSS thuần thôi, Shuwu hay đũng có muốn responsive bằng Bootstrap thì sửa lại giúp a nhé :> */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-bs-theme=dark] .ai-chat-box {
  background: #1e1e1e;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.ai-chat-header {
  background: linear-gradient(135deg, var(--bs-primary), #2a73a8);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ai-chat-header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chat-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.ai-chat-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ai-chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

[data-bs-theme=dark] .ai-chat-messages {
  background: #2a2a2a;
}

.ai-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

[data-bs-theme=dark] .ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

[data-bs-theme=dark] .ai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ai-chat-welcome {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.ai-chat-welcome-icon {
  margin-bottom: 16px;
  color: var(--bs-primary);
}

.ai-chat-welcome-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.ai-chat-message {
  display: flex;
  gap: 10px;
  animation: messageSlideIn 0.3s ease;
}

/* A HA test lại responsive bằng CSS thuần thôi, Shuwu hay đũng có muốn responsive bằng Bootstrap thì sửa lại giúp a nhé :> */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-chat-message-content {
  max-width: 85%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* User Message */
.ai-chat-message-user {
  justify-content: flex-end;
}

.ai-chat-message-user .ai-chat-message-content {
  align-items: flex-end;
}

.ai-chat-message-user .ai-chat-message-text {
  background: var(--bs-primary);
  color: white;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.ai-chat-message-ai {
  justify-content: flex-start;
}

.ai-chat-message-ai .ai-chat-message-content {
  align-items: flex-start;
  max-width: 100%;
}

.ai-chat-thinking {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  max-width: 100%;
}

[data-bs-theme=dark] .ai-chat-thinking {
  background: #333;
  border-color: #444;
}

.ai-chat-thinking-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6c757d;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-chat-thinking-content {
  color: #666;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  max-height: 150px;
  overflow-y: auto;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 6px;
}

[data-bs-theme=dark] .ai-chat-thinking-content {
  color: #aaa;
  background: #2a2a2a;
}

.ai-chat-answer {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px;
  max-width: 100%;
}

[data-bs-theme=dark] .ai-chat-answer {
  background: #333;
  border-color: #444;
}

.ai-chat-answer-content {
  color: #2c3e50;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
}

[data-bs-theme=dark] .ai-chat-answer-content {
  color: #e0e0e0;
}

.ai-chat-answer-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #e83e8c;
}

[data-bs-theme=dark] .ai-chat-answer-content code {
  background: #2a2a2a;
  color: #ff79c6;
}

.ai-chat-answer-content strong {
  font-weight: 600;
  color: #1a1a1a;
}

[data-bs-theme=dark] .ai-chat-answer-content strong {
  color: #fff;
}

.ai-chat-answer-content em {
  font-style: italic;
  color: #555;
}

[data-bs-theme=dark] .ai-chat-answer-content em {
  color: #ccc;
}

.ai-chat-error {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: messageSlideIn 0.3s ease;
}

[data-bs-theme=dark] .ai-chat-error {
  background: #4a2020;
  border-color: #e53e3e;
}

.ai-chat-error-icon {
  color: #f56565;
  flex-shrink: 0;
}

.ai-chat-error-text {
  color: #c53030;
  font-size: 13px;
  line-height: 1.5;
}

[data-bs-theme=dark] .ai-chat-error-text {
  color: #fc8181;
}

.ai-chat-loading {
  display: flex;
  justify-content: center;
  padding: 12px;
  animation: messageSlideIn 0.3s ease;
}

.ai-chat-loading-dots {
  display: flex;
  gap: 6px;
}

.ai-chat-loading-dots span {
  width: 8px;
  height: 8px;
  background: var(--bs-primary);
  border-radius: 50%;
  animation: dotPulse 1.4s infinite ease-in-out;
}

.ai-chat-loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.ai-chat-loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

/* A HA test lại responsive bằng CSS thuần thôi, Shuwu hay đũng có muốn responsive bằng Bootstrap thì sửa lại giúp a nhé :> */
@keyframes dotPulse {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.ai-chat-input-wrapper {
  flex-shrink: 0;
  padding: 16px;
  background: white;
  border-top: 1px solid #e0e0e0;
}

[data-bs-theme=dark] .ai-chat-input-wrapper {
  background: #1e1e1e;
  border-top-color: #444;
}

.ai-chat-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.ai-chat-input {
  flex: 1;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: border-color 0.2s ease;
  max-height: 120px;
  overflow-y: auto;
  font-family: inherit;
}

.ai-chat-input:focus {
  border-color: var(--bs-primary);
}

.ai-chat-input:disabled {
  background: #f8f9fa;
  cursor: not-allowed;
}

[data-bs-theme=dark] .ai-chat-input {
  background: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

[data-bs-theme=dark] .ai-chat-input:disabled {
  background: #1a1a1a;
}

.ai-chat-input::-webkit-scrollbar {
  width: 6px;
}

.ai-chat-input::-webkit-scrollbar-track {
  background: transparent;
}

.ai-chat-input::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.ai-chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bs-primary);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ai-chat-send-btn:hover {
  background: #2a73a8;
  transform: scale(1.05);
}

.ai-chat-send-btn:active {
  transform: scale(0.95);
}

.ai-chat-send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: scale(1);
}

/* A HA test lại responsive bằng CSS thuần thôi, Shuwu hay đũng có muốn responsive bằng Bootstrap thì sửa lại giúp a nhé :> */
@media (max-width: 480px) {
  #ai-chat-widget {
    bottom: 10px;
    right: 10px;
  }

  .ai-chat-box {
    width: calc(100vw - 20px);
    height: calc(100vh - 100px);
    bottom: 60px;
  }

  .ai-chat-toggle {
    width: 50px;
    height: 50px;
  }
}

/* ==================== Phần dưới này là CSS của Cái Box chat gợi ý tạo task nhe mấy đứa ==================== */

#ai-task-suggestion-widget {
  position: fixed;
  bottom: 20px;
  right: 90px;
  z-index: 99997;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ai-task-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.ai-task-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.ai-task-toggle:active {
  transform: scale(0.95);
}

.ai-task-toggle.active {
  background: linear-gradient(135deg, #059669, #10b981);
}

.ai-task-box {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 450px;
  max-width: calc(100vw - 40px);
  height: 600px;
  max-height: calc(100vh - 120px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: right 0.3s ease;
}

.ai-task-box.shifted-left {
  right: 400px;
}

[data-bs-theme=dark] .ai-task-box {
  background: #1e1e1e;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.ai-task-header {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ai-task-header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-task-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.ai-task-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ai-task-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ai-task-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8f9fa;
}

[data-bs-theme=dark] .ai-task-content {
  background: #2a2a2a;
}

.ai-task-content::-webkit-scrollbar {
  width: 6px;
}

.ai-task-content::-webkit-scrollbar-track {
  background: transparent;
}

.ai-task-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

[data-bs-theme=dark] .ai-task-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.ai-task-welcome {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.ai-task-welcome-icon {
  margin-bottom: 20px;
  color: #10b981;
}

.ai-task-welcome-text {
  margin: 0 0 12px 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

.ai-task-welcome-hint {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
  font-style: italic;
}

.ai-task-input-wrapper {
  flex-shrink: 0;
  padding: 16px;
  background: white;
  border-top: 1px solid #e0e0e0;
}

[data-bs-theme=dark] .ai-task-input-wrapper {
  background: #1e1e1e;
  border-top-color: #444;
}

.ai-task-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.ai-task-input {
  flex: 1;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: border-color 0.2s ease;
  max-height: 100px;
  overflow-y: auto;
  font-family: inherit;
}

.ai-task-input:focus {
  border-color: #10b981;
}

.ai-task-input:disabled {
  background: #f8f9fa;
  cursor: not-allowed;
}

[data-bs-theme=dark] .ai-task-input {
  background: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

.ai-task-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #10b981;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ai-task-send-btn:hover {
  background: #059669;
  transform: scale(1.05);
}

.ai-task-send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: scale(1);
}

.ai-task-loading {
  text-align: center;
  padding: 60px 20px;
  animation: messageSlideIn 0.3s ease;
}

.ai-task-loading-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 4px solid #e5e7eb;
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ai-task-loading p {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
}

.ai-task-error {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  animation: messageSlideIn 0.3s ease;
}

[data-bs-theme=dark] .ai-task-error {
  background: #4a2020;
  border-color: #e53e3e;
}

.ai-task-error-icon {
  color: #f56565;
  margin-bottom: 12px;
}

.ai-task-error-text {
  color: #c53030;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

[data-bs-theme=dark] .ai-task-error-text {
  color: #fc8181;
}

.ai-task-retry-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ai-task-retry-btn:hover {
  background: #059669;
}

.ai-task-suggestion-result {
  animation: messageSlideIn 0.3s ease;
}

.ai-task-success-message {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #065f46;
  font-size: 14px;
}

[data-bs-theme=dark] .ai-task-success-message {
  background: #064e3b;
  border-color: #047857;
  color: #d1fae5;
}

.ai-task-success-message svg {
  flex-shrink: 0;
}

.ai-task-structure {
  margin-bottom: 20px;
}

.task-item {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 7px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

[data-bs-theme=dark] .task-item {
  background: #333;
  border-color: #444;
}

.task-item.task-parent {
  border-color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.task-item.task-child {
  margin-left: 24px;
  border-color: #d1d5db;
  position: relative;
}

.task-item.task-child::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: #d1d5db;
}

.task-item-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.task-item-icon {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.task-child .task-item-icon {
  color: #6b7280;
}

.task-item-content {
  flex: 1;
}

.task-item-delete {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.6;
  flex-shrink: 0;
}

.task-item-delete:hover {
  opacity: 1;
  background: #fee2e2;
  transform: scale(1.1);
}

[data-bs-theme=dark] .task-item-delete:hover {
  background: #7f1d1d;
}

.task-item:hover .task-item-delete {
  opacity: 1;
}

.task-item-title {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
  margin-bottom: 6px;
  line-height: 1.4;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

[data-bs-theme=dark] .task-item-title {
  color: #e0e0e0;
}

.task-item-title[contenteditable="true"] {
  background: #fef3c7;
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
  cursor: text;
}

[data-bs-theme=dark] .task-item-title[contenteditable="true"] {
  background: #78350f;
  outline-color: #fbbf24;
}

.task-item-description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

[data-bs-theme=dark] .task-item-description {
  color: #9ca3af;
}

.task-item-description[contenteditable="true"] {
  background: #fef3c7;
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
  cursor: text;
}

[data-bs-theme=dark] .task-item-description[contenteditable="true"] {
  background: #78350f;
  outline-color: #fbbf24;
}

.task-children {
  margin-top: 10px;
}

.ai-task-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.ai-task-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-task-btn-accept {
  background: #10b981;
  color: white;
}

.ai-task-btn-accept:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ai-task-btn-regenerate {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.ai-task-btn-regenerate:hover {
  background: #e5e7eb;
}

[data-bs-theme=dark] .ai-task-btn-regenerate {
  background: #374151;
  color: #e5e7eb;
  border-color: #4b5563;
}

[data-bs-theme=dark] .ai-task-btn-regenerate:hover {
  background: #4b5563;
}

.ai-task-btn-edit {
  background: #fff;
  color: #10b981;
  border: 2px solid #10b981;
}

.ai-task-btn-edit:hover {
  background: #d1fae5;
}

.ai-task-btn-edit.editing {
  background: #fbbf24;
  color: white;
  border-color: #fbbf24;
}

.ai-task-btn-edit.editing:hover {
  background: #f59e0b;
  border-color: #f59e0b;
}

.ai-task-success-final {
  text-align: center;
  padding: 60px 20px;
  animation: messageSlideIn 0.3s ease;
}

.ai-task-success-icon {
  color: #10b981;
  margin-bottom: 20px;
}

.ai-task-success-final p {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

[data-bs-theme=dark] .ai-task-success-final p {
  color: #e0e0e0;
}

.ai-task-success-final .text-muted {
  color: #6b7280 !important;
}

@media (max-width: 480px) {
  #ai-task-suggestion-widget {
    bottom: 10px;
    right: 70px;
  }

  .ai-task-box {
    width: calc(100vw - 20px);
    height: calc(100vh - 100px);
    bottom: 60px;
  }

  .ai-task-toggle {
    width: 50px;
    height: 50px;
  }

  .task-item.task-child {
    margin-left: 16px;
  }
}