* {
  font-family: 'Inter', sans-serif;
}

/* Custom scrollbar dengan tema gelap */
.messages::-webkit-scrollbar {
  width: 4px;
}
.messages::-webkit-scrollbar-track {
  background: #1f2937;
}
.messages::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 10px;
}
.messages::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    z-index: 50;
    transition: left 0.3s ease;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.message-sent {
  animation: slideInRight 0.3s ease-out;
}

.message-received {
  animation: slideInLeft 0.3s ease-out;
}

/* Status online */
.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid #111827;
  border-radius: 50%;
}

/* Layout and components styling */
.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(17, 24, 39, 0.8);
}

.message:hover {
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* Input section styling */
.input-section {
  flex-shrink: 0;
  background: #1f2937;
  border-top: 1px solid #374151;
  padding: 32px 20px 40px 20px;
  position: relative;
  z-index: 10;
  min-height: 160px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

/* Responsive design */
@media (min-width: 769px) {
  .messages-container {
    padding: 20px;
    padding-bottom: 60px;
  }
  
  .input-section {
    padding: 40px 32px 48px 32px;
    min-height: 200px;
  }
}

/* Input container styling */
.input-container {
  background: #374151;
  border: 2px solid #4b5563;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  transition: all 0.3s ease;
}

.input-container:focus-within {
  border-color: #ef4444;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2);
}

/* Textarea styling */
.enhanced-textarea {
  min-height: 80px !important;
  max-height: 200px !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  padding: 20px 24px !important;
  border-radius: 20px !important;
  resize: none !important;
  transition: all 0.3s ease !important;
}

.enhanced-textarea:focus {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
}

/* Send button styling */
.enhanced-send-button {
  width: 70px !important;
  height: 70px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3) !important;
}

.enhanced-send-button:hover {
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.4) !important;
}

/* Reply preview styling */
.enhanced-reply-preview {
  padding: 20px 24px;
  margin: 12px;
  border-radius: 20px;
  background: #4b5563;
  border-left: 4px solid #ef4444;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .input-section {
    padding: 24px 16px 32px 16px;
    min-height: 140px;
  }
  
  .enhanced-textarea {
    min-height: 70px !important;
    font-size: 16px !important;
    padding: 18px 20px !important;
  }
  
  .enhanced-send-button {
    width: 60px !important;
    height: 60px !important;
    font-size: 20px !important;
  }
}

/* Main layout */
.main-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.messages-area {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 40px;
  background: linear-gradient(to bottom, #111827, #000000);
}
