.focus-list-icon {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #007bff;
  cursor: grab;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 30px;
  user-select: none;
  transition: transform 0.2s;
}

.focus-list-icon:hover {
  transform: scale(1.05);
}

.focus-list-icon:active {
  cursor: grabbing;
}

.focus-list-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.focus-list-sidebar.open {
  pointer-events: all;
  opacity: 1;
}

.focus-list-sidebar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  z-index: 9998;
  transition: opacity 0.3s ease;
}

.focus-list-sidebar.open .focus-list-sidebar-overlay {
  opacity: 1;
}

.focus-list-sidebar-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 450px;
  max-width: 70vw;
  height: 100%;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  z-index: 9999;
  transition: transform 0.3s ease;
}

.focus-list-sidebar.open .focus-list-sidebar-panel {
  transform: translateX(0);
}

.focus-list-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.focus-list-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.focus-list-header span {
  font-size: 0.9rem;
  color: #555;
  font-weight: 600;
}

.focus-list-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-list-close:hover {
  color: #333;
}

.focus-list-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.focus-list-search {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.focus-list-add-item {
  display: flex;
  gap: 10px;
}

.focus-list-add-item input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.focus-list-add-item input:focus {
  outline: none;
  border-color: #007bff;
}

.focus-list-add-item button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #007bff;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

.focus-list-add-item button:hover {
  background: #0056b3;
}

.focus-list-add-item button i {
  line-height: 2;
}

.focus-list-empty {
  text-align: center;
  color: #555;
  padding: 20px;
  font-size: 0.9rem;
  font-weight: 400;
}

.focus-list-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.focus-list-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
}

.focus-list-footer button {
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
  color: white;
  padding: 12px;
  flex: 1;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.focus-list-footer button.list-delete-completed {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  color: #000000;
}

.focus-list-footer button.list-delete-completed:hover {
  background: #f9fafb;
}

.focus-list-footer button.list-delete-all {
  background: #ba2727;
}

.focus-list-footer button.list-delete-all:hover {
  background: #921b1b;
}

.focus-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transform-origin: top;
  transition: all 0.3s ease;
}

.focus-item:hover {
  background: #f9f9f9;
  border-color: #d0d0d0;
}

.focus-item.completed {
  background: #f5f5f5;
}

.focus-item.completed:hover {
  background: #eeeeee;
}

.focus-item-drag {
  cursor: grab;
  color: #999;
  font-size: 14px;
  display: flex;
  align-items: center;
  padding: 5px;
  user-select: none;
}

.focus-item-drag:hover {
  color: #333;
}

.focus-item-drag:active {
  cursor: grabbing;
}

.focus-item-chosen {
  cursor: grabbing !important;
}

.focus-item-ghost {
  opacity: 0;
  height: 0;
  overflow: hidden;
  border: 2px dashed #007bff;
  background: transparent !important;
}

.focus-item-dragging {
  opacity: 1 !important;
  cursor: grabbing !important;
}

.focus-item.is-dragging {
  opacity: 1 !important;
  background: #ffffff !important;
  border-left: 4px solid #007bff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  cursor: grabbing !important;
  z-index: 1000;
}

body.dragging .focus-item:hover {
  background: inherit;
  border-color: inherit;
}

.sortable-fallback {
  cursor: grabbing !important;
}

.sortable-drag {
  transition: none !important;
}

.focus-item-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-item-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
}

.focus-item-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.focus-item-content.completed .focus-item-text {
  text-decoration: line-through;
  opacity: 0.5;
}

.focus-item-text {
  flex: 1;
  font-size: 14px;
  cursor: pointer;
  word-break: break-word;
  padding: 4px;
  border-radius: 4px;
  line-height: 1.5;
}

.focus-item-text:hover {
  background: #e8e8e8;
}

.focus-item-edit-input {
  flex: 1;
  padding: 4px 8px;
  border: 2px solid #007bff;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}

.focus-item-link {
  color: #007bff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.focus-item-link:hover {
  color: #0056b3;
}

.focus-item-delete {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 14px;
  cursor: pointer;
  padding: 5px;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.focus-list-add-item button:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.focus-list-add-item button:disabled:hover {
  background: #ccc;
}

.focus-list-loading {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-size: 14px;
}

.focus-list-error {
  text-align: center;
  color: #dc3545;
  padding: 40px 20px;
  font-size: 14px;
}

#modal-delete-focus {
  z-index: 10000 !important;
}

#modal-delete-focus .modal-dialog {
  z-index: 10001 !important;
}

.focus-list-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: rgb(235 238 255 / 95%);
  backdrop-filter: blur(4px);
  color: #007bff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.focus-item.deleting {
  opacity: 0;
  transform: translateX(-20px);
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
  pointer-events: none;
}

#confirmDeleteBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.fa-spinner {
  animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#focus-list-icon {
  transition: opacity 0.3s ease;
}
