[data-theme="dark"] {
  --primary-bg: #131314;
  --secondary-bg: #282828;
  --text-color: #ffffff;
  --text-gray: #b4b4b4;
  --card-bg: #202020;
  --stat-bg: #303030;
  --delete-bg: #4d3030;
  --delete-bg-hover: #603939;
  --edit-bg: #1b094b;
  --edit-bg-hover: #030741;
  --icon-bg: #220446;
  --icon2-bg: #093b1a;
  --icon3-bg: #4a3007;
  --glass-bg: #282939;
  --glass-bg-hover: #343443;
  --shadow: 0px 0px 6px #ffffff15;
}

[data-theme="light"] {
  --primary-bg: #f1f5f9;
  --secondary-bg: #f5f3f3;
  --text-color: #1e293b;
  --text-gray: #6c6a6a;
  --card-bg: #f7f7f7;
  --stat-bg: #ffffff;
  --delete-bg: #f5e8e8;
  --delete-bg-hover: #f2cece;
  --edit-bg: #b0d3f58c;
  --edit-bg-hover: #8ac0f6a7;
  --icon-bg: #f3e8ff;
  --icon2-bg: #dcfce7;
  --icon3-bg: #ffedd4;
  --glass-bg: #ffffff3b;
  --glass-bg-hover: #ffffff81;
  --shadow: 0 0 6px #e4e4e4;
}

body {
  background: var(--primary-bg);
  color: var(--text-color);
}
input[type="datetime-local"],
select {
  cursor: pointer;
}
input[type="datetime-local"]::webkit-calendar-picker-indicator {
  background-color: #ffffff;
  border-radius: 4px;
  border: none;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(147, 51, 234, 0.3);
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(147, 51, 234, 0.5);
}

@keyframes animate-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.hover\:scale-110:hover {
  transform: scale(1.1);
}
/* Form validation styles */
.form-error {
  color: #ff0000;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

input.error,
textarea.error {
  border-color: #ff0000;
}
#taskModal div::-webkit-scrollbar,
#calendarDates::-webkit-scrollbar,
#taskDetailsModal div::-webkit-scrollbar,
#teamCollabModal div::-webkit-scrollbar {
  display: none;
}
.task-enter {
  animation: taskEnter 0.3s ease;
}


@keyframes taskEnter {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.edit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  transition: all 0.3s ease;
}

.accordion-content.active {
  max-height: 320px;
  padding: 1rem;
}
@media (max-width: 568px) {
  .accordion-content.active {
    max-height: 400px;
  }
}
.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card {
  border-radius: 1rem;
  transition: all 0.3s ease;
  background-color: var(--card-bg);
  backdrop-filter: blur(16px);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  background-color: var(--stat-bg);
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1);
}

.feature-icon {
  transition: all 0.3s ease;
}

.feature-card:nth-child(1) .feature-icon-wrapper {
  background-color: color-mix(in oklab, #dc2626 20%, transparent);
  color: #dc2626;
}

.feature-card:nth-child(2) .feature-icon-wrapper {
  background-color: color-mix(in oklab, #4f46e5 20%, transparent);
  color: #4f46e5;
}

.feature-card:nth-child(3) .feature-icon-wrapper {
  background-color: color-mix(in oklab, #059669 20%, transparent);
  color: #059669;
}

.feature-card:nth-child(4) .feature-icon-wrapper {
  background-color: color-mix(in oklab, var(--color-cyan-500) 20%, transparent);
  color: #d97706;
}

.feature-card:nth-child(5) .feature-icon-wrapper {
  background-color: color-mix(in oklab, #2563eb 20%, transparent);
  color: #2563eb;
}

.feature-card:nth-child(6) .feature-icon-wrapper {
  background-color: color-mix(in oklab, #c026d3 20%, transparent);
  color: #c026d3;
}

.feature-card:nth-child(7) .feature-icon-wrapper {
  background-color: color-mix(in oklab, #ea580c 20%, transparent);
  color: #ea580c;
}

.feature-card:nth-child(8) .feature-icon-wrapper {
  background-color: color-mix(in oklab, #7c3aed 20%, transparent);
  color: #7c3aed;
}

.feature-card:nth-child(9) .feature-icon-wrapper {
  background-color: color-mix(in oklab, #3b82f6 20%, transparent);
  color: #3b82f6;
}
.bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-delay {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-float-delay {
  animation: float-delay 12s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 15s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-bg {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(27, 30, 41, 0) 70%
  );
  animation: rotate 20s linear infinite;
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Animation for the minimized pomodoro */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(255, 82, 82, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Filter container styles */
#filterContainer {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  overflow-x: auto;
  padding: 0.5rem 0;
  margin: 0 -0.5rem;
}

#filterContainer::-webkit-scrollbar {
  display: none;
}

#filterContainer {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Scroll button styles */
#scrollLeft,
#scrollRight {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--card-bg);
  border: 1px solid var(--text-gray);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

#scrollLeft {
  left: 0;
}

#scrollRight {
  right: 0;
}

#scrollLeft:hover,
#scrollRight:hover {
  background: var(--primary-bg);
  border-color: var(--text-color);
}

#scrollLeft:disabled,
#scrollRight:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* toast notification */

#toastContainer :where(.toast, .column) {
  display: flex;
  align-items: center;
}
#toastContainer .toast {
  width: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  padding: 16px 17px;
  margin-bottom: 10px;
  background: var(--stat-bg);
  justify-content: space-between;
  animation: show_toast 0.3s ease forwards;
}
@keyframes show_toast {
  0% {
    transform: translateX(100%);
  }
  40% {
    transform: translateX(-5%);
  }
  80% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-10px);
  }
}
#toastContainer .toast.hide {
  animation: hide_toast 0.3s ease forwards;
}
@keyframes hide_toast {
  0% {
    transform: translateX(-10px);
  }
  40% {
    transform: translateX(0%);
  }
  80% {
    transform: translateX(-5%);
  }
  100% {
    transform: translateX(calc(100% + 20px));
  }
}
.toast::before {
  position: absolute;
  content: "";
  height: 3px;
  width: 100%;
  bottom: 0px;
  left: 0px;
  animation: progress 4s linear forwards;
}
@keyframes progress {
  100% {
    width: 0%;
  }
}
.toast.success::before {
  background: #0abf30;
}
.toast.error::before {
  background: #e24d4c;
}
.toast.warning::before {
  background: #e9bd0c;
}

.toast .column i {
  font-size: 1.75rem;
}
.toast.success .column i {
  color: #0abf30;
}
.toast.error .column i {
  color: #e24d4c;
}
.toast.warning .column i {
  color: #e9bd0c;
}
.toast.info .column i {
  color: var(--text-gray);
}
.toast .column span {
  font-size: 1.07rem;
  margin-left: 12px;
}
.toast i:last-child {
  color: var(--text-gray);
  cursor: pointer;
  &:hover {
    color: var(--text-color);
  }
}

@media screen and (max-width: 530px) {
  #toastContainer {
    width: 95%;
  }
  #toastContainer .toast {
    width: 100%;
    font-size: 1rem;
    margin-left: 20px;
  }
}
