  /* Custom animations */
    @keyframes pulse-slow {
      0%,
      100% {
        opacity: 0.2;
      }
      50% {
        opacity: 0.4;
      }
    }

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

    @keyframes particle-explode {
      0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
      }
      100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
      }
    }

    .animate-ping-slow {
      animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    }

    .animate-pulse-slow {
      animation: pulse-slow 3s ease-in-out infinite;
    }

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

    #imageModal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 50;
  align-items: center;
  justify-content: center;
}

#imageModal.show {
  display: flex; /* Show when active */
}

#modalImage {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

#closeImageModal {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: rgba(31, 41, 55, 0.5); /* bg-gray-800 */
  color: white;
  border-radius: 50%;
  padding: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

#closeImageModal:hover {
  background-color: rgba(31, 41, 55, 0.75);
}

    /* Style untuk emoji picker */
  emoji-picker {
    --background: #1f2937;
    --border-color: #374151;
    --input-border-color: #4b5563;
    --input-background-color: #111827;
    --input-font-color: #f3f4f6;
    --category-emoji-picked-color: #3b82f6;
    --font-color: #f3f4f6;
    --indicator-color: #3b82f6;
    --num-columns: 6;
    width: 350px;
    height: 400px;
  }

  @media (max-width: 640px) {
    emoji-picker {
      width: 280px;
      height: 350px;
      --num-columns: 5;
    }
  }

/* Responsive untuk mobile */
@media (max-width: 640px) {
  emoji-picker {
    --num-columns: 6;
    width: 100% !important;
    right: 0 !important;
    bottom: 60px !important;
  }
}

.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.bottom-0 {
  bottom: 0;
}
.right-0 {
  right: 0;
}

/* Tambahkan di bagian style Anda */
#csListPanel {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

#csListContent::-webkit-scrollbar {
  width: 6px;
}

#csListContent::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

#csListContent::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Light mode styles */
:root {
  --bg-light: #f9fafb;
  --text-light: #111827;
}

body.light {
  background-color: var(--bg-light);
  color: var(--text-light);
}

/* Update existing dark mode classes to have light mode alternatives */
.bg-gray-900.light-mode {
  background-color: var(--bg-light);
}

.text-white.light-mode {
  color: var(--text-light);
}

/* Add transitions for smooth theme switching */
body, .bg-gray-900, .text-white {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Textarea styling */
#messageInput {
  transition: height 0.2s ease;
}

/* Custom scrollbar for textarea */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.message-actions {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.message-container:hover .message-actions {
  opacity: 1;
}

/* Add these styles to your CSS file */
#replyContainer {
    transition: all 0.2s ease;
}

#replyContainer .truncate {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tambahkan ke stylesheet Anda */
.message-container .border-l-4 {
    border-color: #3b82f6; /* Warna biru yang match dengan tema */
}

.message-container .truncate {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.dropdown-panel {
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
    }
    
    .dropdown-panel.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }
    
    .color-option.selected {
      border: 2px solid white;
      transform: scale(1.1);
    }
    
    .theme-option.selected {
      border: 2px solid rgb(59, 130, 246);
    }
    
    .skin-option.selected {
      border: 2px solid rgb(59, 130, 246);
    }

/* Styling untuk pesan sistem */
.system-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 41, 55, 0.7); /* Latar belakang semi-transparan */
  color: #d1d5db; /* Warna teks abu-abu terang */
  font-size: 0.75rem; /* Ukuran font kecil */
  padding: 0.5rem 1rem;
  border-radius: 9999px; /* Bentuk bulat penuh */
  border: 1px solid rgba(75, 85, 99, 0.5); /* Border abu-abu */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Bayangan halus */
  max-width: 80%;
  margin: 0 auto; /* Memastikan terpusat */
  transition: all 0.3s ease;
}

/* Hover effect untuk interaktivitas */
.system-message:hover {
  background: rgba(31, 41, 55, 0.9);
  transform: scale(1.02);
}

/* Ikon dalam pesan sistem */
.system-message svg {
  flex-shrink: 0;
  margin-right: 0.5rem;
}

/* Teks tebal dalam pesan sistem */
.system-message .font-medium {
  font-weight: 600;
}

/* Responsivitas */
@media (max-width: 640px) {
  .system-message {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    max-width: 90%;
  }
}
  
  /* Timestamp styling */
  .message-timestamp {
    font-size: 0.625rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    text-align: right;
  }
  
  @keyframes highlight {
  0% { background-color: rgba(30, 58, 138, 0.2); }
  100% { background-color: transparent; }
}

.message-container.highlight {
  animation: highlight 2s ease-out;
}

/* File upload preview styles */
#filePreviewContainer {
  transition: all 0.3s ease;
}

#filePreviews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
}

.file-preview {
  display: flex;
  align-items: center;
  background-color: rgba(55, 65, 81, 0.7);
  border-radius: 8px;
  padding: 8px;
  max-width: 100%;
}

.file-preview img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  border-radius: 4px;
}

.file-info {
  margin-left: 8px;
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 12px;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.file-size {
  font-size: 11px;
  color: #9ca3af;
}

.delete-file-btn {
  margin-left: 8px;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s;
}

.delete-file-btn:hover {
  color: #f87171;
}

.deleted-message {
  color: #9CA3AF;
  font-style: italic;
  background-color: rgba(75, 85, 99, 0.2);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid #6B7280;
}

.line-through {
  text-decoration: line-through;
  opacity: 0.7;
}

.deleted-timestamp {
  font-size: 0.7rem;
  color: #d1d5db;
}

#scrollToBottomBtn {
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

#scrollToBottomBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollToBottomBtn:not(.visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
}

  .img-container {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.reply-message {
    border-left: 2px solid #3b82f6;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.reply-message:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.reply-attachment {
    display: flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: 0.25rem;
    background-color: rgba(55, 65, 81, 0.5);
    margin-top: 0.25rem;
}

/* Jitsi Modal Styles */
#jitsiModal {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

#jitsiContainer {
  background-color: #1c1c1c;
}

#closeJitsiBtn {
  transition: all 0.2s ease;
}

#closeJitsiBtn:hover {
  transform: rotate(90deg);
}

/* Pulse animation for call buttons */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

#videoCallBtn, #voiceCallBtn {
  transition: all 0.2s ease;
}

#videoCallBtn:hover, #voiceCallBtn:hover {
  animation: pulse 1.5s infinite;
}

/* Efek highlight modern tanpa border */
.message-highlight {
  position: relative;
  overflow: hidden;
}

.highlight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(59, 130, 246, 0.3) 50%,
    rgba(59, 130, 246, 0.1) 100%
  );
  opacity: 1;
  transition: opacity 0.5s ease-out;
  z-index: 0;
  animation: highlight-wave 1.5s ease-in-out;
}

@keyframes highlight-wave {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Pastikan konten pesan di atas overlay */
.message-content {
  position: relative;
  z-index: 1;
}


/* Animasi untuk hitungan mundur */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Animasi untuk ikon hourglass */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Gaya untuk alert peringatan */
.swal2-popup.custom-alert {
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff, #f0f4f8);
  padding: 20px;
}

.countdown-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

.countdown-text {
  color: #dc2626;
  font-size: 2em;
  font-weight: bold;
  animation: pulse 1s infinite;
}

.hourglass-icon {
  font-size: 1.5em;
  color: #3b82f6;
  animation: spin 2s linear infinite;
}

.swal2-confirm.custom-confirm {
  background: linear-gradient(to right, #3b82f6, #2563eb);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  transition: transform 0.2s;
}

.swal2-confirm.custom-confirm:hover {
  transform: scale(1.05);
}

.swal2-cancel.custom-cancel {
  background: linear-gradient(to right, #6b7280, #4b5563);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  transition: transform 0.2s;
}

.swal2-cancel.custom-cancel:hover {
  transform: scale(1.05);
}

/* Gaya untuk alert status */
.swal2-popup.status-alert {
  border-radius: 12px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  padding: 15px;
}

.status-icon {
  font-size: 2em;
  color: #b91c1c;
  margin-bottom: 10px;
}

.status-message {
  color: #7c2d12;
  font-size: 1.2em;
  font-weight: 500;
}

/* Enhanced dropdown animations */
.dropdown-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 
             0 10px 10px -5px rgba(0, 0, 0, 0.2),
             0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(75, 85, 99, 0.3);
}

.dropdown-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Custom checkbox styling */
.custom-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #4b5563;
  border-radius: 4px;
  background: linear-gradient(135deg, #374151, #4b5563);
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-checkbox:checked {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: #3b82f6;
  transform: scale(1.05);
}

.custom-checkbox:checked::before {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.custom-checkbox:hover {
  border-color: #6b7280;
  transform: scale(1.02);
}

/* Filter option styling */
.filter-option {
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.filter-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.3s ease;
}

.filter-option:hover::before {
  left: 100%;
}

.filter-option:hover {
  background: linear-gradient(135deg, rgba(55, 65, 81, 0.8), rgba(75, 85, 99, 0.6));
  transform: translateX(4px);
}

/* Icon animations */
.filter-icon {
  transition: all 0.2s ease;
}

.filter-option:hover .filter-icon {
  color: #60a5fa;
  transform: scale(1.1) rotate(5deg);
}

/* Apply button styling */
.apply-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.apply-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.3s ease;
}

.apply-btn:hover::before {
  left: 100%;
}

.apply-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.apply-btn:active {
  transform: translateY(0);
}

/* Filter button glow effect */
.filter-button-glow {
  position: relative;
  transition: all 0.3s ease;
}

.filter-button-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
  border-radius: 12px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  animation: rotate 3s linear infinite;
}

.filter-button-glow:hover::before {
  opacity: 0.7;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pulse animation for selected items */
.filter-option.selected {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
  border-left: 3px solid #3b82f6;
}

/* Badge for filter count */
.filter-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  transform: scale(0);
  transition: transform 0.2s ease;
}

.filter-badge.show {
  transform: scale(1);
}

/* Responsive design */
@media (max-width: 640px) {
  .dropdown-panel {
    width: 280px;
    right: 0;
    left: auto;
  }
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading .apply-btn {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

.new-message-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  background-color: #ef4444; /* merah */
  border-radius: 50%;
  display: none;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.filter-button {
  position: relative;
}

@keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(100px) scale(0.9);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        
        @keyframes slideOutDown {
            from {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
            to {
                opacity: 0;
                transform: translateY(100px) scale(0.9);
            }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }
        
        .animate-slide-in-up {
            animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        
        .animate-slide-out-down {
            animation: slideOutDown 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
        }
        
        .animate-fade-in {
            animation: fadeIn 0.3s ease-out;
        }
        
        .animate-fade-out {
            animation: fadeOut 0.3s ease-in;
        }
        
        .animate-pulse-once {
            animation: pulse 0.6s ease-in-out;
        }
        
        .animate-shake {
            animation: shake 0.5s ease-in-out;
        }
        
        .animate-float {
            animation: float 3s ease-in-out infinite;
        }
        
        .glass-effect {
            background: rgba(17, 24, 39, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .template-item {
            background: linear-gradient(135deg, rgba(55, 65, 81, 0.8), rgba(75, 85, 99, 0.6));
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .template-item:hover {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(147, 51, 234, 0.2));
            border-color: rgba(59, 130, 246, 0.5);
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }
        
        .scrollbar-custom::-webkit-scrollbar {
            width: 8px;
        }
        
        .scrollbar-custom::-webkit-scrollbar-track {
            background: rgba(55, 65, 81, 0.3);
            border-radius: 4px;
        }
        
        .scrollbar-custom::-webkit-scrollbar-thumb {
            background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
            border-radius: 4px;
        }
        
        .scrollbar-custom::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(to bottom, #2563eb, #7c3aed);
        }
        
        .gradient-border {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
            background-size: 300% 300%;
            animation: gradientShift 3s ease infinite;
        }
        
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        .input-glow:focus {
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
        }
        
        .template-count {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        
        .empty-state {
            opacity: 0.7;
            transform: translateY(20px);
            animation: float 4s ease-in-out infinite;
        }
        
        @media (max-width: 640px) {
            .template-item {
                padding: 12px;
            }
            .template-item .template-text {
                font-size: 14px;
            }
        }

/* Animasi spinner */
/* Animasi glowing bouncing dots */
.glowing-dots {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot {
  width: 0.75rem; /* Sesuai w-3 */
  height: 0.75rem; /* Sesuai h-3 */
  border-radius: 50%;
  background: #4b5563; /* Gradasi gray-600 ke blue-500 */
  animation: bounce 0.8s ease-in-out infinite, glow 1.6s ease-in-out infinite;
}

.dot-1 {
  animation-delay: 0s;
}

.dot-2 {
  animation-delay: 0.2s;
}

.dot-3 {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.6rem);
  }
}

/* Responsive Mobile Layout */
@media (max-width: 768px) {
  /* Layout utama */
  .flex.h-screen {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  /* Sidebar - tampil full screen pertama kali */
  #sidebar {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    transition: transform 0.3s ease;
    transform: translateX(0);
  }

  /* Chat area - tersembunyi di awal */
  #chatAreaContainer {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  /* Ketika chat area aktif */
  #chatAreaContainer.active {
    transform: translateX(0);
  }

  /* Ketika sidebar harus disembunyikan */
  #sidebar.hidden {
    transform: translateX(-100%);
  }

  /* Perbaikan untuk elemen-elemen dalam sidebar */
  .w-80 {
    width: 100%;
  }

  /* Empty state adjustment */
  #emptyState {
    padding: 2rem;
    text-align: center;
  }

  /* Chat header adjustments */
  #chatHeader {
    font-size: 1rem;
  }

  /* Input area adjustments */
  #messageForm {
    padding: 0.75rem;
  }

  #messageInput {
    font-size: 0.875rem;
  }

  /* Tombol back di chat area */
  #backButton {
    margin-right: 0.5rem;
  }

  /* Adjustments untuk dropdown */
  .dropdown-panel {
    width: 90vw;
    max-width: 300px;
    right: 0;
    left: auto;
  }

  /* Emoji picker adjustments */
  emoji-picker {
    width: 100% !important;
    max-width: 100vw;
    height: 300px;
    --num-columns: 6;
  }

  /* Template modal adjustments */
  #templateModal {
    padding: 1rem;
  }

  /* Image modal adjustments */
  #imageModal img {
    max-height: 70vh;
  }

   /* Position the dropdown to the right on mobile */
  #filterModal {
    left: auto !important;
    right: 0 !important;
    transform-origin: top right !important;
    width: 90vw !important;
    max-width: 300px !important;
    margin-top: 8px !important;
  }

  /* Adjust positioning for mobile */
  .relative.inline-block.text-left {
    position: static;
  }

  /* Make sure dropdown doesn't get cut off */
  #filterModal {
    max-height: 80vh;
    overflow-y: auto;
  }

  /* Adjust footer buttons for mobile */
  #filterModal .border-t.border-gray-700\/50 .flex {
    flex-direction: column;
    gap: 8px;
  }

  #filterModal .border-t.border-gray-700\/50 button {
    width: 100%;
  }

  @media (max-width: 768px) {
  #settingsDropdown {
    left: auto !important;
    right: 0 !important;
    transform-origin: top right !important;
    width: 90vw !important;
    max-width: 280px !important;
    margin-top: 8px !important;
    margin-right: 8px !important;
  }

  /* Adjust positioning for mobile */
  #settingsDropdown {
    position: fixed;
  }

  /* Ensure dropdown doesn't get cut off */
  #settingsDropdown {
    max-height: 80vh;
    overflow-y: auto;
  }
}
}

/* Animasi khusus untuk transisi */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.slide-in-right {
  animation: slideInRight 0.3s forwards;
}

.slide-out-left {
  animation: slideOutLeft 0.3s forwards;
}

  .modal-backdrop {
            backdrop-filter: blur(8px);
            animation: fadeIn 0.3s ease-out;
        }
        
        .modal-content {
            animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.95) 100%);
            border: 1px solid rgba(59, 130, 246, 0.2);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 
                        0 0 0 1px rgba(59, 130, 246, 0.1),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        
        .floating-icon {
            animation: float 3s ease-in-out infinite;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
        }
        
        .input-group {
            position: relative;
            overflow: hidden;
        }
        
        .input-group input,
        .input-group select {
            background: rgba(55, 65, 81, 0.8);
            border: 1px solid rgba(75, 85, 99, 0.5);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .input-group input:focus,
        .input-group select:focus {
            background: rgba(55, 65, 81, 1);
            border-color: rgba(75, 85, 99, 0.8);
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }
        
        .input-group::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #6b7280, #9ca3af);
            transition: width 0.3s ease;
        }
        
        .input-group:focus-within::after {
            width: 100%;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #3b82f6, #6366f1);
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }
        
        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.6s;
        }
        
        .btn-primary:hover::before {
            left: 100%;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
        }
        
        .btn-secondary {
            background: rgba(55, 65, 81, 0.8);
            border: 1px solid rgba(75, 85, 99, 0.5);
            transition: all 0.3s ease;
        }
        
        .btn-secondary:hover {
            background: rgba(75, 85, 99, 0.8);
            border-color: rgba(156, 163, 175, 0.5);
            transform: translateY(-1px);
        }
        
        .channel-icon {
            transition: all 0.3s ease;
        }
        
        .channel-icon:hover {
            transform: scale(1.1);
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes slideInUp {
            from { 
                opacity: 0;
                transform: translateY(30px) scale(0.9);
            }
            to { 
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-8px); }
        }
        
        .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.6);
            transform: scale(0);
            animation: ripple 0.6s linear;
            pointer-events: none;
        }
        
        @keyframes ripple {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }
        
        .glass-effect {
            background: rgba(31, 41, 55, 0.8);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(75, 85, 99, 0.3);
        }
        
        .gradient-text {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }