.notes-filter-wrapper {
  font-family: "Inter", sans-serif;
  color: var(--text-color, #212529);
}
.notes-filter-wrapper .notes-title-bar {
  background-color: var(--theme-hover-color);
}
.notes-filter-wrapper .notes-title-bar i {
  color: var(--theme-color);
  background-color: white;
  padding: 6px;
  border-radius: 6px;
  font-size: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.notes-filter-wrapper .pinned-count {
  background-color: #fff9e6;
  color: #856404;
  border: 1px solid #ffeeba;
  font-size: 12px;
}
.notes-filter-wrapper .cursor-pointer {
  cursor: pointer;
}

.active-text {
  color: var(--theme-color);
}

.notes-dropdown .dropdown-menu {
  min-width: 100px !important;
  width: auto !important;
  background-color: var(--bs-dropdown-bg) !important;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}
.switch input:checked + .slider {
  background-color: var(--theme-color);
}
.switch input:focus + .slider {
  box-shadow: 0 0 1px var(--theme-color);
}
.switch input:checked + .slider:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}
.switch .slider.round {
  border-radius: 34px;
}
.switch .slider.round:before {
  border-radius: 50%;
}

.notes-section .notes-section-item {
  min-width: 70px;
  height: 100%;
  text-align: center;
  position: relative;
  transition: color 0.3s ease;
  cursor: pointer;
  font-weight: 500 !important;
}
.notes-section .notes-section-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--theme-color);
  transform: scaleX(0);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom left;
}
.notes-section .notes-section-item.active {
  color: var(--theme-color);
  font-weight: 400 !important;
}
.notes-section .notes-section-item.active::after {
  transform: scaleX(1);
}

.notes-shadow {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.notes-anchor-btn button {
  min-width: 100px;
  color: var(--text-color);
}
.notes-anchor-btn button:hover {
  background-color: var(--bg-color) !important;
  cursor: pointer !important;
  color: var(--text-color) !important;
}
.notes-anchor-btn button.active {
  cursor: default !important;
  background-color: var(--theme-color) !important;
  color: white !important;
}
.notes-anchor-btn button.active:hover {
  background-color: var(--theme-color) !important;
  color: white !important;
}

.quill-wrapper {
  border: 1px solid var(--border-color);
  border-radius: 5px;
  width: 100%;
  position: relative;
}
.quill-wrapper .ql-container {
  min-height: 100px !important;
}
.quill-wrapper .ql-editor {
  min-height: fit-content;
}

.note-files {
  background-color: var(--notes-bg-color, #f8f9fa);
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.note-files::before {
  content: "";
  position: absolute;
  border: 2px dashed var(--border-color);
  top: -2px;
  bottom: -2px;
  left: -2px;
  right: -2px;
  border-radius: 5px;
}
.note-files:hover {
  --border-color: var(--theme-color);
}

.note-info {
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--notes-bg-color, #f8f9fa);
  border-radius: 0.5rem;
  padding: 0.2rem;
}
.note-info .note-info-item {
  width: 100%;
  padding: 0.3rem;
}
.note-info .note-info-item + div {
  border-left: 1.5px solid var(--border-color);
}

.note-details {
  background-color: var(--notes-bg-color, #f8f9fa);
  border-radius: 0.3rem;
  border: 1.5px solid var(--border-color);
}
.note-details .note-title {
  border-bottom: 1.5px solid var(--border-color);
  font-weight: 500;
  padding: 0.5rem;
}
.note-details .note-content {
  border-bottom: 1.5px solid var(--border-color);
}

.note-files-list .note-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem;
}
.note-files-list .note-file-item + .note-file-item {
  border-top: 1.5px solid var(--border-color);
}
.note-files-list .cursor-pointer {
  cursor: pointer;
}

#QuillView .ql-editor {
  min-height: auto !important;
  max-height: auto !important;
}

.notes-pagination .paginate_button > .page-link {
  background-color: var(--bg-color, white) !important;
  color: var(--text-color, black) !important;
}
.notes-pagination .paginate_button > .page-link:hover {
  background-color: var(--theme-hover-color) !important;
}
.notes-pagination .paginate_button.active > .page-link {
  background-color: var(--theme-color) !important;
  color: white !important;
}
.notes-pagination .paginate_button.disabled > .page-link {
  background-color: var(--bg-color, white) !important;
  color: var(--text-color, black) !important;
}

.notes-comments-section .notes-comments-title {
  color: var(--text-color, #444);
  font-weight: 600;
}
.notes-comments-section .notes-comments-list {
  background-color: var(--notes-bg-color, #f8f9fa);
  border: 1px solid var(--border-color);
}
.notes-comments-section .notes-comments-list::-webkit-scrollbar {
  width: 6px;
}
.notes-comments-section .notes-comments-list::-webkit-scrollbar-track {
  background: transparent;
}
.notes-comments-section .notes-comments-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
.notes-comments-section .notes-comments-list::-webkit-scrollbar-thumb:hover {
  background: var(--theme-color);
}
.notes-comments-section .notes-comment-avatar {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.notes-comments-section .notes-comment-item {
  background-color: var(--card-bg-color, #fff);
  margin: 8px 8px;
  padding: 12px 12px !important;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  border-left: 2px solid var(--theme-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.notes-comments-section .notes-comment-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  border-radius: inherit;
}
.notes-comments-section .notes-comment-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background-color: color-mix(in srgb, var(--theme-color, #0d6efd) 2%, var(--card-bg-color, #fff));
}
.notes-comments-section .notes-comment-item:hover::before {
  opacity: 1;
}
.notes-comments-section .notes-comment-item:hover .notes-comment-author {
  color: var(--theme-color);
}
.notes-comments-section .notes-comment-item .notes-comment-author {
  font-size: 15px;
  color: var(--text-color, #333);
  font-weight: 600;
  transition: color 0.2s ease;
}
.notes-comments-section .notes-comment-item .notes-comment-edit-icon {
  color: var(--theme-color, #0d9488);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
}
.notes-comments-section .notes-comment-item .notes-comment-edit-icon:hover {
  opacity: 1;
  transform: scale(1.15);
}
.notes-comments-section .notes-comment-item .notes-comment-delete-icon {
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
  color: #dc3545;
}
.notes-comments-section .notes-comment-item .notes-comment-delete-icon:hover {
  opacity: 1;
  transform: scale(1.15);
}
.notes-comments-section .notes-comment-item .notes-comment-text-wrapper {
  padding-left: 0;
}
.notes-comments-section .notes-comment-item .notes-comment-text-wrapper .notes-comment-text {
  font-size: 14px;
  color: var(--text-color, #444);
  line-height: 1.5;
}
.notes-comments-section .notes-comment-item .text-muted {
  color: var(--text-muted-color, #6c757d) !important;
  font-size: 12px;
}
.notes-comments-section .notes-comment-item + .notes-comment-item {
  border-top: none;
}
.notes-comments-section .notes-comment-item .cursor-pointer {
  cursor: pointer;
}
.notes-comments-section .notes-add-comment-area {
  background-color: color-mix(in srgb, var(--theme-color, #0d6efd) 4%, var(--card-bg-color, #fff));
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  transition: all 0.3s ease;
}
.notes-comments-section .notes-add-comment-area:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.notes-comments-section .notes-add-comment-area .notes-comment-input {
  resize: none;
  border-color: var(--border-color);
  background-color: var(--card-bg-color, #fff);
  color: var(--text-color);
  transition: all 0.2s ease;
}
.notes-comments-section .notes-add-comment-area .notes-comment-input:focus {
  border-color: var(--theme-color, #0d6efd);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  background-color: var(--card-bg-color, #fff);
}
.notes-comments-section .notes-add-comment-area .notes-comment-input::placeholder {
  color: var(--text-muted-color, #6c757d);
}
.notes-comments-section .notes-add-comment-area button {
  transition: all 0.2s ease;
}
.notes-comments-section .notes-add-comment-area button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.notes-comments-section .notes-add-comment-area button:active {
  transform: translateY(0);
}

div .notes-footer-items div {
  border-right: 1.5px solid var(--border-color);
  padding-right: 0.5rem;
}
div .notes-footer-items div:last-child {
  border-right: none;
}

#NotesMultiSelect .dropdown-menu.show {
  min-width: 100px !important;
  width: 100% !important;
  background-color: #fbfbfb !important;
  max-height: 250px !important;
  overflow-y: auto !important;
  scrollbar-width: none;
}

#NotesMultiSelect .dropdown-item {
  white-space: unset !important;
}

#NotesMultiSelect .multiselect-filter {
  width: 100% !important;
}
#NotesMultiSelect .multiselect-filter svg {
  z-index: 1;
  margin-left: 5px;
  margin-right: 5px;
}
#NotesMultiSelect .multiselect-filter input {
  width: 100% !important;
}

.note-card-pinned,
.note-card-default,
.note-card-alt {
  margin-bottom: 12px;
}
.note-card-pinned .card,
.note-card-default .card,
.note-card-alt .card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}
.note-card-pinned .card::before,
.note-card-default .card::before,
.note-card-alt .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  border-radius: inherit;
}
.note-card-pinned .card:hover,
.note-card-default .card:hover,
.note-card-alt .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.note-card-pinned .card:hover::before,
.note-card-default .card:hover::before,
.note-card-alt .card:hover::before {
  opacity: 1;
}
.note-card-pinned .card .card-body,
.note-card-default .card .card-body,
.note-card-alt .card .card-body {
  background: transparent !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.note-card-pinned:hover .card .notes-dropdown button,
.note-card-default:hover .card .notes-dropdown button,
.note-card-alt:hover .card .notes-dropdown button {
  color: var(--theme-color);
}

.note-card-pinned .card {
  background-color: color-mix(in srgb, var(--theme-color, #ffc107) 12%, var(--card-bg-color, #fff));
  border-left: 4px solid var(--theme-color, #ffc107) !important;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}
.note-card-pinned .card:hover {
  box-shadow: 0 12px 28px rgba(255, 193, 7, 0.25), 0 4px 12px rgba(255, 193, 7, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background-color: color-mix(in srgb, var(--theme-color, #ffc107) 16%, var(--card-bg-color, #fff));
}

.note-card-default .card {
  background-color: var(--card-bg-color, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.note-card-default .card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  background-color: color-mix(in srgb, var(--theme-color, #0d6efd) 3%, var(--card-bg-color, #fff));
}

.note-card-alt .card {
  background-color: color-mix(in srgb, var(--theme-color, #0d6efd) 8%, var(--card-bg-color, #fff));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.note-card-alt .card:hover {
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.2), 0 4px 12px rgba(13, 110, 253, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background-color: color-mix(in srgb, var(--theme-color, #0d6efd) 12%, var(--card-bg-color, #fff));
}