/* Responsive Design - Mobile and Tablet */

@media (max-width: 768px) {
  #sidebar {
    position: fixed;
    height: calc(100vh - var(--topnav-height));
    top: var(--topnav-height);
    left: 0;
    z-index: 150;
    box-shadow: 4px 0 20px var(--shadow-lg);
  }

  #sidebar.sidebar-hidden {
    transform: translateX(-100%);
  }

  #messages {
    padding: 1.5rem 1rem;
  }

  .message {
    max-width: 90%;
    font-size: 0.9rem;
  }

  #input-wrapper {
    padding: 1rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  #top-nav {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  #messages {
    padding: 1rem 0.75rem;
    gap: 1rem;
  }

  .message {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }

  .input-container {
    padding: 0.375rem;
  }

  #user-input {
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
  }

  #send {
    width: 36px;
    height: 36px;
    padding: 0.625rem;
  }

  .modal-content {
    width: 95%;
    border-radius: var(--radius-lg);
  }
}
