/* Layout */
.grid {
  display: grid;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.text-center {
  text-align: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Grid columns */
.grid-cols-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.gap-2 {
  gap: 0.5rem;
}


/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-primary {
  background-color: #3b82f6;
  color: white;
}

.badge-lg {
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
}

.badge-sm {
  font-size: 0.625rem;
  padding: 0.125rem 0.25rem;
}

.hover\:bg-base-200:hover {
  background-color: #f3f4f6;
}

.hover\:bg-base-300:hover {
  background-color: #d1d5db;
}

.hover\:bg-primary\/30:hover {
  background-color: rgba(59, 130, 246, 0.3);
}

/* Transition */
.transition-all {
  transition-property: all;
}

.duration-200 {
  transition-duration: 0.2s;
}

.duration-150 {
  transition-duration: 0.15s;
}

.ease-in-out {
  transition-timing-function: ease-in-out;
}

.calendar-cell {
  display: flex;
  flex-direction: column;
  padding: 0.3rem;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
  border-radius: 0.5rem;
  overflow: hidden;
}

.event-tags {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
  flex-grow: 1;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.event-tags::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}


.event-tag {
  color: white;
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}


@media (max-width: 768px) {
  .grid-cols-7 {
    gap: 1.2rem;
  }
  .grid-cols-7.text-lg {
    font-size: 0.85rem;
  }
  .flex.items-center.justify-between h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .grid-cols-7 {
    gap: 0.3rem;
  }

  .calendar-cell {
    padding: 0.15rem;
    border-radius: 0.3rem;
  }

  .calendar-cell span:first-child {
      font-size: 0.75rem;
      font-weight: 700;
  }

  .event-tag {
    font-size: 0.6rem;
    padding: 0.05rem 0.2rem;
  }


  .grid-cols-7.text-lg {
    font-size: 0.7rem;
  }

  .flex.items-center.justify-between.mb-8.p-4 {
    padding: 0.4rem 0.2rem;
    margin-bottom: 0.6rem;
    flex-direction: column;
    gap: 0.5rem;
  }

}

@media (max-width: 375px) {
  .grid-cols-7 {
    gap: 0.2rem;
  }
  .calendar-cell {
    padding: 0.1rem;
    border-radius: 0.25rem;
  }
  .calendar-cell span:first-child {
      font-size: 0.7rem;
  }
}
