/* Mobile-specific styling for devices with max-width 768px */

@media (max-width: 768px) {
  /* Header adjustments for mobile */
  .header {
    padding: 8px 10px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .header-label {
    font-size: 11px;
  }

  .header-input {
    font-size: 12px;
    height: 28px;
    padding: 5px 6px;
  }

  #nameInput {
    width: 70px;
  }

  #textInput {
    min-width: 100px;
    flex: 1;
  }

  /* Reduce button sizes for mobile */
  .btn-send {
    padding: 5px 10px;
    font-size: 11px;
    height: 28px;
  }

  /* Reorganize auth links - Login on left, Daftar on right */
  .header-right {
    margin-left: 0;
    order: 10;
    width: 100%;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: space-between;
  }

  .auth-links {
    display: flex;
    gap: 6px;
    width: 100%;
    justify-content: space-between;
  }

  .auth-links a {
    padding: 5px 8px;
    font-size: 10px;
    flex: 1;
    text-align: center;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .auth-links a:first-child {
    order: 2;
  }

  .auth-links a:last-child {
    order: 1;
  }

  /* Chat area adjustments */
  .chat-title {
    padding: 10px 12px;
    font-size: 13px;
    letter-spacing: 1px;
  }

  .messages {
    padding: 0;
    font-size: 12px;
    line-height: 1.3;
  }

  /* Reduce message padding for mobile */
  .message {
    padding: 8px 10px;
    gap: 0px;
  }

  .message-username {
    font-size: 12px;
    min-width: 70px;
  }

  .message-ip {
    font-size: 10px;
  }

  /* Reduce delete button size for mobile */
  .btn-delete-message {
    font-size: 14px;
    padding: 2px 4px;
    height: 20px;
  }

  .user-info {
    width: 100%;
    margin-right: 0;
    margin-bottom: 6px;
  }

  .username-display {
    font-size: 11px;
  }

  .users-sidebar {
    display: none;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 6px 8px;
    gap: 4px;
  }

  .header-label {
    font-size: 10px;
  }

  .header-input {
    font-size: 11px;
    height: 26px;
    padding: 4px 5px;
  }

  #nameInput {
    width: 60px;
  }

  #textInput {
    min-width: 80px;
    flex: 1;
  }

  .btn-send {
    padding: 4px 8px;
    font-size: 10px;
    height: 26px;
  }

  .auth-links a {
    padding: 4px 6px;
    font-size: 9px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .chat-title {
    padding: 8px 10px;
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .messages {
    font-size: 11px;
    line-height: 1.2;
  }

  .message {
    padding: 6px 8px;
    gap: 4px;
  }

  .message-username {
    font-size: 11px;
    min-width: 60px;
  }

  .message-ip {
    font-size: 9px;
  }

  .btn-delete-message {
    font-size: 12px;
    padding: 2px 3px;
    height: 18px;
  }

  .username-display {
    font-size: 10px;
  }
}
