.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05); /* transparan */
  backdrop-filter: blur(4px); /* efek blur */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2); /* thumb transparan */
  border-radius: 10px;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4); /* efek hover */
}

/* Untuk Firefox */
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}
/* .glassdihover {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
} */

::placeholder {
  color: #cbd5e1;
}

.animate-fade-in {
  animation: fade 0.8s ease-out forwards;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.animate-popup {
  animation: popup 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popup {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-fade-out {
  animation: fadeOut 0.2s ease-in forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* Chat fade-in from bottom right */
.animate-chat-fade-in {
  animation: chatFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes chatFadeIn {
  0% {
    opacity: 0;
    transform: translateX(100%) translateY(100%) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

.animate-chat-fade-out {
  animation: chatFadeOut 0.3s ease-in forwards;
}

@keyframes chatFadeOut {
  0% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateX(100%) translateY(100%) scale(0.8);
  }
}

body {
  background-image: url('/assets/background-batik.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: rgba( */
    0,
    0,
    0,
    0.07
  );
  z-index: -1;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade {
  animation: fadeIn 0.6s ease-in-out;
}

select {
  appearance: none;
  background-image: url('https://images.pexels.com/photos/60504/security-protection-anti-virus-software-60504.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
  color: black;
}

.chat-bubble-user {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  margin-left: auto;
}

.chat-bubble-system {
  background: linear-gradient(135deg, #10b981, #059669);
  margin-right: auto;
}

.chat-container {
  max-height: 300px;
  overflow-y: auto;
}

.chat-container::-webkit-scrollbar {
  width: 4px;
}

.chat-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.chat-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

@media (max-width: 768px) {
  #sidebar {
    width: 90%;
    margin-left: 0;
    border-radius: 0;
  }
}
