@import "tailwindcss";

/* 1️⃣ defaults (REQUIRED) */
@theme {
  --color-background: #191919;
  --color-text: #979a9b;
  --color-text-have-bg: #979a9b;
  --color-button: #4281db;
  --color-border: #272727;
  --color-sidebar: #202020;
  --color-hover: #2c2c2c;
}

/* Define a light variant */
@custom-variant light (&:is(.light, .light *));

.light {
  --color-background: #fcfcf9;
  --color-text: #2d3132;
  --color-text-have-bg: #e03232; /* RED shows */
  --color-button: #3b71c1;
  --color-border: #d1d1d1;
  --color-sidebar: #f4f4f0;
  --color-hover: #e2e8f0;
}

/* Apply Poppins as default font for all elements */
* {
  font-family:
    "Poppins",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
}

html {
  scrollbar-width: thin;
  scrollbar-color: #333 #111;
}

body {
  font-family:
    "Poppins",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
}

button {
  cursor: pointer;
}

@font-face {
  font-family: "Poppins";
  src: url("./src/assets/fonts/Poppins-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./src/assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./src/assets/fonts/Poppins-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./src/assets/fonts/Poppins-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./src/assets/fonts/Poppins-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Poppins";
  src: url("./src/assets/fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./src/assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./src/assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./src/assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./src/assets/fonts/Poppins-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}

.rkk-column-header div {
  background-color: transparent !important;
  color: var(--color-text) !important;
  font-weight: 400;
}

/* ==== Dark scrollbar (global) ==== */
::-webkit-scrollbar {
  width: 5px !important;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #111; /* track */
}

::-webkit-scrollbar-thumb {
  background: #333; /* thumb */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

.dhx-gantt-dark {
  --dhx-gantt-theme: dark;
  --dhx-gantt-base-colors-background: var(--color-background);
  --dhx-gantt-container-background: var(--color-background);
  --dhx-gantt-base-colors-background-alt: var(--color-hover);
  --dhx-gantt-base-colors-border: rgba(255, 255, 255, 0.08);
  --dhx-gantt-base-colors-border-light: rgba(255, 255, 255, 0.06);
  --dhx-gantt-base-colors-text-base: var(--color-text);
  --dhx-gantt-base-colors-text-light: var(--color-text);
  --dhx-gantt-grid-scale-background: var(--color-hover);
  --dhx-gantt-grid-scale-color: var(--color-text);
  --dhx-gantt-timeline-scale-background: var(--color-hover);
  --dhx-gantt-timeline-scale-color: var(--color-text);
  --dhx-gantt-scale-border-vertical: 0.5px solid rgba(255, 255, 255, 0.04) !important;
  --dhx-gantt-scale-border-horizontal: 1px solid rgba(255, 255, 255, 0.06);
  --dhx-gantt-scale-color: var(--color-text);
  --dhx-gantt-task-row-background: var(--color-background);
  --dhx-gantt-task-row-background--odd: var(--color-background);
  --dhx-gantt-task-row-border: 1px solid rgba(255, 255, 255, 0.04);
  --dhx-gantt-grid-row-border: 1px solid rgba(255, 255, 255, 0.04);
  --dhx-gantt-grid-cell-border: 1px solid rgba(255, 255, 255, 0.02);
  --dhx-gantt-task-background: var(--color-button);
  --dhx-gantt-task-color: #ffffff;
}
.dhx-gantt-dark .gantt_grid_scale,
.dhx-gantt-dark .gantt_task_scale,
.dhx-gantt-dark .gantt_scale_line {
  background-color: var(--color-hover) !important;
  color: var(--color-text) !important;
}

.dhx-gantt-dark .gantt_grid_data .gantt_row,
.dhx-gantt-dark .gantt_task_bg {
  background-color: var(--color-sidebar) !important;
}

.dhx-gantt-dark .gantt_row,
.dhx-gantt-dark .gantt_task_row {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.dhx-gantt-dark .gantt_task_line {
  background-color: var(--color-button) !important;
  border-color: var(--color-button) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border-radius: 8px !important;
}

.dhx-gantt-dark .gantt_task_content {
  color: #ffffff !important;
  font-weight: 400;
}

.dhx-gantt-dark .gantt_grid_data .gantt_row:hover,
.dhx-gantt-dark .gantt_row:hover {
  background-color: var(--color-hover) !important;
}

.dhx-gantt-dark .gantt_scale_cell,
.dhx-gantt-dark .gantt_grid_head_cell {
  background-color: var(--color-hover) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  font-weight: 500;
}

.dhx-gantt-dark .gantt_scale_cell,
.dhx-gantt-dark .gantt_grid_head_cell {
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.dhx-gantt-dark .gantt_scale_cell:first-child,
.dhx-gantt-dark .gantt_grid_head_cell:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.dhx-gantt-dark .gantt_grid_header .gantt_grid_head_cell,
.dhx-gantt-dark .gantt_column_head_text {
  color: var(--color-text) !important;
}

.gantt_container {
  border: none !important;
}

.gantt_task_cell {
  border-color: rgba(255, 255, 255, 0.04) !important;
}

.gantt_layout_cell_border_right {
  border: none !important;
}

.dhx-gantt-dark .gantt_scale_cell,
.dhx-gantt-dark .gantt_grid_head_cell {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dhx-gantt-dark .gantt_scale_cell:first-child,
.dhx-gantt-dark .gantt_grid_head_cell:first-child {
  border-left: none !important;
}

.dhx-gantt-dark .gantt_row,
.dhx-gantt-dark .gantt_task_row {
  border: none !important;
}

/* calendar css */
.fc-theme-standard td,
.fc-theme-standard th {
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.fc .fc-scrollgrid-liquid {
  border: none !important;
}

.fc .fc-timegrid-slot-minor {
  border-color: transparent !important;
}

.bn-editor {
  background-color: transparent !important;
}

#root
  > div
  > div
  > div.h-screen.overflow-y-scroll.transition-all.duration-300.ease-in-out.relative.w-\[calc\(100\%-275px\)\]
  > div
  > div
  > div
  > div.my-8
  > div
  > div
  > div {
  padding: 0 !important;
}

.bn-inline-content::before {
  font-style: normal !important;
}

.bn-mt-suggestion-menu-item-subtitle {
  display: none;
}

.bn-mt-suggestion-menu-item-section:where([data-position="right"]) {
  display: none !important;
}

.bn-mantine .bn-suggestion-menu-item {
  padding: 0px 10px !important;
  margin-bottom: 5px;
}

.bn-mantine .bn-suggestion-menu {
  width: 250px !important;
}

.bn-block-group
  .bn-block:not(:has(.bn-toggle-wrapper))
  .bn-block-group
  .bn-block-outer:not([data-prev-depth-changed]):before {
  border: none !important;
}

.bn-block-content[data-content-type="checkListItem"] > input {
  cursor: pointer;
  height: 20px !important; /* slightly smaller, proportional */
  width: 20px !important; /* square shape */
  margin-left: 4px;
  margin-right: 8px;
  margin-top: 0;

  /* modern checkbox look */
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #888; /* light gray border */
  border-radius: 6px; /* rounded corners */
  background-color: transparent;
  position: relative;
  transition: all 0.15s ease;
}

/* hover effect */
.bn-block-content[data-content-type="checkListItem"] > input:hover {
  border-color: #555;
  background-color: #f0f0f0;
}

/* checked state */
.bn-block-content[data-content-type="checkListItem"] > input:checked {
  background-color: #4caf50; /* green fill */
  border-color: #4caf50;
}

/* checkmark */
.bn-block-content[data-content-type="checkListItem"] > input:checked::after {
  content: "✓";
  color: white;
  font-size: 12px;
  position: absolute;
  top: 0px;
  left: 2.5px;
}

/* editor js */

.ce-block__content {
  max-width: 100% !important;
  margin: 0 !important;
  color: var(--color-text);
}

.ce-paragraph,
.ce-popover-item__title,
.ce-popover-item__icon svg {
  color: var(--color-text);
  font-weight: normal !important;
}

.ce-popover--opened > .ce-popover__container {
  background-color: var(--color-hover);
  border: none !important;
}

.cdx-search-field,
.ce-popover-item:hover:not(.ce-popover-item--no-hover) {
  background: var(--color-sidebar) !important;
  border: none !important;
  color: var(--color-text);
}

.cdx-list-unordered li div {
  font-weight: 300 !important;
}

.ce-toolbar__plus svg,
.ce-toolbar__settings-btn svg {
  color: white;
}

.ce-toolbar__content {
  max-width: 100% !important;
}

.ce-block__content h2 {
  font-size: 1.4rem !important;
  font-weight: 500;
}

.cdx-list__checkbox-check {
  border: 1px solid #4e4e4e !important;
  background: #4e4e4e !important;
}

.cdx-list__checkbox--checked .cdx-list__checkbox-check {
  background: var(--color-bg-checked) !important;
  border-color: var(--color-bg-checked) !important;
}

.cdx-button {
  background: var(--color-sidebar) !important;
  border-color: var(--color-border);
}

.image-tool--caption .image-tool__caption,
.cdx-quote__caption {
  display: none !important;
}

.ce-block--selected .ce-block__content,
.tc-add-column:hover,
.tc-add-row:hover,
.tc-add-row:hover:before {
  background-color: var(--color-sidebar) !important;
}

.ce-popover-item-separator {
  display: none !important;
}

.ce-code__textarea {
  background: var(--color-sidebar) !important;
  color: var(--color-text) !important;
  border: none !important;
}

.cdx-quote__text {
  min-height: 20px !important;
  border: none;
  border-left: 5px solid;
}

.link-tool__input-holder--error .link-tool__input {
  background: var(--color-sidebar) !important;
  border: none !important;
}

.tc-cell,
.tc-row,
.tc-table,
.tc-add-column {
  border-color: rgb(61, 61, 61) !important;
}

.tc-add-column svg,
.ce-toolbar__settings-btn:hover,
.ce-toolbar__plus:hover {
  background: rgb(61, 61, 61) !important;
}

.tc-add-row:hover:before {
  border: none !important;
}

.tc-popover,
.tc-table--heading .tc-row:first-child {
  background: rgb(61, 61, 61) !important;
  border: none !important;
}

.tc-row--selected,
.tc-row--selected:after,
.tc-cell--selected,
.tc-cell--selected:after {
  background: var(--color-sidebar) !important;
}

.tc-popover__item-icon,
.tc-popover__item:hover {
  background: var(--color-sidebar) !important;
  border: none !important;
}

.ce-toolbar__plus svg,
.ce-toolbar__settings-btn svg {
  color: gray !important;
}

/* editor js */

/* task css */

.task-item-grid {
  display: grid;
  grid-template-columns: 1fr 0.25fr 0.25fr 0.25fr 0.3fr;
}

.table-view-grid {
  display: grid;
  grid-template-columns: 1fr 0.25fr 0.25fr 0.25fr 0.3fr;
}

/* task css */

/* habit css */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.animate-slideIn {
  animation: slideIn 0.4s ease-out;
}
@keyframes checkAnimation {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.check-animation {
  animation: checkAnimation 0.5s ease-out;
}

/* habit css */

/* calender css */

.fc-timegrid-divider {
  display: none !important;
}
.fc-timegrid-slots td {
  border-top: 1px solid #262626 !important;
}
.fc .fc-toolbar .fc-toolbar-chunk:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fc .fc-toolbar .fc-toolbar-chunk:first-child .fc-button {
  background-color: #202020 !important;
  border: 0 !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  color: #e5e7eb !important;
  padding: 5px 10px !important;
  box-shadow: none !important;
}
.fc .fc-toolbar .fc-toolbar-chunk:first-child .fc-backToList-button {
  display: flex !important;
  align-items: center;
}
.fc .fc-toolbar .fc-toolbar-chunk:first-child .fc-button:hover {
  background-color: #2a2a2a !important;
}
.fc .fc-toolbar .fc-toolbar-chunk:last-child .fc-button {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-transform: capitalize;
}
.fc .fc-toolbar .fc-toolbar-chunk:last-child .fc-button.fc-button-active {
  background-color: #4281db !important;
}
.fc .fc-toolbar-title {
  font-size: 1rem;
  font-weight: 400;
  color: gray;
}
.fc-day-today {
  background-color: transparent !important;
}
.fc .fc-col-header-cell-cushion {
  font-weight: 400;
  font-size: 0.875rem;
  color: #9ca3af;
}
.fc .fc-daygrid-day-number {
  font-weight: 400;
  color: #e5e7eb;
}
.fc .fc-scrollgrid {
  border: 0 !important;
}
.fc-theme-standard td,
.fc-theme-standard th {
  border: 1px solid #262626 !important;
}
.fc-timegrid-event-harness-inset .fc-timegrid-event,
.fc-timegrid-event.fc-event-mirror,
.fc-timegrid-more-link {
  box-shadow: none;
}
.fc-v-event,
.fc .fc-highlight {
  background-color: transparent !important;
  border: none !important;
}
.fc-event-main > div {
  background-color: #379cff8c !important;
}

/* Compact all-day events */
.fc-daygrid-event {
  padding: 2px 6px !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  border-radius: 4px !important;
  white-space: nowrap;
}

.fc-daygrid-event .fc-event-main {
  padding: 0 !important;
}

/* Hide the bucket label in all-day row, just show title */
.fc-daygrid-event .opacity-75 {
  display: none !important;
}

/* calender css */
