@import url('https://fonts.googleapis.com/css2?family=Kanit&display=swap');
@import url(https://fonts.googleapis.com/css?family=Merriweather+Sans);

body {
    font-family: "Inter", sans-serif;
}

/* Fix cursor visibility in dark theme */
[data-theme="dark"] input, [data-theme="dark"] textarea {
    caret-color: white;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

@keyframes slide-from-right {
    from {
        transform: translateX(90px);
    }
}

@keyframes slide-to-left {
    to {
        transform: translateX(-90px);
    }
}

/* define animations for t old and new content */
::view-transition-old(slide-it) {
    animation: 180ms cubic-bezier(0.4, 0, 1, 1) both fade-out,
        600ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
}

::view-transition-new(slide-it) {
    animation: 420ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in,
        600ms cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
}

/* tie the view transition to a given CSS class */
.sample-transition {
    view-transition-name: slide-it;
}

/* Custom breadcrumb styles */
.breadcrumbs {
  border-radius: 0.3rem;
  display: inline-flex;
  overflow: hidden;
}

.breadcrumbs__item {
  background: #fff;
  color: #333;
  outline: none;
  padding: 0.75em 0.75em 0.75em 1.25em;
  position: relative;
  text-decoration: none;
  transition: background 0.2s linear;
}

.breadcrumbs__item:hover:after,
.breadcrumbs__item:hover {
  background: #edf1f5;
}

.breadcrumbs__item:focus:after,
.breadcrumbs__item:focus,
.breadcrumbs__item.is-active:focus {
  background: #323f4a;
  color: #fff;
}

.breadcrumbs__item:after,
.breadcrumbs__item:before {
  background: white;
  bottom: 0;
  clip-path: polygon(50% 50%, -50% -50%, 0 100%);
  content: "";
  left: 100%;
  position: absolute;
  top: 0;
  transition: background 0.2s linear;
  width: 1em;
  z-index: 1;
}

.breadcrumbs__item:before {
  background: #cbd2d9;
  margin-left: 1px;
}

.breadcrumbs__item:last-child {
  border-right: none;
}

.breadcrumbs__item.is-active {
  background: #edf1f5;
}

/* Dark theme styles */
[data-theme="dark"] .breadcrumbs__item {
  background: #374151;
  color: #f3f4f6;
}

[data-theme="dark"] .breadcrumbs__item:hover:after,
[data-theme="dark"] .breadcrumbs__item:hover {
  background: #4b5563;
}

[data-theme="dark"] .breadcrumbs__item:focus:after,
[data-theme="dark"] .breadcrumbs__item:focus,
[data-theme="dark"] .breadcrumbs__item.is-active:focus {
  background: #1f2937;
  color: #fff;
}

[data-theme="dark"] .breadcrumbs__item:after,
[data-theme="dark"] .breadcrumbs__item:before {
  background: #374151;
}

[data-theme="dark"] .breadcrumbs__item:before {
  background: #6b7280;
}

[data-theme="dark"] .breadcrumbs__item.is-active {
  background: #4b5563;
}

/* Line clamp utility for text truncation */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Enhanced button feedback */
.btn-circle:active {
  transform: scale(0.95);
}

.btn-circle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Smooth card hover effects */
.card:hover {
  transform: translateY(-2px);
}
